| | |
| | | :page.sync="page" |
| | | :permission="permissionList" |
| | | ref="crud" |
| | | :search.sync="search" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @current-change="currentChange" |
| | |
| | | @cell-click="handleRowClick" |
| | | class="rowClick" |
| | | > |
| | | <template slot="menuLeft"> |
| | | <el-button |
| | | type="warning" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-download" |
| | | @click="handleExportSecurityStatisInfo" |
| | | >导出 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | |
| | | </basic-container> |
| | | <el-dialog |
| | | class="tongji-class" |
| | |
| | | v-if="dialogShow" |
| | | > |
| | | <companyDetails :fwdeptId="fwdeptId"></companyDetails> |
| | | <!-- <avue-crud |
| | | :option="option2" |
| | | :data="data2" |
| | | :page.sync="page2" |
| | | @row-save="rowSave2" |
| | | @row-update="rowUpdate2" |
| | | @row-del="rowDel2" |
| | | :table-loading="loading2" |
| | | > |
| | | </avue-crud> --> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import FileSaver from "file-saver"; |
| | | import XLSX from "xlsx"; |
| | | import { mapGetters } from "vuex"; |
| | | import { |
| | | selectLi, |
| | |
| | | } from "../../api/statisticalQueryManagement/statisticalQueryManagement"; |
| | | import { lazyTreeJu, lazyTrees } from "../../api/index/index"; |
| | | import companyDetails from "./companyDetails"; |
| | | import Qs from "qs"; |
| | | import { getToken } from "@/util/auth"; |
| | | export default { |
| | | name: "业务情况统计", |
| | | components: { |
| | |
| | | currentPage: 1, |
| | | total: 0 |
| | | }, |
| | | search:{}, |
| | | query: {}, |
| | | value1: "", |
| | | value2: "", |
| | |
| | | tableOption: { |
| | | align: "center", |
| | | viewBtn: true, |
| | | excelBtn: true, |
| | | // excelBtn: true, |
| | | delBtn: false, |
| | | editBtn: false, |
| | | addBtn: false, |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | //保安员统计信息导出 |
| | | handleExportSecurityStatisInfo() { |
| | | this.$confirm("是否导出保安员统计信息数据?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }).then(() => { |
| | | //获取查询条件 |
| | | const { releaseTimeRange } = this.search; |
| | | if (releaseTimeRange) { |
| | | this.search["startTime"] = releaseTimeRange[0]; |
| | | this.search["endTime"] = releaseTimeRange[1]; |
| | | } |
| | | var data = { |
| | | jurisdiction: this.search.jurname, |
| | | stats: this.search.stats, |
| | | deptid: this.search.deptname, |
| | | startTime: this.search.startTime, |
| | | endTime: this.search.endTime, |
| | | }; |
| | | // console.log(data,123); |
| | | //序列号url形式,用&拼接 |
| | | data = Qs.stringify(data); |
| | | window.open( |
| | | `/api/information/export-security-statis-info?${ |
| | | this.website.tokenHeader |
| | | }=${getToken()}&` + data |
| | | ); |
| | | }); |
| | | }, |
| | | getSubOfficeData() { |
| | | lazyTrees().then(res => { |
| | | if (res.data.code === 200) { |
| | |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | params = this.search; |
| | | this.loading = true; |
| | | let param = {}; |
| | | param["jurisdiction"] = params["jurname"] || ""; |