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

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

parent 25be7be9
......@@ -178,6 +178,7 @@ export default {
onEdit(data) {
data.appInfoFieldList.forEach((v) => {
if (v.fieldType == "upload") {
if (v.fieldValue) {
v.fileList = [
{
uid: v.id,
......@@ -186,6 +187,9 @@ export default {
url: v.fieldValue,
},
];
} else {
v.fileList = [];
}
}
});
this.form = { ...data };
......@@ -202,8 +206,10 @@ export default {
}
return file;
});
console.log(fileList);
row.fileList = fileList;
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