Procházet zdrojové kódy

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

littlegreen před 2 roky
rodič
revize
f471fc10e4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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" />