| | |
| | | } |
| | | |
| | | // 隐患统计 |
| | | export const getYHTJList = (current, size, params) => { |
| | | export const getYHTJList = (params) => { |
| | | return request({ |
| | | url: "/api/blade-taskPlaceRectification/taskPlaceRectification/rectificationStatistics", |
| | | method: "get", |
| | | params: { |
| | | current, |
| | | size, |
| | | ...params |
| | | }, |
| | | method: "post", |
| | | params |
| | | }) |
| | | } |
| | |
| | | <el-button :size="size" type="text" @click="showStringDispose(row, 'principalPhoneflag')" |
| | | v-text="textDispose(row, 'principalPhoneflag', 'principalPhone')"></el-button> |
| | | </template> |
| | | <template slot="menuLeft"> |
| | | <el-button type="warning" size="small" plain icon="el-icon-download" @click="handleExport">导出 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </template> |
| | |
| | | import { |
| | | getDAGLList |
| | | } from "@/api/publicSecurity/ninePlaceManage" |
| | | 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" |
| | | |
| | | export default { |
| | | data () { |
| | |
| | | searchShow: true, |
| | | searchMenuSpan: 3, |
| | | menu: false, |
| | | header: false, |
| | | border: true, |
| | | index: true, |
| | | editBtn: false, |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | handleExport () { |
| | | this.$confirm("是否导出档案管理数据?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }).then(() => { |
| | | NProgress.start() |
| | | var data = { |
| | | ...this.query |
| | | } |
| | | data = Qs.stringify(data) |
| | | exportBlob( |
| | | `/api/blade-place/place/exportNineType?${this.website.tokenHeader}=${getToken()}&` + data |
| | | ).then(res => { |
| | | console.log('exportBlob', res) |
| | | downloadXls(res.data, `档案管理${dateNow()}.xlsx`) |
| | | NProgress.done() |
| | | }) |
| | | }) |
| | | }, |
| | | |
| | | showStringDispose (row, type) { |
| | | row[type] = !row[type] |
| | | }, |
| | |
| | | label |
| | | }).then( |
| | | () => { |
| | | this.onLoad(this.page) |
| | | this.onLoad() |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | |
| | | label |
| | | }).then( |
| | | () => { |
| | | this.onLoad(this.page) |
| | | this.onLoad() |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | |
| | | return removeTask(row) |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page) |
| | | this.onLoad() |
| | | |
| | | this.$message({ |
| | | type: "success", |
| | |
| | | |
| | | searchReset () { |
| | | this.query = {} |
| | | this.onLoad(this.page) |
| | | this.onLoad() |
| | | }, |
| | | |
| | | searchChange (params, done) { |
| | |
| | | endTime: params.daterange[1], |
| | | } : {} |
| | | this.page.currentPage = 1 |
| | | this.onLoad(this.page) |
| | | this.onLoad() |
| | | done() |
| | | }, |
| | | |
| | |
| | | return remove(this.ids) |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page) |
| | | this.onLoad() |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | |
| | | // this.onLoad(this.page, this.query) |
| | | }, |
| | | |
| | | onLoad (page, params = {}) { |
| | | onLoad () { |
| | | this.loading = true |
| | | if (!this.query.startTime) { |
| | | this.query = { |
| | |
| | | endTime: this.getLastMouth[0], |
| | | } |
| | | } |
| | | getYHTJList(page.currentPage, page.pageSize, this.query).then(res => { |
| | | console.log('onLoad', this.query) |
| | | getYHTJList(this.query).then(res => { |
| | | console.log('getZGQKList', res.data.data) |
| | | const data = res.data.data |
| | | data.forEach(item => { |
| | |
| | | mapGetters |
| | | } from "vuex" |
| | | import { |
| | | getZGQKList, exportZGQKList |
| | | getZGQKList |
| | | } from "@/api/publicSecurity/ninePlaceManage" |
| | | import NProgress from 'nprogress' |
| | | import 'nprogress/nprogress.css' |
| | |
| | | `/api/blade-taskPlaceRectification/taskPlaceRectification/exportRectificationStatistics?${this.website.tokenHeader}=${getToken()}&` + data |
| | | ).then(res => { |
| | | console.log('exportBlob', res) |
| | | downloadXls(res.data, `房屋数据表${dateNow()}.xlsx`) |
| | | downloadXls(res.data, `整改情况${dateNow()}.xlsx`) |
| | | NProgress.done() |
| | | }) |
| | | }) |