From 15140ffbd4c9e06cacf0d47240d798f54e9b20e4 Mon Sep 17 00:00:00 2001
From: lihang <lihang@vci-tech.com>
Date: 星期四, 03 八月 2023 16:52:11 +0800
Subject: [PATCH] 业务类型修改字段中文名称修正
---
Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue | 35 ++++++++++++++++++++---------------
1 files changed, 20 insertions(+), 15 deletions(-)
diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
index c839623..69dadec 100644
--- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
+++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
@@ -174,6 +174,9 @@
tableHeadBtnData: {
type: Array,
},
+ Treedata:{
+ type:Array
+ }
},
data() {
return {
@@ -338,7 +341,7 @@
}
},
deep: true
- }
+ },
},
methods: {
//鐘舵�佹悳绱�
@@ -422,6 +425,7 @@
},
// 鍙戝竷
setHandler() {
+ console.log('Treedata',this.Treedata)
if (this.selectRow.length > 0) {
let hasEditing = this.selectRow.some(item => item.lcstatus !== 'Editing');
let showMessage = true;
@@ -436,7 +440,7 @@
processTS({templateId: this.templateOid, buttonTypeKey: 'PUBLIC'}).then(res => {
if (res.data.data.records && res.data.data.records.length != 0) {
this.userName = localStorage.getItem("username");
- this.parameter.template = this.userName + '-鐢宠[' + this.result + '-' + this.selectRow[0].name + ']';
+ this.parameter.template = this.userName + '-鐢宠[' + this.Treedata[0].name + '-' + this.selectRow[0].name + ']';
this.parameter.type = 'PUBLIC';
this.parameter.code = this.templateOid
this.title = '娴佺▼瀹℃壒'
@@ -448,7 +452,7 @@
type: 'warning'
}).then(() => {
const oid = this.selectRow.map(obj => obj.oid).join(",");
- changeStatus({oid: oid, btmname: this.result, lcStatus: 'Released'}).then(res => {
+ changeStatus({oid: oid, btmname: this.selectRow[0].btmname, lcStatus: 'Released'}).then(res => {
if (res.data.code == 200) {
this.$message.success('鍙戝竷鎴愬姛')
this.onLoad()
@@ -479,14 +483,14 @@
if (this.selectRow.length === 1 && item.lcstatus === "Disabled" && showMessage) {
this.$message.warning('閫夋嫨鐨勬暟鎹腑鐘舵�佹棤闇�鍐嶆墽琛屽綋鍓嶆搷浣�');
showMessage = false;
- } else if (this.selectRow.length >= 1 && !hasEditing && showMessage) {
+ } else if (this.selectRow.length > 1 && !hasEditing && showMessage) {
this.$message.warning('鎮ㄩ�夋嫨鐨勬暟鎹叏閮ㄤ负銆愬彂甯冪姸鎬併�戞墠鍙互鍙戣捣娴佺▼');
showMessage = false;
- } else if (this.selectRow.length > 1 && hasEditing && showMessage) {
- processTS({templateId: this.templateOid, buttonTypeKey: 'PUBLIC'}).then(res => {
+ } else if (this.selectRow.length >= 1 && hasEditing && showMessage) {
+ processTS({templateId: this.templateOid, buttonTypeKey: 'DISABLE'}).then(res => {
if (res.data.records != [] && res.data.data.records.length != 0) {
this.userName = localStorage.getItem("username");
- this.parameter.template = this.userName + '-鍋滅敤[' + this.result + '-' + this.selectRow[0].name + ']';
+ this.parameter.template = this.userName + '-鍋滅敤[' + this.Treedata[0].name + '-' + this.selectRow[0].name + ']';
this.parameter.type = 'DISABLE';
this.parameter.code = this.templateOid
this.title = '鍋滅敤锛堝喕缁擄級缂栫爜鏁版嵁'
@@ -500,7 +504,7 @@
type: 'warning'
}).then(() => {
const oid = this.selectRow.map(obj => obj.oid).join(",");
- changeStatus({oid: oid, btmname: this.result, lcStatus: 'Disabled'}).then(res => {
+ changeStatus({oid: oid, btmname: this.selectRow[0].btmname, lcStatus: 'Disabled'}).then(res => {
if (res.data.code == 200) {
this.$message.success('鍋滅敤鎴愬姛')
this.onLoad()
@@ -515,7 +519,7 @@
}
}
});
- } else {
+ } else if(this.selectRow.length == 1 && !hasEditing && showMessage ) {
this.$message.warning('鎮ㄩ�夋嫨鐨勬暟鎹负銆愬彂甯冪姸鎬併�戞墠鍙互鍙戣捣娴佺▼')
}
});
@@ -533,11 +537,11 @@
this.$message.warning('閫夋嫨鐨勬暟鎹腑鐘舵�佹棤闇�鍐嶆墽琛屽綋鍓嶆搷浣�');
showMessage = false;
} else if (this.selectRow.length >= 1 && hasEditing && showMessage) {
- processTS({templateId: this.templateOid, buttonTypeKey: 'PUBLIC'}).then(res => {
+ processTS({templateId: this.templateOid, buttonTypeKey: 'ENABLE'}).then(res => {
if (res.data.data.records && res.data.data.records.length != 0) {
this.parameter = res.data.data.records[0]
this.userName = localStorage.getItem("username");
- this.parameter.template = this.userName + '-鍚敤[' + this.result + '-' + this.selectRow[0].name + ']';
+ this.parameter.template = this.userName + '-鍚敤[' + this.Treedata[0].name + '-' + this.selectRow[0].name + ']';
this.parameter.type = 'Released';
this.parameter.code = this.templateOid
this.title = '鍚敤缂栫爜鏁版嵁'
@@ -551,7 +555,7 @@
type: 'warning'
}).then(() => {
const oid = this.selectRow.map(obj => obj.oid).join(",");
- changeStatus({oid: oid, btmname: this.result, lcStatus: 'Released'}).then(res => {
+ changeStatus({oid: oid, btmname: this.selectRow[0].btmname, lcStatus: 'Released'}).then(res => {
if (res.data.code == 200) {
this.$message.success('鍚敤鎴愬姛')
this.onLoad()
@@ -591,10 +595,10 @@
showMessage = false;
} else if (this.selectRow.length >= 1 && (disabledCount === this.selectRow.length || releasedCount === this.selectRow.length) || (disabledCount > 0 && releasedCount > 0) && showMessage) {
//disabledCount 鍜� releasedCount 涓换鎰忎竴涓瓑浜� this.selectRow 鏁扮粍鐨勯暱搴﹀垯琛ㄧず鍏ㄩ儴鏄悓涓�绉嶇姸鎬侊紝杩斿洖 true 濡傛灉disabledCount 鍜� releasedCount 閮藉ぇ浜�0锛屽垯琛ㄧず鏃㈡湁Disabled涔熸湁Released杩斿洖 true
- processTS({templateId: this.templateOid, buttonTypeKey: 'PUBLIC'}).then(res => {
+ processTS({templateId: this.templateOid, buttonTypeKey: 'ROLLBACK'}).then(res => {
if (res.data.records != [] && res.data.data.records.length != 0) {
this.userName = localStorage.getItem("username");
- this.parameter.template = this.userName + '-鍥炴敹[' + this.result + '-' + this.selectRow[0].name + ']';
+ this.parameter.template = this.userName + '-鍥炴敹[' + this.selectRow[0].btmname + '-' + this.selectRow[0].name + ']';
this.parameter.type = 'TakeBack';
this.parameter.code = this.templateOid
this.title = '鍥炴敹缂栫爜鏁版嵁'
@@ -608,7 +612,7 @@
type: 'warning'
}).then(() => {
const oid = this.selectRow.map(obj => obj.oid).join(",");
- changeStatus({oid: oid, btmname: this.result, lcStatus: 'TakeBack'}).then(res => {
+ changeStatus({oid: oid, btmname: this.selectRow[0].btmname, lcStatus: 'TakeBack'}).then(res => {
if (res.data.code == 200) {
this.$message.success('鍥炴敹鎴愬姛')
this.onLoad()
@@ -774,6 +778,7 @@
//澶氶��
handleSelectionChange(list) {
this.selectRow = list;
+ console.log(this.selectRow)
this.parameter.ids = [];
list.forEach((item) => {
this.parameter.ids.push(item.oid);
--
Gitblit v1.10.0