BUG 30508

This commit is contained in:
aixianling
2022-07-06 15:14:23 +08:00
parent 108c486240
commit bcd90e0706

View File

@@ -387,7 +387,7 @@ export default {
this.configs.tableInfos.map((item) => {
this.formData[item.fieldDbName] = res.data[item.fieldDbName] || ''
if (item.type == 'checkbox') {
this.formData[item.fieldDbName] = this.formData[item.fieldDbName]?.split(',')
this.formData[item.fieldDbName] = this.formData[item.fieldDbName]?.split(',')?.filter(e => !!e)
}
if (item.type === 'gird' && this.formData[item.fieldDbName]) {
@@ -422,7 +422,7 @@ export default {
if (item.length) {
item.map((items) => {
if (items.type == 'checkbox') { //多选
this.formData[items.fieldDbName] = this.formData[items.fieldDbName]?.toString()
this.formData[items.fieldDbName] = this.formData[items.fieldDbName]?.filter(e => !!e)?.toString()
}
if (items.type == 'upload') {
this.formData[items.fieldDbName] = this.formData[items.fieldDbName].map(v => v.url).join(',')