| | |
| | | import FileSaver from "file-saver"; |
| | | import XLSX from "xlsx"; |
| | | import { mapGetters } from "vuex"; |
| | | import { selectLi } from "../../api/statisticalQueryManagement/statisticalQueryManagement"; |
| | | import { |
| | | selectLi, |
| | | dictionaryList |
| | | } from "../../api/statisticalQueryManagement/statisticalQueryManagement"; |
| | | import { lazyTreeJu } from "../../api/index/index"; |
| | | export default { |
| | | name: "业务情况统计", |
| | |
| | | prop: "deptname", |
| | | search: true, |
| | | searchSpan: 4, |
| | | width: 300, |
| | | 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: "value" |
| | |
| | | if (res.data.code === 200) { |
| | | this.tableOption.column.forEach(item => { |
| | | if (item.label == "所属辖区") { |
| | | // let data = res.data.data; |
| | | item.dicData = res.data.data; |
| | | } |
| | | }); |
| | | } else { |
| | | this.$message.error(res.msg); |
| | | } |
| | | }); |
| | | }, |
| | | // searchChildren(data) { |
| | | // data.forEach(item => { |
| | | // if(item.hasChildren)( |
| | | |
| | | // ) |
| | | // else { |
| | | // this.searchChildren() |
| | | // } |
| | | // }); |
| | | // }, |
| | | 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) |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | sizeChange(pageSize) { |
| | | this.page.pageSize = pageSize; |
| | | this.onLoad(this.page, this.query) |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | refreshChange() { |
| | | this.onLoad(this.page, this.query); |
| | |
| | | let param = {}; |
| | | param["jurisdiction"] = params["jurname"] || ""; |
| | | param["deptid"] = params["deptname"] || ""; |
| | | param["stats"] = params["stats"] || ""; |
| | | param["current"] = page.currentPage; |
| | | param["size"] = page.pageSize; |
| | | selectLi(param).then(res => { |
| | |
| | | }, |
| | | mounted() { |
| | | this.getSubOfficeData(); |
| | | this.getDictionaryList(); |
| | | } |
| | | }; |
| | | </script> |