From 3d8bff94da257d3f429373297975c33b1b7ce28c Mon Sep 17 00:00:00 2001 From: feige <791364011@qq.com> Date: 星期三, 09 十月 2024 20:58:37 +0800 Subject: [PATCH] 修改了对应的代码 --- ruoyi-ui/src/views/clanManager/clan/index.vue | 37 +++++++++++++++++++++---------------- 1 files changed, 21 insertions(+), 16 deletions(-) diff --git a/ruoyi-ui/src/views/clanManager/clan/index.vue b/ruoyi-ui/src/views/clanManager/clan/index.vue index 6835b36..34d93a4 100644 --- a/ruoyi-ui/src/views/clanManager/clan/index.vue +++ b/ruoyi-ui/src/views/clanManager/clan/index.vue @@ -56,7 +56,7 @@ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> </el-row> - <el-table v-loading="loading" :data="roleList" :row-key="getRowId" @selection-change="handleSelectionChange"> + <el-table v-loading="loading" border :data="roleList" :row-key="getRowId" @selection-change="handleSelectionChange"> <el-table-column type="selection" width="55" align="center" /> <el-table-column fixed label="搴忓彿" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="100"/> @@ -71,13 +71,13 @@ @click="handleUpdate(scope.row)" v-hasPermi="['system:role:edit']" >淇敼</el-button> - <el-button + <!-- <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['system:role:remove']" - >鍒犻櫎</el-button> + >鍒犻櫎</el-button> --> </template> </el-table-column> @@ -223,24 +223,24 @@ }, created() { this.getList(); - this.getAllUser(); + //this.getAllUser(); }, methods: { chongf(){ //alert(2) - if(this.form.name!=""){ - findByFname(this.form.name).then(response => { - console.log(response.data) - // alert(response.data!=null) - if(response.data!=null) - { - this.$set(this.form,'name',"") - this.$modal.msgSuccess("瀹跺涵鍙峰凡缁忓瓨鍦紒") - } + // if(this.form.name!=""){ + // findByFname(this.form.name).then(response => { + // console.log(response.data) + // // alert(response.data!=null) + // if(response.data!=null) + // { + // this.$set(this.form,'name',"") + // this.$modal.msgSuccess("瀹跺涵鍙峰凡缁忓瓨鍦紒") + // } - }); - } + // }); + // } }, handleChange(){ let _this = this; @@ -477,14 +477,19 @@ let _this = this this.$refs["form"].validate(valid => { if (valid) { - // alert(this.form.id) + //alert(this.form.id) if (this.form.clanId != undefined) { // alert(this.form.name) // this.form.menuIds = this.getMenuAllCheckedKeys(); updateClan(this.form).then(response => { + console.log(response) + if(response.msg=="瀹舵棌鍚嶇О涓嶈兘閲嶅锛�") + this.$modal.msgSuccess("瀹舵棌鍚嶇О涓嶈兘閲嶅") + else{ this.$modal.msgSuccess("淇敼鎴愬姛"); this.open = false; this.getList(); + } }); } else { -- Gitblit v1.9.1