| | |
| | | } 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" |
| | |
| | | editBtn: false, |
| | | viewBtn: false, |
| | | // selection: true, |
| | | excelBtn: true, |
| | | excelBtn: false, |
| | | dialogClickModal: false, |
| | | column: [{ |
| | | label: "所属街道", |
| | |
| | | |
| | | methods: { |
| | | handleExport () { |
| | | this.$confirm("是否导出档案管理数据?", "提示", { |
| | | this.$confirm("是否导出场所检查数据?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | |
| | | // 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() |
| | | }) |
| | | }) |