[update] 市场法规清单
This commit is contained in:
+10
-7
@@ -512,13 +512,16 @@ export default {
|
|||||||
getMarketRegulationListById(param).then(res => {
|
getMarketRegulationListById(param).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.model = Object.assign({}, res.result)
|
this.model = Object.assign({}, res.result)
|
||||||
const uid = uidGenerator()
|
if (this.model.manifest.country) {
|
||||||
this.dataSource = JSON.parse(JSON.stringify(this.model.lists.map(item => {
|
this.model.manifest.country = this.model.manifest.country.split(',').map(item => {
|
||||||
return { ...item, uid }
|
return { value: item }
|
||||||
})))
|
})
|
||||||
this.dataList = JSON.parse(JSON.stringify(this.model.lists.map(item => {
|
}
|
||||||
return { ...item, uid }
|
for (const item of this.model.lists) {
|
||||||
})))
|
const uid = uidGenerator()
|
||||||
|
this.dataSource.push({ ...item, uid })
|
||||||
|
this.dataList.push({ ...item, uid })
|
||||||
|
}
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form.setFieldsValue(pick(this.model.manifest, 'country', 'manifestNo', 'customName', 'drivePosition', 'securityLevel', 'manifestDesc', 'file'))
|
this.form.setFieldsValue(pick(this.model.manifest, 'country', 'manifestNo', 'customName', 'drivePosition', 'securityLevel', 'manifestDesc', 'file'))
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user