[update] 市场法规清单

This commit is contained in:
lideqin
2024-07-04 10:06:05 +08:00
parent 844e3ced69
commit e07ce3a071
@@ -512,13 +512,16 @@ export default {
getMarketRegulationListById(param).then(res => {
if (res.success) {
this.model = Object.assign({}, res.result)
const uid = uidGenerator()
this.dataSource = JSON.parse(JSON.stringify(this.model.lists.map(item => {
return { ...item, uid }
})))
this.dataList = JSON.parse(JSON.stringify(this.model.lists.map(item => {
return { ...item, uid }
})))
if (this.model.manifest.country) {
this.model.manifest.country = this.model.manifest.country.split(',').map(item => {
return { value: item }
})
}
for (const item of this.model.lists) {
const uid = uidGenerator()
this.dataSource.push({ ...item, uid })
this.dataList.push({ ...item, uid })
}
this.$nextTick(() => {
this.form.setFieldsValue(pick(this.model.manifest, 'country', 'manifestNo', 'customName', 'drivePosition', 'securityLevel', 'manifestDesc', 'file'))
})