Browse Source

表格中对有无图片数据的显示处理

littlegreen 2 years ago
parent
commit
f471fc10e4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ruoyi-ui/src/views/cert/grad/index.vue

+ 1 - 1
ruoyi-ui/src/views/cert/grad/index.vue

@@ -152,7 +152,7 @@
       <el-table-column label="培训时间段" align="center" prop="trainPeriod" />
       <el-table-column label="照片" align="center" prop="picture" width="100">
         <template slot-scope="scope">
-          <image-preview :src="scope.row.picture" :width="50" :height="50"/>
+          <image-preview :src="scope.row.picture" :width="50" :height="50" v-show="(scope.row.picture===''||scope.row.picture==null)?false:true"/>
         </template>
       </el-table-column>
       <el-table-column label="手机号码" align="center" prop="userPhone" />