Commit 2e081e63 authored by 王晓倩's avatar 王晓倩

隐患信息列表显示图片

parent eb4b2117
...@@ -56,9 +56,7 @@ ...@@ -56,9 +56,7 @@
</el-table-column> </el-table-column>
<el-table-column label="图片" align="center" prop="pictureUrl" > <el-table-column label="图片" align="center" prop="pictureUrl" >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.pictureUrl != '' && scope.row.pictureUrl != null" @click="checkFile(scope.row.pictureUrl)" > <el-image :src="scope.row.pictureUrl" :preview-src-list="[scope.row.pictureUrl]" v-if="scope.row.pictureUrl != '' && scope.row.pictureUrl != null" style="width: 16px;"></el-image>
<i class="el-icon el-icon-view"></i>查看
</span>
<span v-if="scope.row.pictureUrl == '' || scope.row.pictureUrl == null">-</span> <span v-if="scope.row.pictureUrl == '' || scope.row.pictureUrl == null">-</span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -398,9 +396,6 @@ export default { ...@@ -398,9 +396,6 @@ export default {
this.loading = false; this.loading = false;
}); });
}, },
checkFile(url) {
window.open("http://36.148.23.59:8901/gassafety" + url, "_blank");
},
/** 详细信息跳转 */ /** 详细信息跳转 */
showDetail(row) { showDetail(row) {
this.$router.push({ this.$router.push({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment