lurunzhen 2 months ago
parent
commit
eb5afe22f0
1 changed files with 5 additions and 1 deletions
  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" >
               <el-table-column align="center" label="上门打卡" prop="ondoorTime" width="200" >
                 <template slot-scope="scope">
                 <template slot-scope="scope">
                    <span style="font-weight: bold;">打卡时间:</span>{{ scope.row.ondoorTime }}<br/>
                    <span style="font-weight: bold;">打卡时间:</span>{{ scope.row.ondoorTime }}<br/>
-                   <el-image 
+                   <template v-if="scope.row.ondoorImg!=''">
+                   <el-image  
                     slot="reference"
                     slot="reference"
                     :preview-src-list="scope.row.ondoorImg.split(',')"
                     :preview-src-list="scope.row.ondoorImg.split(',')"
                     v-for="item in scope.row.ondoorImg.split(',')"
                     v-for="item in scope.row.ondoorImg.split(',')"
@@ -80,11 +81,13 @@
                     :src="item"
                     :src="item"
                     style="width: 50px; height: 50px"
                     style="width: 50px; height: 50px"
                   ></el-image>
                   ></el-image>
+                  </template>
                 </template>
                 </template>
               </el-table-column>
               </el-table-column>
               <el-table-column align="center" label="完成打卡" prop="finishTime" width="200" >
               <el-table-column align="center" label="完成打卡" prop="finishTime" width="200" >
               <template slot-scope="scope">
               <template slot-scope="scope">
                    <span style="font-weight: bold;">完成时间:</span>{{ scope.row.finishTime }}<br/>
                    <span style="font-weight: bold;">完成时间:</span>{{ scope.row.finishTime }}<br/>
+                   <template v-if="scope.row.finishImg!=''">
                    <el-image   
                    <el-image   
                     slot="reference"
                     slot="reference"
                     :preview-src-list="scope.row.finishImg.split(',')"
                     :preview-src-list="scope.row.finishImg.split(',')"
@@ -93,6 +96,7 @@
                     :src="item"
                     :src="item"
                     style="width: 50px; height: 50px"
                     style="width: 50px; height: 50px"
                   ></el-image>
                   ></el-image>
+                  </template>
                 </template>
                 </template>
               </el-table-column>
               </el-table-column>
             </el-table>
             </el-table>