From 9d8be8e7580ef577def96c852288a5a95eab4ea3 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期二, 11 七月 2023 19:22:53 +0800
Subject: [PATCH] 代码整合,前端代码打包

---
 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 75413c2..be3ea00 100644
--- a/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue
+++ b/Source/UBCS-WEB/src/components/Crud/VciMasterCrud.vue
@@ -79,7 +79,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";
@@ -213,7 +213,8 @@
     codeClassifyOid: {
       handler(newval, oldval) {
         this.codeClassifyOid = newval;
-        this.parameter.vars.codeClassifyOid = newval
+        this.parameter.vars.codeClassifyOid = newval;
+        console.log('瀛�',newval)
       },
       deep: true,
     },
@@ -421,6 +422,7 @@
     },
     //澶氶��
     handleSelectionChange(row) {
+      console.log(row)
       if (this.row) {
         this.rowOid = row[0].oid;
       } else {
@@ -485,16 +487,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;
     }
   },
 };
@@ -505,7 +517,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