lurunzhen преди 2 седмици
родител
ревизия
eb5afe22f0
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      src/views/order/serviceBook.vue

+ 5 - 1
src/views/order/serviceBook.vue

@@ -72,7 +72,8 @@
               <el-table-column align="center" label="上门打卡" prop="ondoorTime" width="200" >
                 <template slot-scope="scope">
                    <span style="font-weight: bold;">打卡时间:</span>{{ scope.row.ondoorTime }}<br/>
-                   <el-image 
+                   <template v-if="scope.row.ondoorImg!=''">
+                   <el-image  
                     slot="reference"
                     :preview-src-list="scope.row.ondoorImg.split(',')"
                     v-for="item in scope.row.ondoorImg.split(',')"
@@ -80,11 +81,13 @@
                     :src="item"
                     style="width: 50px; height: 50px"
                   ></el-image>
+                  </template>
                 </template>
               </el-table-column>
               <el-table-column align="center" label="完成打卡" prop="finishTime" width="200" >
               <template slot-scope="scope">
                    <span style="font-weight: bold;">完成时间:</span>{{ scope.row.finishTime }}<br/>
+                   <template v-if="scope.row.finishImg!=''">
                    <el-image   
                     slot="reference"
                     :preview-src-list="scope.row.finishImg.split(',')"
@@ -93,6 +96,7 @@
                     :src="item"
                     style="width: 50px; height: 50px"
                   ></el-image>
+                  </template>
                 </template>
               </el-table-column>
             </el-table>