| | |
| | | </el-table-column> |
| | | <el-table-column label="安全风险空间分布图" prop="img" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-popover placement="top-start" trigger="click"> |
| | | <!-- <a href="http://192.168.0.7:8100/upload/enterprise/20210327184751998.png" target="_blank" title="查看最大化图片"><img src="http://192.168.0.7:8100/upload/enterprise/20210327184751998.png" style="width: 300px;height: 300px" /></a>--> |
| | | <!-- <img slot="reference" src="http://192.168.0.7:8100/upload/enterprise/20210327184751998.png" style="width:40px;height:40px;margin-left:10px;cursor:pointer" ></img>--> |
| | | <!-- <a :href="scope.row.enterpriseResources.url" target="_blank" title="查看最大化图片"><img v-for="(item,index) in scope.row.enterpriseResources" :src="item.url" style="width: 300px;height: 300px" /></a>--> |
| | | <img slot="reference" :src="scope.row.img" style="width:40px;height:40px;margin-left:10px;cursor:pointer" @click="showImg(scope.row.img)"></img> |
| | | </el-popover> |
| | | <el-button type="text" @click="downloadPic(scope.row)">下载</el-button> |
| | | <!-- <el-popover placement="top-start" trigger="click">--> |
| | | <!-- <!– <a href="http://192.168.0.7:8100/upload/enterprise/20210327184751998.png" target="_blank" title="查看最大化图片"><img src="http://192.168.0.7:8100/upload/enterprise/20210327184751998.png" style="width: 300px;height: 300px" /></a>–>--> |
| | | <!-- <!– <img slot="reference" src="http://192.168.0.7:8100/upload/enterprise/20210327184751998.png" style="width:40px;height:40px;margin-left:10px;cursor:pointer" ></img>–>--> |
| | | <!-- <!– <a :href="scope.row.enterpriseResources.url" target="_blank" title="查看最大化图片"><img v-for="(item,index) in scope.row.enterpriseResources" :src="item.url" style="width: 300px;height: 300px" /></a>–>--> |
| | | <!-- <img slot="reference" :src="scope.row.img" style="width:40px;height:40px;margin-left:10px;cursor:pointer" @click="showImg(scope.row.img)"></img>--> |
| | | <!-- </el-popover>--> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="创建人" prop="createUname" align="center"> |
| | |
| | | }) |
| | | } |
| | | }, |
| | | downloadPic(val){ |
| | | window.open( val.img, '_blank') |
| | | }, |
| | | showSafetyRiskSpace(value,type){ |
| | | this.safetyRiskSpaceVisible = true |
| | | this.$nextTick(() =>{ |
| | |
| | | }else{ |
| | | this.title = '查看' |
| | | this.safetyRiskSpaceForm = value |
| | | this.fileList = [] |
| | | this.fileList.push({url:value.img}) |
| | | } |
| | | }, |
| | |
| | | cancelButtonText:'取消', |
| | | type:'warning', |
| | | }).then(()=> { |
| | | deleteSafetyRiskSpace(val.id).then( ()=>{ |
| | | this.getSafetyRiskSpaceData() |
| | | this.$notify({ |
| | | title:'成功', |
| | | message:'删除成功', |
| | | type:'success', |
| | | duration:2000, |
| | | }) |
| | | deleteSafetyRiskSpace(val.id).then( (res)=>{ |
| | | if(res.data.code === '200'){ |
| | | this.getSafetyRiskSpaceData() |
| | | this.$notify({ |
| | | title:'成功', |
| | | message:'删除成功', |
| | | type:'success', |
| | | duration:2000, |
| | | }) |
| | | }else{ |
| | | this.$message({ |
| | | type:'warning', |
| | | message:res.data.message |
| | | }) |
| | | } |
| | | |
| | | }) |
| | | }) |
| | | }, |