Selaa lähdekoodia

修改图片显示

bding 1 vuosi sitten
vanhempi
commit
b685a726a6
1 muutettua tiedostoa jossa 8 lisäystä ja 3 poistoa
  1. 8 3
      src/views/rai_manage/reportManage/yanXuanSpecial.vue

+ 8 - 3
src/views/rai_manage/reportManage/yanXuanSpecial.vue

@@ -42,10 +42,14 @@
             {{ key.DocName }}.{{ key.DocSuffix }}
           </div>
           <div class="img-box">
-            <img v-for="(key, index) in item.ImgUrl.split(',')" :key="index" :src="key" alt="" />
+            <template v-if="item.ImgUrl">
+              <el-image style="width: 115px; height: 115px" v-for="(key, index) in item.ImgUrl.split(',')" :key="index" :src="key" :preview-src-list="item.ImgUrl.split(',')"> </el-image>
+            </template>
           </div>
           <div>
-            <div class="lable-li" v-for="(key, index) in item.Tags.split(',')" :key="index">{{ key }}</div>
+            <template v-if="item.Tags">
+              <div class="lable-li" v-for="(key, index) in item.Tags.split(',')" :key="index">{{ key }}</div>
+            </template>
           </div>
           <div class="bottom-button">
             <div @click="submitRejectDlgHandler(item)">驳回</div>
@@ -280,8 +284,9 @@ div {
       height: 112px;
       img {
         width: 112px;
-        height: 100%;
+        height: 112px;
         margin-right: 30px;
+        cursor: pointer;
       }
     }
     .lable-li {