update 国内、海外标准详情
This commit is contained in:
@@ -229,8 +229,8 @@ export default {
|
|||||||
return func
|
return func
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
async created () {
|
||||||
this.initForm()
|
await this.initForm()
|
||||||
this.initDetailData()
|
this.initDetailData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -238,14 +238,25 @@ export default {
|
|||||||
* 获取页面字段
|
* 获取页面字段
|
||||||
*/
|
*/
|
||||||
initForm () {
|
initForm () {
|
||||||
this.operateApiFunc.getFormFunc({ type: 1 }).then(res => {
|
return new Promise(resolve => {
|
||||||
if (res.success) {
|
this.operateApiFunc.getFormFunc({ type: 1 }).then(res => {
|
||||||
const data = res.result || {}
|
if (res.success) {
|
||||||
this.partList = Object.keys(data)
|
const data = res.result || {}
|
||||||
this.form = data
|
this.partList = Object.keys(data)
|
||||||
} else {
|
const formList = Object.values(data).reduce((acc, cur) => acc.concat(cur), [])
|
||||||
this.$message.warn(res.message)
|
this.fileField = []
|
||||||
}
|
formList.forEach(item => {
|
||||||
|
if (item.fieldShowType === FieldType.FILE_UP.value) {
|
||||||
|
this.fileField.push(item.dbFieldName)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.form = data
|
||||||
|
} else {
|
||||||
|
this.$message.warn(res.message)
|
||||||
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
resolve()
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 获取数据
|
// 获取数据
|
||||||
|
|||||||
Reference in New Issue
Block a user