From ef23237ddabf5ea44856ff369a7c8973758db3d0 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 03 八月 2023 17:52:27 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue | 7 ++++++- Source/UBCS-WEB/src/components/template/SetPersonnel.vue | 24 ++++++++---------------- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue index 69dadec..0b8e3cd 100644 --- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue +++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue @@ -192,6 +192,7 @@ //鍙戝竷 parameter: { ids: [], + btmtype:'', code: "", type: '', // this.visibleDeactivate ?'ENABLE':this.visibleEnable ? 'DISABLE' :this.visibleRecovery ? 'ROLLBACK' :'PUBLIC' @@ -442,7 +443,8 @@ this.userName = localStorage.getItem("username"); this.parameter.template = this.userName + '-鐢宠[' + this.Treedata[0].name + '-' + this.selectRow[0].name + ']'; this.parameter.type = 'PUBLIC'; - this.parameter.code = this.templateOid + this.parameter.code = this.templateOid; + this.parameter.btmtype=this.selectRow[0].btmname || this.selectRow[0].btmtype; this.title = '娴佺▼瀹℃壒' this.visibleFlow = true; } else { @@ -493,6 +495,7 @@ this.parameter.template = this.userName + '-鍋滅敤[' + this.Treedata[0].name + '-' + this.selectRow[0].name + ']'; this.parameter.type = 'DISABLE'; this.parameter.code = this.templateOid + this.parameter.btmtype=this.selectRow[0].btmname || this.selectRow[0].btmtype; this.title = '鍋滅敤锛堝喕缁擄級缂栫爜鏁版嵁' this.visibleDeactivate = true; } else { @@ -544,6 +547,7 @@ this.parameter.template = this.userName + '-鍚敤[' + this.Treedata[0].name + '-' + this.selectRow[0].name + ']'; this.parameter.type = 'Released'; this.parameter.code = this.templateOid + this.parameter.btmtype=this.selectRow[0].btmname || this.selectRow[0].btmtype; this.title = '鍚敤缂栫爜鏁版嵁' this.visibleDeactivate = true; } else { @@ -601,6 +605,7 @@ this.parameter.template = this.userName + '-鍥炴敹[' + this.selectRow[0].btmname + '-' + this.selectRow[0].name + ']'; this.parameter.type = 'TakeBack'; this.parameter.code = this.templateOid + this.parameter.btmtype=this.selectRow[0].btmname || this.selectRow[0].btmtype; this.title = '鍥炴敹缂栫爜鏁版嵁' this.visibleDeactivate = true; } else { diff --git a/Source/UBCS-WEB/src/components/template/SetPersonnel.vue b/Source/UBCS-WEB/src/components/template/SetPersonnel.vue index 29cec50..c208c2b 100644 --- a/Source/UBCS-WEB/src/components/template/SetPersonnel.vue +++ b/Source/UBCS-WEB/src/components/template/SetPersonnel.vue @@ -66,7 +66,8 @@ ids: 'ids', flowTemplate: 'flowTemplate', code: 'code', - type: 'type' + type: 'type', + btmtype:'btmtype' } } } @@ -127,6 +128,8 @@ processName: this.parameter[this.parameterKeys.flowTemplate], topName: this.title, ids: this.parameter[this.parameterKeys.ids], + oids: this.parameter[this.parameterKeys.ids], + btmtype:this.parameter[this.parameterKeys.btmtype], vars:this.parameter['vars'] } }, @@ -198,22 +201,17 @@ async apiSave() { try { const len = this.collectParam.flowTaskUsers.length - console.log(this.collectParam.flowTaskUsers) - console.log(len == 0) - console.log(len != this.initFrom.length) - console.log('saveParam',this.saveParam) if (len == 0 && len != this.initFrom.length) { this.$message({ type: "error", message: "璇烽�夋嫨鑺傜偣锛�" }); } else { - const {modelKey,modelName,processDesc,processName,templateId,topName,vars,ids} = this.saveParam - const vals= {modelKey,modelName,processDesc,processName,templateId,topName,ids,...vars} - console.log('vals',vals); + const {modelKey,modelName,processDesc,processName,templateId,topName,vars,ids,btmtype} = this.saveParam + let vals= {modelKey,modelName,processDesc,processName,templateId,topName,ids,btmtype,...vars} + vals.oids=ids; const response = await personnelSave({ variables:vals, flowTaskUsers: this.collectParam.flowTaskUsers, }) if (response.status === 200) { - console.log(response) this.$message({ type: 'success', message: response.data.msg @@ -224,13 +222,10 @@ } } catch { - console.error('鎺ュ彛璋冪敤澶辫触') + this.$message.error('鎺ュ彛璋冪敤澶辫触') } }, handleClickTag(event) { - console.log(event.flowTaskUsers) - - console.log(this.collectParam.flowTaskUsers) let flowTaskUsers = this.collectParam.flowTaskUsers this.collectParam.flowTaskUsers = flowTaskUsers.map((item, index) => { for (let i = 0; i < event.flowTaskUsers.length; i++) { @@ -257,16 +252,13 @@ // this.collectParam.flowTaskUsers = {...this.collectParam.flowTaskUsers,userId,userName} }, handleCloseTag(event) { - console.log(event) this.canCollect(event.name) }, handleSelect(event, index) { const res = this.typeName.find(item => item.userId === event) const { userName } = res - console.log(this.users) this.$set(this.users, index, { ... this.collectParam.flowTaskUsers[index], userName }) // this.users[index] = { ... this.collectParam.flowTaskUsers[index], userName } - console.log(this.users) }, done() { this.dialogVisible = false -- Gitblit v1.9.3