liyongli 2 年之前
父节点
当前提交
f5dc92a59f
共有 1 个文件被更改,包括 2 次插入12 次删除
  1. 2 12
      src/view/allMedia/components/reporting_list.vue

+ 2 - 12
src/view/allMedia/components/reporting_list.vue

@@ -96,12 +96,7 @@
               style="padding: 2px 0; position: relative;padding-right: 112px;"
             >
               <span v-if="v.type == 0" v-text="v.materialUrl"></span>
-              <img
-                v-if="v.type == 1"
-                :src="v.localUrl"
-                alt="图片丢失"
-                style="width: 80px"
-              />
+              <el-image v-if="v.type == 1" style="width: 100px; height: 100px" :src="v.localUrl" fit="contain" :preview-src-list="[v.localUrl]" />
               <small
                 style="
                   color: #999;
@@ -138,12 +133,7 @@
             style="padding: 2px 0; position: relative;padding-right: 112px;"
           >
             <span v-if="v.type == 0" v-text="v.materialUrl"></span>
-            <img
-              v-if="v.type == 1"
-              :src="v.localUrl"
-              alt="图片丢失"
-              style="width: 80px"
-            />
+            <el-image v-if="v.type == 1" style="width: 100px; height: 100px" :src="v.localUrl" fit="contain" :preview-src-list="[v.localUrl]" />
             <small
               style="
                 color: #999;