Commit 2f1cbdd2 authored by “yiyousong”'s avatar “yiyousong”

fix:修改编辑应用数据回填

parent f371e2aa
......@@ -76,7 +76,7 @@
<!-- 应用包 -->
<template slot="fileName" slot-scope="text">
<a v-if="text.fileName" class="primary">{{ text.fileName }}</a>
<span>--</span>
<span v-else>--</span>
</template>
<!-- 当前是否使用 -->
<template slot="used" slot-scope="text">
......
......@@ -287,7 +287,7 @@ export default {
});
this.fileList = fileList;
if (this.fileList.length) {
this.form.fileName = this.fileList[0].fileName;
this.form.fileName = this.fileList[0].name;
this.form.filePath = this.fileList[0].url;
} else {
this.form.filePath = "";
......@@ -301,6 +301,7 @@ export default {
},
// 编辑
onEdit(data) {
console.log(data);
this.form = { ...data };
this.fileList = [
{
......
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