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

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

parent 25be7be9
...@@ -178,14 +178,18 @@ export default { ...@@ -178,14 +178,18 @@ export default {
onEdit(data) { onEdit(data) {
data.appInfoFieldList.forEach((v) => { data.appInfoFieldList.forEach((v) => {
if (v.fieldType == "upload") { if (v.fieldType == "upload") {
v.fileList = [ if (v.fieldValue) {
{ v.fileList = [
uid: v.id, {
name: v.fieldValue, uid: v.id,
status: "done", name: v.fieldValue,
url: v.fieldValue, status: "done",
}, 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