zhongrj
2024-02-19 0b84d6b74d5472a73b6da40fa81b7f67a4ada457
场所检查导出修改
1 files modified
25 ■■■■ changed files
src/views/publicSecurity/ninePlaceManage/patrolRecord.vue 25 ●●●● patch | view | raw | blame | history
src/views/publicSecurity/ninePlaceManage/patrolRecord.vue
@@ -124,8 +124,21 @@
} from "@/api/publicSecurity/ninePlaceManage"
import website from '@/config/website'
import NProgress from 'nprogress'
import 'nprogress/nprogress.css'
import Qs from "qs"
import {
    exportBlob
} from "@/api/common"
import {
    getToken
} from '@/util/auth'
import {
    downloadXls
} from "@/util/util"
import {
    dateNow
} from "@/util/date"
import {
    getDistrictTree
} from "@/api/district/index"
@@ -167,7 +180,7 @@
                editBtn: false,
                viewBtn: false,
                // selection: true,
                excelBtn: true,
                excelBtn: false,
                dialogClickModal: false,
                column: [{
                    label: "所属街道",
@@ -334,7 +347,7 @@
    methods: {
        handleExport () {
            this.$confirm("是否导出档案管理数据?", "提示", {
            this.$confirm("是否导出场所检查数据?", "提示", {
                confirmButtonText: "确定",
                cancelButtonText: "取消",
                type: "warning"
@@ -346,10 +359,10 @@
                // data.isNine = 1
                data = Qs.stringify(data)
                exportBlob(
                    `/api/blade-place/place/exportNineType?${this.website.tokenHeader}=${getToken()}&` + data
                    `/api/blade-placeCheck/placeCheck/export-placeCheck?${this.website.tokenHeader}=${getToken()}&` + data
                ).then(res => {
                    console.log('exportBlob', res)
                    downloadXls(res.data, `档案管理${dateNow()}.xlsx`)
                    downloadXls(res.data, `场所检查${dateNow()}.xlsx`)
                    NProgress.done()
                })
            })