소스 검색

控制页面图片展现

oyq28 2 년 전
부모
커밋
11302c7ab8
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      imcs-bt-fe/imcs-bt-fe/imcs-ui/src/views/zuihou/productionresource/Index.vue

+ 6 - 2
imcs-bt-fe/imcs-bt-fe/imcs-ui/src/views/zuihou/productionresource/Index.vue

@@ -116,10 +116,14 @@
               border fit row-key="id" ref="table" style="width: 100%;margin-top:30px;" v-loading="loading">
       <el-table-column align="center" type="selection" width="40px" :reserve-selection="true"/>
       <el-table-column :label="$t('productionResource.imgUrl')" :show-overflow-tooltip="true" align="center"
-                       prop="pic"
+                       prop="imgUrl"
                        width="">
         <template slot-scope="scope">
-          <span><el-image :src="scope.row.pic"></el-image></span>
+          <span>
+              <el-image :src="scope.row.imgUrl" v-if="scope.row.imgUrl"></el-image>
+              <el-image :src="scope.row.pic" v-else-if="scope.row.pic"></el-image>
+              <!--<el-image :src="scope.row.pic" v-else></el-image>-->
+          </span>
         </template>
       </el-table-column>
       <el-table-column :label="$t('productionResource.name')" :show-overflow-tooltip="true" align="center" prop="name"