平台件认证清单-编辑-责任部门和责任领域没有关联

This commit is contained in:
zyx.net
2023-09-27 10:05:13 +08:00
parent c33efe00fe
commit e6683bb4a5
@@ -217,12 +217,22 @@
:prop="'dataList.'+index+'.dutyTerritory'"
:rules="[{ required: true, message: $t('areaOfResponsibility') + $t('cannotEmpty'), trigger: 'change'},]"
>
<j-dict-select-tag class="box-input" v-model="item.dutyTerritory"
@input="handleInput('dataList.'+index+'.dutyTerritory')"
@changeQuery="dutyHandleChange(index)"
:placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"
:type="'select'"
:triggerChange="false" :dictCode="'duty_territory'"/>
<a-select :placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"
class="box-input"
optionFilterProp="label"
mode="multiple"
@change="dutyHandleChange(index)"
:getPopupContainer="triggerNode=> triggerNode.parentNode"
v-model="item.dutyTerritory">
<a-select-option v-for="(val, key) in item.dutyTerritoryList"
:key="key"
:label="val.itemText"
:value="val.itemValue">
<span style="display: inline-block;width: 100%" :title=" val.itemText ">
{{ val.itemText }}
</span>
</a-select-option>
</a-select>
</a-form-model-item>
</div>
</a-col>
@@ -810,9 +820,12 @@
value.dutyDepart = value.dutyDepart ? value.dutyDepart.split(',') : []
value.dutyTerritory = value.dutyTerritory ? value.dutyTerritory.split(',') : []
this.formInline = JSON.parse(JSON.stringify(value))
// if (value.dutyTerritory && value.dutyTerritory.length > 0) {
// this.queryPersonByProject(value.dutyTerritory.join(','))
// }
if (value.dutyDepart && value.dutyDepart.length > 0) {
this.getDutyTerritoryOne(value.dutyDepart.join(','))
}
if (value.dutyTerritory && value.dutyTerritory.length > 0) {
this.queryPersonByProject(value.dutyTerritory.join(','))
}
this.getRegulationNo()
this.title = this.$t('edit')
this.$nextTick(() => {