| | |
| | | import FileSaver from "file-saver"; |
| | | import XLSX from "xlsx"; |
| | | import { mapGetters } from "vuex"; |
| | | import { selectYw } from "../../api/statisticalQueryManagement/statisticalQueryManagement"; |
| | | import { lazyTreeJu } from "../../api/index/index"; |
| | | import { |
| | | selectYw, |
| | | dictionaryList |
| | | } from "../../api/statisticalQueryManagement/statisticalQueryManagement"; |
| | | import { lazyTreeJu,lazyTrees } from "../../api/index/index"; |
| | | export default { |
| | | name: "业务情况统计", |
| | | data() { |
| | |
| | | searchSpan: 4, |
| | | display: false |
| | | }, |
| | | |
| | | { |
| | | label: "单位类型", |
| | | prop: "stats", |
| | | search: true, |
| | | searchSpan: 4, |
| | | display: false, |
| | | type: "select", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey" |
| | | }, |
| | | dicData: [] |
| | | }, |
| | | { |
| | | label: "所属辖区", |
| | | prop: "jurname", |
| | | searchSpan: 4, |
| | | type: "select", |
| | | type: "tree", |
| | | props: { |
| | | label: "title", |
| | | value: "id" |
| | |
| | | }, |
| | | methods: { |
| | | getSubOfficeData() { |
| | | lazyTreeJu().then(res => { |
| | | lazyTrees().then(res => { |
| | | if (res.data.code === 200) { |
| | | this.tableOption.column.forEach(item => { |
| | | if (item.label == "所属辖区") { |
| | |
| | | }); |
| | | } else { |
| | | this.$message.error(res.msg); |
| | | } |
| | | }); |
| | | }, |
| | | getDictionaryList() { |
| | | dictionaryList().then(res => { |
| | | if (res.data.code === 200) { |
| | | this.tableOption.column.forEach(item => { |
| | | if (item.label == "单位类型") { |
| | | item.dicData = res.data.data; |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | }, |
| | | currentChange(currentPage) { |
| | | this.page.currentPage = currentPage; |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | sizeChange(pageSize) { |
| | | this.page.pageSize = pageSize; |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | refreshChange() { |
| | | this.onLoad(this.page, this.query); |
| | |
| | | onLoad(page, params = {}) { |
| | | this.loading = true; |
| | | let param = {}; |
| | | param["jurisdiction"] = params["jurname"] ? params["jurname"] : ""; |
| | | param["deptid"] = ""; |
| | | param["jurisdiction"] = params["jurname"] || ""; |
| | | param["deptid"] = params["enterpriseName"] || ""; |
| | | param["stats"] = params["stats"] || ""; |
| | | param["current"] = page.currentPage; |
| | | param["size"] = page.pageSize; |
| | | selectYw(param).then(res => { |
| | |
| | | handleRowClick(row, column, cell, event) { |
| | | if (column.label == "服务对象数量") { |
| | | this.$router.push({ |
| | | path: "/statisticalQueryManagement/businessStatisticsDetail" |
| | | path: |
| | | "/statisticalQueryManagement/businessStatisticsDetail?&departmentid=" + |
| | | row.departmentid |
| | | }); |
| | | } else if (column.label == "保安员人数") { |
| | | this.$router.push({ |
| | | path: |
| | | "/statisticalQueryManagement/securityGuardDetail?enterpriseName=" + |
| | | row.enterpriseName |
| | | "/statisticalQueryManagement/securityGuardDetail?departmentid=" + |
| | | row.departmentid |
| | | }); |
| | | } |
| | | }, |
| | |
| | | }, |
| | | mounted() { |
| | | this.getSubOfficeData(); |
| | | this.getDictionaryList(); |
| | | } |
| | | }; |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | /deep/ .businessStatisticsStyle .el-table__row:hover td:nth-child(5), |
| | | /deep/ .businessStatisticsStyle .el-table__row:hover td:nth-child(7), |
| | | /deep/ .businessStatisticsStyle .el-table__row:hover td:nth-child(6) { |
| | | cursor: pointer !important; |
| | | } |