Browse Source

网站管理的编辑时图片回显

lcmxs 1 year ago
parent
commit
aaea7b8aa2
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/views/WEBSITE/index.vue

+ 6 - 2
src/views/WEBSITE/index.vue

@@ -54,7 +54,7 @@
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
-    <el-table v-loading="loading" :data="WEBSITEList" @selection-change="handleSelectionChange">
+    <el-table v-loading="loading" :data="WEBSITEList" @selection-change="handleSelectionChange" height="calc(100vh - 300px)">
       <el-table-column type="selection" width="55" align="center" />
       <el-table-column label="网址名字" align="center" prop="websiteName"/>
       <el-table-column label="背景图片" align="center" prop="websiteUrl">
@@ -244,8 +244,9 @@ export default {
       this.form = {
         websiteUrl: null,
         websiteName: null,
-        id: null
+        id: null,
       };
+      this.fileList = [];
       this.resetForm("form");
     },
     /** 搜索按钮操作 */
@@ -278,6 +279,9 @@ export default {
         this.form = response.data;
         this.open = true;
         this.title = "修改网站管理";
+        if (this.form.websiteUrl) {
+          this.fileList.push({ name: "xxx", url: this.form.websiteUrl });
+        }
       });
     },
     /** 提交按钮 */