| | |
| | | <script> |
| | | import { buttonPinia } from '../../../pinia/index'; |
| | | import UploadImage from '../../../components/uploadImage.vue' |
| | | import { throttle, changeSize } from '../../../plugins/public'; // 导入节流、动态切换组件尺寸方法 |
| | | import { throttle, changeSize,downFiles } from '../../../plugins/public'; // 导入节流、动态切换组件尺寸方法 |
| | | export default { |
| | | components:{ |
| | | UploadImage, |
| | |
| | | res.data.imgEntities.map(item=>{ |
| | | this.imageList.push({ |
| | | id: this.imageList.length + 1, |
| | | url:`https://pipe.thhy-tj.com/${item.imgPath}`, |
| | | url:`https://szpipe.thhy-tj.com/${item.imgPath}`, |
| | | name:item.imgPath, |
| | | nameImg:item.imgName |
| | | }) |
| | |
| | | } |
| | | }) |
| | | }, |
| | | // 转圈圈 |
| | | functionLoading() { |
| | | this.loadingView = this.$loading({ |
| | | lock: true, |
| | | text: '请稍后...', |
| | | spinner: 'el-icon-loading', |
| | | background: 'rgba(0, 0, 0, 0.7)' |
| | | }); |
| | | }, |
| | | //导出excel |
| | | exportFiles(){}, |
| | | exportFiles(){ |
| | | let params = {} |
| | | params.startTime = this.search.time&&this.search.time[0] |
| | | params.endTime = this.search.time&&this.search.time[1] |
| | | delete params.time |
| | | this.functionLoading(); |
| | | this.$api.Safety.exportHiddenFiles(params).then(res => { |
| | | downFiles(res, '举报信息', 'xls') |
| | | this.loadingView.close() |
| | | }) |
| | | .catch(() => { |
| | | this.loadingView.close(); |
| | | }) |
| | | }, |
| | | // 修改按钮信息 |
| | | updateProp(row) { |
| | | this.imageList = [] |
| | |
| | | res.data.imgEntities.map(item=>{ |
| | | this.imageList.push({ |
| | | id: this.imageList.length + 1, |
| | | url:`https://pipe.thhy-tj.com/${item.imgPath}`, |
| | | url:`https://szpipe.thhy-tj.com/${item.imgPath}`, |
| | | name:item.imgPath, |
| | | nameImg:item.imgName |
| | | }) |