From 660454e318a57cc82811908389cd4056fbfce1f7 Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期五, 25 八月 2023 16:55:05 +0800
Subject: [PATCH] 修改样式,修改编码规则

---
 Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue |   30 +++++++++++++++++++++++++-----
 1 files changed, 25 insertions(+), 5 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
index dc32f16..465f489 100644
--- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
+++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
@@ -5,7 +5,7 @@
         <div class="testbox" style="">
           <div>
           </div>
-          <el-row style="width: 100%;margin-bottom: 20px">
+          <el-row style="width: 100%;margin-bottom: 10px">
             <div>
               <el-button v-for="(item, index) in masterVrBtnList"
                          v-if="!['PREVIEW', 'DELETEFILE', 'revisefile', 'DOWNLOADFILE', 'UPLOADFILE'].includes(item.uniqueFlag)"
@@ -116,7 +116,7 @@
   </basic-container>
 </template>
 <script>
-import {MasterTable, TableData, FindData, addSaveCode, editSaveCode, deleteCode, upSaveCode,applyGroupCode} from "@/api/GetItem";
+import {MasterTable, TableData, FindData, addSaveCode, editSaveCode, deleteCode, upSaveCode,applyGroupCode,receiveEditApply} from "@/api/GetItem";
 import {processTS, changeStatus} from "@/api/template/setPersonnel"
 import {listCodeAttributeByClassId} from "@/api/integration/integration.js";
 import integrationTransfer from "@/views/integration/integrationTransfer";
@@ -415,7 +415,7 @@
         //鐢宠闆嗗洟鐮佹暟鎹�
         if (uniqueFlag === 'applyGroupCode') return this.applyGroupCode()
         //鏇存柊闆嗗洟鐮佹暟鎹�
-        // if (uniqueFlag === 'applyGroupCode') return this.applyGroupCode()
+        if (uniqueFlag === 'receiveEditApply') return this.receiveEditApply()
         //  鐩镐技椤规煡璇�
         //  if(uniqueFlag === 'CODEEDIT') return this.similarHandler()
       });
@@ -429,8 +429,28 @@
         //   return { oids: item.oid, btmName: item.btmname };
         // });
         const oids = this.selectRow.map(item => item.oid).join(',');
-        applyGroupCode({ oids, btmName: this.selectRow[0].btmname }).then(res => {
-          console.log(res);
+        applyGroupCode({ oids, btmName: this.selectRow[0].btmname }).then(res=>{
+          if(res.data.code==200){
+            this.$message.success('鐢宠鎴愬姛')
+          }
+          this.onLoad()
+        })
+      }
+    },
+    //鏇存柊闆嗗洟鐮佹暟鎹�
+    receiveEditApply(){
+      if(this.selectRow.length <= 0){
+        this.$message.warning('璇烽�夋嫨涓�鏉℃暟鎹ā鏉匡紒')
+      }else {
+        // const requestData = this.selectRow.forEach(item => {
+        //   return { oids: item.oid, btmName: item.btmname };
+        // });
+        const oids = this.selectRow.map(item => item.oid).join(',');
+        receiveEditApply({ oids, btmName: this.selectRow[0].btmname }).then(res => {
+          if(res.data.code==200){
+            this.$message.success('鏇存柊鎴愬姛')
+            this.onLoad()
+          }
         });
       }
     },

--
Gitblit v1.9.3