From 33ed5a745e7db919274421584d5823cbb1f1e9b7 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Fri, 15 Dec 2023 10:45:25 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=B8=BB=E5=8A=A8=E4=B8=8A=E6=8A=A5?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/ContactEnterSendTaskModal.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterSendTaskModal.vue b/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterSendTaskModal.vue index 4004de53..8bb7ab14 100644 --- a/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterSendTaskModal.vue +++ b/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterSendTaskModal.vue @@ -786,6 +786,14 @@ export default { this.visible = true this.model = Object.assign({}, record) this.formInline = Object.assign({}, record) + if (this.formInline.workGroup) { + this.formInline.workGroup = { value: this.formInline.workGroup, label: this.formInline.workGroup_dictText } + } + if (this.formInline.enStandardSystem && this.formInline.enStandardSystem.length > 0) { + this.formInline.enStandardSystem = this.formInline.enStandardSystem ? this.formInline.enStandardSystem.split(',').map(item => { + return { value: item } + }) : [] + } this.disabled = true }, // watch监视年代号会滞后 @@ -937,7 +945,10 @@ export default { // 设置创建人 const currentUser = Vue.ls.get(USER_INFO) formInline.contactUser_dictText = currentUser.realname + '(' + currentUser.username + ')' - // 主起草单位的回显需要在登录信息中有当前登录人部门的翻译 ?? + // 主起草单位如果没有翻译字段,说明就是当前登录人没有重新选 + if (!formInline.mainDraftingUnit_dictText) { + formInline.mainDraftingUnit_dictText = currentUser.departIds_dicText + } console.log(formInline) this.$emit('ok', formInline) this.close()