diff --git a/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue b/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue index fb7c4627c..d881e97b0 100644 --- a/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue +++ b/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue @@ -457,7 +457,7 @@ :query="{db_field_name:'dutyPerson',db_field_txt:$t('personLiable')}" :personneQuery="formInline" :isSingleChoice="true" - v-if="visible" + v-if="personnelVisible" @change="PersonnelSelectionChange" :disabled="disabled" v-model="formInline.dutyPersonName"/> @@ -509,6 +509,7 @@ formInline: {}, confirmLoading: false, visible: false, + personnelVisible:false, yearNameDataList: [], rules: { serialNumber: [ @@ -631,6 +632,7 @@ addModel() { this.visible = true + this.personnelVisible = true this.title = this.$t('add') this.formInline = {} this.getRegulationNo() @@ -643,6 +645,7 @@ editModel(value) { this.formInline = {} this.visible = true + this.personnelVisible = true this.formInline = JSON.parse(JSON.stringify(value)) // if (this.formInline.deliverableType) { // this.formInline.deliverableType = this.formInline.deliverableType.split(',') @@ -659,6 +662,7 @@ }, handleCancel() { this.visible = false + this.personnelVisible = false }, handleSubmit() { this.$refs.ruleForm.validate(valid => { @@ -709,6 +713,7 @@ this.$message.success(this.$t('OperationSuccessful')) } this.visible = false + this.personnelVisible = false this.$emit('addModelForm') } else { this.$message.warning(res.message) @@ -831,9 +836,14 @@ this.formInline.dutyPersonName = res.result.engineeringInterfacePersonList[0].name this.formInline.dutyPerson = res.result.engineeringInterfacePersonList[0].value } + this.formInline = {...this.formInline} } else if (this.engineeringInterfacePersonList.length == 0) { this.formInline.sdt = undefined } + this.personnelVisible = false + this.$nextTick(()=>{ + this.personnelVisible = true + }) } else { this.$nextTick(() => { this.formInline.dataList[index].engineeringInterfacePersonList = res.result.engineeringInterfacePersonList || []