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 |   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 c2f2fcd..34d93a4 100644
--- a/ruoyi-ui/src/views/clanManager/clan/index.vue
+++ b/ruoyi-ui/src/views/clanManager/clan/index.vue
@@ -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>
@@ -228,19 +228,19 @@
   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