From 96a6f91ff223aaa20e2be4273fa89d642b480fb3 Mon Sep 17 00:00:00 2001
From: yuxc <653031404@qq.com>
Date: 星期四, 24 八月 2023 18:29:02 +0800
Subject: [PATCH] Revert "提交代码"
---
Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue | 45 +++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 43 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..9355248 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,receiveEditApply} 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,10 +412,48 @@
if (uniqueFlag === 'CODERECYCLE') return this.Recovery()
//鍒犻櫎
if (uniqueFlag === 'CODEDELETE') return this.enumDeleteRow()
+ //鐢宠闆嗗洟鐮佹暟鎹�
+ if (uniqueFlag === 'applyGroupCode') return this.applyGroupCode()
+ //鏇存柊闆嗗洟鐮佹暟鎹�
+ if (uniqueFlag === 'receiveEditApply') return this.receiveEditApply()
// 鐩镐技椤规煡璇�
// 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=>{
+ 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()
+ }
+ });
+ }
+ },
openD() {
this.getListCodeByClassId();
},
@@ -770,6 +808,7 @@
this.addvisible = false;
addSaveCode(val).then(res => {
this.$nextTick(() => {
+ this.$message.warning("淇濆瓨鎴愬姛");
this.onLoad()
})
})
@@ -779,6 +818,7 @@
this.editvisible = false;
editSaveCode(val).then(res => {
this.$nextTick(() => {
+ this.$message.warning("淇濆瓨鎴愬姛");
this.onLoad()
})
})
@@ -792,6 +832,7 @@
upSaveCode(val).then(res => {
console.log(res)
this.$nextTick(() => {
+ this.$message.warning("淇濆瓨鎴愬姛");
this.onLoad()
})
})
--
Gitblit v1.10.0