2
3
Просмотр исходного кода

前端: 工作流组件-图片是否存在的判断

baichengfei 5 лет назад
Родитель
Сommit
0ac7f5a8ed

+ 3 - 1
src/dashoo.cn/frontend_web/src/components/workflow/wfhistory.vue

@@ -33,7 +33,9 @@
       </el-table-column>
     </el-table>
     <el-card style="text-align: center; overflow-x: auto">
-      <img :src="baseurl + 'workflow/historyimg/' + entryinfo.instance +'?t='+(new Date()).getTime() " v-if="entryinfo.instance">
+      <div v-if="entryinfo.instance != 0 && entryinfo.instance != ''">
+        <img :src="baseurl + 'workflow/historyimg/' + entryinfo.instance +'?t='+(new Date()).getTime() ">
+      </div>
     </el-card>
   </div>
 </template>

+ 3 - 1
src/dashoo.cn/frontend_web/src/components/workflow/wfmultihistory.vue

@@ -33,7 +33,9 @@
       </el-table-column>
     </el-table>
     <el-card style="text-align: center; overflow-x: auto">
-      <img :src="baseurl + 'workflow/historyimg/' + entryinfo.instance +'?t='+(new Date()).getTime() " v-if="entryinfo.instance">
+      <div v-if="entryinfo.instance != 0 && entryinfo.instance != ''">
+        <img :src="baseurl + 'workflow/historyimg/' + entryinfo.instance +'?t='+(new Date()).getTime() ">
+      </div>
     </el-card>
   </div>
 </template>