diff --git a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue index f4a1128..c39925a 100644 --- a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue +++ b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue @@ -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')) })