平台件认证清单-编辑 责任人不能为空的提示

This commit is contained in:
zyx.net
2023-09-27 13:40:13 +08:00
parent b72071eb1f
commit 54fe31c744
2 changed files with 2 additions and 2 deletions
@@ -140,9 +140,10 @@
let content = this.selectData.filter(res => { let content = this.selectData.filter(res => {
return res.id === selectValue return res.id === selectValue
}) })
this.$emit('input', content[0].username) this.$emit('input', content.length > 0 ? content[0].username:'')
this.$emit('change', this.query.db_field_name, selectValue, this.query.subscript) this.$emit('change', this.query.db_field_name, selectValue, this.query.subscript)
} else { } else {
console.log(1)
Object.assign(this, { Object.assign(this, {
selectValue, selectValue,
fetching: false fetching: false
@@ -380,7 +380,6 @@
<PersonnelSelection <PersonnelSelection
:query="{db_field_name:'dutyPerson',db_field_txt:$t('personLiable')}" :query="{db_field_name:'dutyPerson',db_field_txt:$t('personLiable')}"
:personneQuery="formInline" :personneQuery="formInline"
:isSingleChoice="true"
v-if="personnelVisible" v-if="personnelVisible"
@change="PersonnelSelectionChange" @change="PersonnelSelectionChange"
:disabled="disabled" :disabled="disabled"