[update] 市场法规清单
This commit is contained in:
+10
-7
@@ -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'))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user