28332
This commit is contained in:
@@ -82,7 +82,6 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
mounted () {
|
mounted () {
|
||||||
this.getFormData()
|
|
||||||
this.getDetail()
|
this.getDetail()
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -136,7 +135,11 @@
|
|||||||
}
|
}
|
||||||
formList[item.groupIndex]?.push(colItem) || (formList[item.groupIndex] = [colItem])
|
formList[item.groupIndex]?.push(colItem) || (formList[item.groupIndex] = [colItem])
|
||||||
if (item.type === 'upload') {
|
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 {
|
} else {
|
||||||
this.$set(this.formData, colItem.fieldDbName, colItem.fieldValue || "")
|
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) => {
|
this.instance.post(`/app/appapplicationinfo/queryDetailById?appId=${this.appId}&id=${this.params.id}`).then((res) => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.formData = res.data
|
this.formData = res.data
|
||||||
|
this.getFormData()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user