From 1df722e049a36363ac9c0cc0658920d68f7b78ca Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期二, 11 七月 2023 19:29:27 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue |   25 ++++++++++++++++++-------
 1 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue
index 2359834..238d714 100644
--- a/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue
+++ b/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue
@@ -84,7 +84,7 @@
   </basic-container>
 </template>
 <script>
-import {MasterTable, TableData, FindData} from "@/api/GetItem";
+import {MasterTable, TableData, FindData,addSaveCode,editSaveCode} from "@/api/GetItem";
 import {listCodeAttributeByClassId} from "@/api/integration/integration.js";
 import integrationTransfer from "@/views/integration/integrationTransfer";
 import SetPersonnel from "@/components/template/SetPersonnel";
@@ -230,7 +230,8 @@
     codeClassifyOid: {
       handler(newval, oldval) {
         this.codeClassifyOid = newval;
-        this.parameter.vars.codeClassifyOid = newval
+        this.parameter.vars.codeClassifyOid = newval;
+        console.log('瀛�',newval)
       },
       deep: true,
     },
@@ -442,6 +443,7 @@
     },
     //澶氶��
     handleSelectionChange(row) {
+      console.log(row)
       if (this.row) {
         this.rowOid = row[0].oid;
       } else {
@@ -506,16 +508,26 @@
       }
     },
     //澧炲姞淇濆瓨
-    AddSumbit() {
+    AddSumbit(val) {
       this.addvisible = false;
+      console.log(val)
+      addSaveCode(val).then(res=>{
+        console.log(res)
+        this.onLoad()
+      })
     },
     EditSumbit(val) {
       this.editvisible = false;
+      console.log(val)
+      editSaveCode(val).then(res=>{
+        console.log(res)
+        this.onLoad()
+      })
     },
     openBatchImport(type) {
-      this.batchImportData.visible = true
-      this.batchImportData.type = type
-      this.batchImportData.codeClassifyOid = this.codeClassifyOid
+      this.batchImportData.visible = true;
+      this.batchImportData.type = type;
+      this.batchImportData.codeClassifyOid = this.codeClassifyOid;
     }
   },
 };
@@ -526,7 +538,6 @@
   .el-table--scrollable-x .el-table__body-wrapper {
     overflow: auto !important;
   }
-
   .el-table__fixed-right-patch {
     background-color: #f5f7fa !important;
   }

--
Gitblit v1.9.3