叶松
2023-11-21 c163052d4f7e2debfc1cfb14edf85f503b2c7c00
web/src/views/SecureManage/NipCheck/NipTips.vue
@@ -114,7 +114,7 @@
<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,
@@ -241,7 +241,7 @@
                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
                    })
@@ -251,8 +251,30 @@
            }
        })
      },
    // 转圈圈
      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.Analyse.exportAuxilliaryCost(params).then(res => {
            downFiles(res, '举报信息', 'xls')
            this.loadingView.close()
        })
        .catch(() => {
            this.loadingView.close();
        })
      },
      // 修改按钮信息
      updateProp(row) {
        this.imageList = []
@@ -265,7 +287,7 @@
                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
                    })