From 4f9cf7c244c43e2c01b0e220eedbdf01dcf8a721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Fri, 14 Apr 2023 10:29:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=95=E8=A7=84=E6=B8=85=E5=8D=95=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=93=8D=E4=BD=9C=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/common/lang/en-us.js | 1 + jero-web/src/common/lang/zh-cn.js | 1 + .../components/batSetting.vue | 36 ++++++++++------ .../components/listOfRegulations.vue | 42 ++++++++++++++++--- 4 files changed, 63 insertions(+), 17 deletions(-) diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index 9d9ee1146..15f2fa326 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -1784,4 +1784,5 @@ module.exports = { modifyOperator:'Modify Operator', onlyDesignComplianceConfirmationSelected:'Only data with a design compliance confirmation process status of task to be confirmed, result to be submitted, or verification compliance confirmation process status of task to be confirmed, result to be submitted can be selected', oneThePersonnelMustBeSelected:'One of the personnel must be selected', + pleaseSelectRegulatoryCurrentLogin:'Please select Regulatory Engineer as the data for the current login', } \ No newline at end of file diff --git a/jero-web/src/common/lang/zh-cn.js b/jero-web/src/common/lang/zh-cn.js index 46ebe9b09..227b81d1a 100644 --- a/jero-web/src/common/lang/zh-cn.js +++ b/jero-web/src/common/lang/zh-cn.js @@ -1886,4 +1886,5 @@ module.exports = { modifyOperator:'修改操作人', onlyDesignComplianceConfirmationSelected:'只能选择设计符合性确认流程状态为任务待确认、结果待提交或验证符合性确认流程状态为任务待确认、结果待提交的数据', oneThePersonnelMustBeSelected:'必须选择其中一个人员', + pleaseSelectRegulatoryCurrentLogin:'请选择法规工程师为当前登录人的数据', } \ No newline at end of file diff --git a/jero-web/src/views/projectManagement/components/batSetting.vue b/jero-web/src/views/projectManagement/components/batSetting.vue index e2acfa335..2519d5201 100644 --- a/jero-web/src/views/projectManagement/components/batSetting.vue +++ b/jero-web/src/views/projectManagement/components/batSetting.vue @@ -113,13 +113,13 @@ - - - - - - - + + + + + + + @@ -361,7 +361,7 @@ ids: [], code: '', regulatoryEngineerList: [], - engineeringInterfacePersonList:[], + engineeringInterfacePersonList: [] } }, mounted() { @@ -370,7 +370,7 @@ dutyTerritoryChange(event) { this.formInline.regulationOwnerId = undefined this.formInline.engineeringInterfacePerson = undefined - this.formInline = {...this.formInline} + this.formInline = { ...this.formInline } this.queryPersonByProject(event) }, queryPersonByProject(row) { @@ -380,8 +380,15 @@ } getAction('/project/projectRelatedPersonnel/queryPersonByProjectId', query).then((res) => { if (res.success) { - this.regulatoryEngineerList = res.result.lawEngineerList //法规工程师 - this.engineeringInterfacePersonList = res.result.engineeringInterfacePersonList //工程接口人 + this.regulatoryEngineerList = res.result.lawEngineerList || [] //法规工程师 + this.engineeringInterfacePersonList = res.result.engineeringInterfacePersonList || [] //工程接口人 + if (this.regulatoryEngineerList.length == 1) { + this.formInline.regulationOwnerId = this.regulatoryEngineerList[0].value + } + if (this.engineeringInterfacePersonList.length == 1) { + this.formInline.engineeringInterfacePerson = this.engineeringInterfacePersonList[0].value + } + this.formInline = {...this.formInline} } }) }, @@ -389,7 +396,7 @@ this.formInline[value] = id this.formInline = { ...this.formInline } }, - edit(data, code) { + edit(data, code, content) { this.visible = true this.regulatoryEngineerList = [] this.engineeringInterfacePersonList = [] @@ -398,6 +405,11 @@ this.$nextTick(() => { this.ids = data || [] this.formInline = {} + if (content) { + this.formInline.dutyTerritory = content.dutyTerritory + this.queryPersonByProject(content) + } + this.formInline = { ...this.formInline } }) }, handleOk() { diff --git a/jero-web/src/views/projectManagement/components/listOfRegulations.vue b/jero-web/src/views/projectManagement/components/listOfRegulations.vue index f43f2672d..bf495680b 100644 --- a/jero-web/src/views/projectManagement/components/listOfRegulations.vue +++ b/jero-web/src/views/projectManagement/components/listOfRegulations.vue @@ -119,7 +119,7 @@