| | |
| | | <el-table-column label="上报说明" prop="info" align="center"> |
| | | </el-table-column> |
| | | <el-table-column label="上报照片" prop="img" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" @click="downloadFile(scope.row)">下载</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="状态" prop="status" align="center"> |
| | | <template slot-scope="scope"> |
| | |
| | | /> |
| | | <br> |
| | | </div> |
| | | <detail ref="detail"></detail> |
| | | <detail ref="detail" @getList="getInspectionRecordData"></detail> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | taskId: value.id |
| | | }) |
| | | if(res.data.code === '200'){ |
| | | this.getInspectionRecordData() |
| | | this.$message({ |
| | | type:'success', |
| | | message:'提交成功', |
| | |
| | | }) |
| | | } |
| | | }, |
| | | downloadFile(value){ |
| | | debugger |
| | | if(value.problem.imageInfoList === null){ |
| | | this.$message({ |
| | | type:'warning', |
| | | message:'无文件可下载' |
| | | }) |
| | | }else{ |
| | | for(let i in value.problem.imageInfoList){ |
| | | window.open(process.env.IMG_API + value.problem.imageInfoList[i].imgPath, '_blank') |
| | | } |
| | | } |
| | | }, |
| | | refreshHandle(){ |
| | | this.getInspectionRecordData() |
| | | }, |