Browse Source

no message

linwenxin 1 year ago
parent
commit
2705a755f0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/mallManagement/configCenter/chargingStandard/index.vue

+ 2 - 2
src/views/mallManagement/configCenter/chargingStandard/index.vue

@@ -181,7 +181,7 @@ export default {
         defaultData.render = (h, { row, index, column }) => {
           return (
             <div style="padding:0 6px;cursor: pointer;">
-              {row.imageUrl ? row.imageUrl.split(",").map(url => <img src={url} style="width:80px;height:auto;" />) : null}
+              {row.imageUrl ? row.imageUrl.split(",").map(url => <el-image src={url} preview-src-list={[url]} style="width:80px;height:auto;" />) : null}
             </div>
           )
         }
@@ -283,7 +283,7 @@ export default {
             ...this.formData,
             imageUrl: this.formData.imageUrl.map(item => item.url).join(","),
           };
-          saveMain({...pam, type:1}).then(res => {
+          saveMain({ ...pam, type: 1 }).then(res => {
             this.$message({
               type: 'success',
               message: this.formDialogTitles[this.formDialogType] + `成功!`,