From 598fe738b22d39172b068db5309476e08481e868 Mon Sep 17 00:00:00 2001
From: feige <791364011@qq.com>
Date: 星期二, 10 九月 2024 16:20:31 +0800
Subject: [PATCH] 修改bug

---
 ruoyi-ui/src/views/clanManager/clan/index.vue |   33 +++++++++++++++++++--------------
 1 files changed, 19 insertions(+), 14 deletions(-)

diff --git a/ruoyi-ui/src/views/clanManager/clan/index.vue b/ruoyi-ui/src/views/clanManager/clan/index.vue
index 6835b36..f9975e0 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"/>
@@ -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