This commit is contained in:
yanran200730
2022-03-17 17:42:19 +08:00
parent 214ced7029
commit 63ce994265

View File

@@ -82,7 +82,6 @@
},
mounted () {
this.getFormData()
this.getDetail()
},
@@ -136,7 +135,11 @@
}
formList[item.groupIndex]?.push(colItem) || (formList[item.groupIndex] = [colItem])
if (item.type === 'upload') {
this.$set(this.formData, colItem.fieldDbName, [])
this.$set(this.formData, colItem.fieldDbName, this.formData[colItem.fieldDbName] ? this.formData[colItem.fieldDbName].split(',').map(v => {
return {
url: v
}
}) : [])
} else {
this.$set(this.formData, colItem.fieldDbName, colItem.fieldValue || "")
}
@@ -160,6 +163,7 @@
this.instance.post(`/app/appapplicationinfo/queryDetailById?appId=${this.appId}&id=${this.params.id}`).then((res) => {
if (res?.data) {
this.formData = res.data
this.getFormData()
}
})
},