From 375041c3d6d2ecb2228dcaa3cbefa079da40a8dd Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期四, 24 八月 2023 15:10:21 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue | 25 +++++++++++++++++++++++-- 1 files changed, 23 insertions(+), 2 deletions(-) diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue index 9ba08aa..dc32f16 100644 --- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue +++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue @@ -116,7 +116,7 @@ </basic-container> </template> <script> -import {MasterTable, TableData, FindData, addSaveCode, editSaveCode, deleteCode, upSaveCode} from "@/api/GetItem"; +import {MasterTable, TableData, FindData, addSaveCode, editSaveCode, deleteCode, upSaveCode,applyGroupCode} from "@/api/GetItem"; import {processTS, changeStatus} from "@/api/template/setPersonnel" import {listCodeAttributeByClassId} from "@/api/integration/integration.js"; import integrationTransfer from "@/views/integration/integrationTransfer"; @@ -242,7 +242,7 @@ datetime: "datetime", }, tableData: [], - tableHeight: 'calc(100vh - 330px)', + tableHeight: 'calc(100vh - 350px)', DataVisible: false, tableHeadData: [], items: {}, @@ -412,9 +412,27 @@ if (uniqueFlag === 'CODERECYCLE') return this.Recovery() //鍒犻櫎 if (uniqueFlag === 'CODEDELETE') return this.enumDeleteRow() + //鐢宠闆嗗洟鐮佹暟鎹� + if (uniqueFlag === 'applyGroupCode') return this.applyGroupCode() + //鏇存柊闆嗗洟鐮佹暟鎹� + // if (uniqueFlag === 'applyGroupCode') return this.applyGroupCode() // 鐩镐技椤规煡璇� // if(uniqueFlag === 'CODEEDIT') return this.similarHandler() }); + }, + //鐢宠闆嗗洟鐮佹暟鎹� + applyGroupCode(){ + 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(','); + applyGroupCode({ oids, btmName: this.selectRow[0].btmname }).then(res => { + console.log(res); + }); + } }, openD() { this.getListCodeByClassId(); @@ -770,6 +788,7 @@ this.addvisible = false; addSaveCode(val).then(res => { this.$nextTick(() => { + this.$message.warning("淇濆瓨鎴愬姛"); this.onLoad() }) }) @@ -779,6 +798,7 @@ this.editvisible = false; editSaveCode(val).then(res => { this.$nextTick(() => { + this.$message.warning("淇濆瓨鎴愬姛"); this.onLoad() }) }) @@ -792,6 +812,7 @@ upSaveCode(val).then(res => { console.log(res) this.$nextTick(() => { + this.$message.warning("淇濆瓨鎴愬姛"); this.onLoad() }) }) -- Gitblit v1.9.3