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

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

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