From d13c3d44ca14ba07d92216bb92ff29ab504ae048 Mon Sep 17 00:00:00 2001 From: yuxc <653031404@qq.com> Date: 星期三, 02 八月 2023 17:40:09 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue | 33 +++++++++++++++++++++------------ 1 files changed, 21 insertions(+), 12 deletions(-) diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue index df7ad49..9f0dd8b 100644 --- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue +++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue @@ -234,11 +234,14 @@ hasDownload: true, hasUpload: true, height: 100 - } + }, + result:'' }; }, computed: {}, created() { + const index = this.$route.query.id.indexOf('@'); + this.result = this.$route.query.id.substring(0, index); }, mounted() { }, @@ -386,7 +389,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.parameter.template = this.userName + '-鍙戝竷['+this.result+'-' + this.selectRow[0].name + ']'; this.parameter.type = 'PUBLIC'; this.parameter.code=this.templateOid this.title = '娴佺▼瀹℃壒' @@ -397,12 +400,16 @@ cancelButtonText: '鍙栨秷', type: 'warning' }).then(() => { - this.userName = localStorage.getItem("username"); - this.parameter.template = this.userName + "-鍙戝竷" + "[鐗╁搧]"; - this.parameter.type = 'PUBLIC' - this.title = '娴佺▼瀹℃壒' - this.visibleFlow = true; - this.onLoad() + const index = this.$route.query.id.indexOf('@'); + const result = this.$route.query.id.substring(0, index); + console.log(this.$route.query) + const oid = this.selectRow.map(obj => obj.oid).join(","); + changeStatus({ oid: oid, btmname: result, lcStatus: 'Released' }).then(res => { + if(res.data.code == 200 ){ + this.$message.success('鍙戝竷鎴愬姛') + this.onLoad() + } + }); }).catch(() => { this.$message({ type: 'info', @@ -435,7 +442,7 @@ processTS({ templateId: this.templateOid, buttonTypeKey: 'PUBLIC' }).then(res => { if (res.data.records != [] && res.data.data.records.length!=0) { this.userName = localStorage.getItem("username"); - this.parameter.template = this.userName + "鍋滅敤" + "[鐗╁搧]"; + this.parameter.template = this.userName + '-鍋滅敤['+this.result+'-' + this.selectRow[0].name + ']'; this.parameter.type = 'DISABLE'; this.parameter.code=this.templateOid this.title = '鍋滅敤锛堝喕缁擄級缂栫爜鏁版嵁' @@ -488,7 +495,7 @@ 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.parameter.template = this.userName + '-鍚敤['+this.result+'-' + this.selectRow[0].name + ']'; this.parameter.type = 'Released'; this.parameter.code=this.templateOid this.title = '鍚敤缂栫爜鏁版嵁' @@ -547,7 +554,7 @@ processTS({ templateId: this.templateOid, buttonTypeKey: 'PUBLIC' }).then(res => { if (res.data.records != [] && res.data.data.records.length!=0) { this.userName = localStorage.getItem("username"); - this.parameter.template = this.userName + "鍥炴敹" + "[鐗╁搧]"; + this.parameter.template = this.userName + '-鍥炴敹['+this.result+'-' + this.selectRow[0].name + ']'; this.parameter.type = 'TakeBack'; this.parameter.code=this.templateOid this.title = '鍥炴敹缂栫爜鏁版嵁' @@ -578,9 +585,11 @@ } } }); - } else if (this.selectRow.length >=1 && !(disabledCount === this.selectRow.length || releasedCount === this.selectRow.length) || (disabledCount > 0 && releasedCount > 0) && showMessage) { + } else if (showMessage && this.selectRow.length >1 && !(disabledCount === this.selectRow.length || releasedCount === this.selectRow.length) || (disabledCount > 0 && releasedCount > 0)) { this.$message.warning('鎮ㄩ�夋嫨鐨勬暟鎹叏閮ㄤ负銆愬仠鐢ㄧ姸鎬佹垨鍙戝竷鐘舵�併�戞墠鍙互鍙戣捣娴佺▼'); showMessage = false; + }else if(showMessage){ + this.$message.warning('鎮ㄩ�夋嫨鐨勬暟鎹负銆愬仠鐢ㄧ姸鎬佹垨鍙戝竷鐘舵�併�戞墠鍙互鍙戣捣娴佺▼') } }); } -- Gitblit v1.9.3