From ad70f145e8bea957b41043b4a1e37ce37cc5ed1e Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 16 一月 2024 18:39:24 +0800
Subject: [PATCH] 指标完成

---
 src/views/repositoryai/general/index.vue |   17 +++++++----------
 1 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/src/views/repositoryai/general/index.vue b/src/views/repositoryai/general/index.vue
index 4388313..22b86bf 100644
--- a/src/views/repositoryai/general/index.vue
+++ b/src/views/repositoryai/general/index.vue
@@ -153,12 +153,7 @@
               @selection-change="handleSelectionChange"
             >
               <el-table-column type="selection" width="50" align="center" />
-              <el-table-column
-                label="搴忓彿"
-                align="center"
-                key="targetid"
-                prop="targetid"
-              />
+              <el-table-column label="搴忓彿" align="center" key="id" prop="id" />
               <el-table-column
                 label="閫氱敤搴撳悕绉�"
                 align="center"
@@ -463,6 +458,8 @@
       addgeneralclassify(this.classifyform).then((res) => {
         this.getDeptTree();
         this.$modal.msgSuccess("鏂板鎴愬姛");
+        this.classifyform = {};
+        this.dialogFormVisible = false;
       });
     },
     remove(a, b) {
@@ -509,7 +506,7 @@
     reset() {
       this.indexform = {
         suitWay: undefined,
-        targetid: undefined,
+        id: undefined,
         targetdesc: undefined,
         baseTagList: [],
         targetoptionList: [],
@@ -533,7 +530,7 @@
     },
     // 澶氶�夋閫変腑鏁版嵁
     handleSelectionChange(selection) {
-      this.ids = selection.map((item) => item.targetid);
+      this.ids = selection.map((item) => item.id);
       this.single = selection.length != 1;
       this.multiple = !selection.length;
     },
@@ -585,7 +582,7 @@
           this.targetoptionList
         );
         if (valid) {
-          if (this.indexform.targetid != undefined) {
+          if (this.indexform.id != undefined) {
             this.indexform.isoperation = 2;
             editgeneral(this.indexform).then((response) => {
               this.$modal.msgSuccess("淇敼鎴愬姛");
@@ -606,7 +603,7 @@
     },
     /** 鍒犻櫎鎸夐挳鎿嶄綔 */
     handleDelete(row) {
-      const userIds = row.targetid || this.ids;
+      const userIds = row.id || this.ids;
       this.$modal
         .confirm('鏄惁纭鍒犻櫎閫氱敤搴撳悕绉颁负"' + row.targetname + '"鐨勬暟鎹」锛�')
         .then(function () {

--
Gitblit v1.9.3