Commit 17694044 authored by “yiyousong”'s avatar “yiyousong”

fix:修改应用数据编辑错误

parent 25be7be9
...@@ -178,6 +178,7 @@ export default { ...@@ -178,6 +178,7 @@ export default {
onEdit(data) { onEdit(data) {
data.appInfoFieldList.forEach((v) => { data.appInfoFieldList.forEach((v) => {
if (v.fieldType == "upload") { if (v.fieldType == "upload") {
if (v.fieldValue) {
v.fileList = [ v.fileList = [
{ {
uid: v.id, uid: v.id,
...@@ -186,6 +187,9 @@ export default { ...@@ -186,6 +187,9 @@ export default {
url: v.fieldValue, url: v.fieldValue,
}, },
]; ];
} else {
v.fileList = [];
}
} }
}); });
this.form = { ...data }; this.form = { ...data };
...@@ -202,8 +206,10 @@ export default { ...@@ -202,8 +206,10 @@ export default {
} }
return file; return file;
}); });
console.log(fileList);
row.fileList = fileList; row.fileList = fileList;
row.fieldValue = fileList.map((v) => v.url).join(","); row.fieldValue = fileList.map((v) => v.url).join(",");
this.$forceUpdate();
}, },
}, },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment