From c8435fd9afcf1e211c38fa9848a8d27c2d989f04 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期一, 22 四月 2024 15:54:36 +0800
Subject: [PATCH] 工种管理 列表的接口联调+删除工种的接口联调+添加工种,编辑工种 2个接口联调

---
 src/views/systemSetting/dataDictionary/index.vue |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/views/systemSetting/dataDictionary/index.vue b/src/views/systemSetting/dataDictionary/index.vue
index 9c1b9da..a1c12dc 100644
--- a/src/views/systemSetting/dataDictionary/index.vue
+++ b/src/views/systemSetting/dataDictionary/index.vue
@@ -122,6 +122,7 @@
     // 鎼滅储
     onFilterSearch(searchText) {
       this.getDataParams.keyword=searchText,
+      this.pagerOptions.currPage = 1;
       this.getData()
     },
     // 鏂板
@@ -247,12 +248,8 @@
       })
     },
     rowClick(row,type){
-      if(type==="鏌ョ湅"){
-        this.editConfig.dialogTitle="鏌ョ湅"
-        this.editConfig.visible=true
-        this.editConfig.infomitton={...row,TabsIndex:this.TabsIndex}
-      }else if(type==="淇敼"){
-        this.editConfig.dialogTitle="淇敼"
+      if(type!=="鍒犻櫎"){
+        this.editConfig.dialogTitle=type
         this.editConfig.visible=true
         this.editConfig.infomitton={...row,TabsIndex:this.TabsIndex}
       }else if(type==="鍒犻櫎"){
@@ -263,6 +260,7 @@
         }).then(() => {
           deleteDict({id:row.ID}).then((res)=>{
             if(res&&res.code===200){
+              this.pagerOptions.currPage = 1;
               this.getData()
               this.$message({
                 type: 'success',
@@ -270,7 +268,9 @@
               });
             }
           })
-        })
+        }).catch(() => {
+          console.log("鍙栨秷鍒犻櫎")
+        });
       }
     }
   }

--
Gitblit v1.8.0