From 6b60c2a64224b82846426520acc3119936fee721 Mon Sep 17 00:00:00 2001 From: xiejun <xj@2023> Date: 星期六, 26 八月 2023 13:59:43 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- 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