From 505f4037c76b36f0e1bf79ca9779312baad23c0c 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 14:20:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A4=E8=AF=81=E6=B8=85=E5=8D=95=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/batSetting.vue | 9 +++++++-- .../components/certificationList/index.vue | 20 ++++++++++++++++++- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/jero-web/src/views/projectManagement/components/certificationList/components/batSetting.vue b/jero-web/src/views/projectManagement/components/certificationList/components/batSetting.vue index b173f2f30..a157413a5 100644 --- a/jero-web/src/views/projectManagement/components/certificationList/components/batSetting.vue +++ b/jero-web/src/views/projectManagement/components/certificationList/components/batSetting.vue @@ -52,7 +52,7 @@ {{$t('engineeringInterfacePerson')}} - { this.ids = data || [] this.formInline = {} this.name = name + if (content && name == this.$t('BatchSetting')) { + this.formInline.dutyTerritory = content.dutyTerritory + this.queryPersonByProject(content.dutyTerritory) + } + this.formInline = { ...this.formInline } }) }, handleOk() { diff --git a/jero-web/src/views/projectManagement/components/certificationList/index.vue b/jero-web/src/views/projectManagement/components/certificationList/index.vue index 6f5b2c4af..c3bd46608 100644 --- a/jero-web/src/views/projectManagement/components/certificationList/index.vue +++ b/jero-web/src/views/projectManagement/components/certificationList/index.vue @@ -973,7 +973,25 @@ }, BatchSettingClick(name) { if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { - this.$refs.batSettingRef.edit(JSON.parse(JSON.stringify(this.selectedRowKeys)), name) + let isTrue = false + for (let i = 0; i < this.selectedRowKeysList.length; i++) { + if (!this.selectedRowKeysList[i].dutyTerritoryName) { + isTrue = true + break + } + for (let j = 1; j < this.selectedRowKeysList.length; j++) { + if (this.selectedRowKeysList[i].dutyTerritoryName != this.selectedRowKeysList[j].dutyTerritoryName) { + isTrue = true + break + } + } + } + if (!isTrue){ + this.$refs.batSettingRef.edit(JSON.parse(JSON.stringify(this.selectedRowKeys)), name,this.selectedRowKeysList[0]) + }else{ + this.$refs.batSettingRef.edit(JSON.parse(JSON.stringify(this.selectedRowKeys)), name) + } + } else { this.$message.warning(this.$t('selectLeastOne')) }