| | |
| | | import { mapGetters } from "vuex"; |
| | | import { |
| | | selectYw, |
| | | dictionaryList |
| | | dictionaryList, |
| | | } from "../../api/statisticalQueryManagement/statisticalQueryManagement"; |
| | | import { lazyTreeJu, lazyTrees } from "../../api/index/index"; |
| | | import businessStatisticsDetail from "./businessStatisticsDetail"; |
| | |
| | | businessStatisticsDetail, |
| | | businessStatisticsPq, |
| | | businessStatisticsFwdq, |
| | | securityGuardDetail |
| | | securityGuardDetail, |
| | | }, |
| | | data() { |
| | | return { |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0 |
| | | total: 0, |
| | | }, |
| | | value1: "", |
| | | value2: "", |
| | |
| | | search: true, |
| | | searchSpan: 4, |
| | | width: 300, |
| | | display: false |
| | | display: false, |
| | | }, |
| | | { |
| | | label: "单位类型", |
| | |
| | | type: "select", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey" |
| | | value: "dictKey", |
| | | }, |
| | | dicData: [] |
| | | dicData: [], |
| | | }, |
| | | { |
| | | label: "所属辖区", |
| | |
| | | type: "tree", |
| | | props: { |
| | | label: "title", |
| | | value: "id" |
| | | value: "id", |
| | | }, |
| | | dicData: [], |
| | | search: true, |
| | |
| | | { |
| | | required: true, |
| | | message: "请选择所属辖区", |
| | | trigger: "blur" |
| | | } |
| | | ] |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "保安员人数", |
| | | prop: "znum", |
| | | display: false |
| | | display: false, |
| | | }, |
| | | { |
| | | label: "持证人数", |
| | | prop: "cznum", |
| | | display: false |
| | | display: false, |
| | | }, |
| | | { |
| | | label: "派遣人数", |
| | | prop: "pqnum", |
| | | display: false |
| | | display: false, |
| | | }, |
| | | { |
| | | label: "服务对象数量", |
| | | prop: "fwnum", |
| | | display: false |
| | | display: false, |
| | | }, |
| | | { |
| | | label: "服务到期数量", |
| | | prop: "dqnum", |
| | | display: false |
| | | } |
| | | ] |
| | | display: false, |
| | | }, |
| | | ], |
| | | }, |
| | | loading: true, |
| | | dialogTitle: "", |
| | |
| | | pqdialogShow: false, |
| | | fwdeptId: "", |
| | | searchitem: "", |
| | | paramCz: false |
| | | paramCz: false, |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | addBtn: this.vaildData(this.permission.post_add, false), |
| | | viewBtn: this.vaildData(this.permission.post_view, false), |
| | | delBtn: this.vaildData(this.permission.post_delete, false), |
| | | editBtn: this.vaildData(this.permission.post_edit, false) |
| | | editBtn: this.vaildData(this.permission.post_edit, false), |
| | | }; |
| | | } |
| | | }, |
| | | }, |
| | | methods: { |
| | | getSubOfficeData() { |
| | | lazyTrees().then(res => { |
| | | lazyTrees().then((res) => { |
| | | if (res.data.code === 200) { |
| | | this.tableOption.column.forEach(item => { |
| | | this.tableOption.column.forEach((item) => { |
| | | if (item.label == "所属辖区") { |
| | | item.dicData = res.data.data; |
| | | } |
| | |
| | | }); |
| | | }, |
| | | getDictionaryList() { |
| | | dictionaryList().then(res => { |
| | | dictionaryList().then((res) => { |
| | | if (res.data.code === 200) { |
| | | this.tableOption.column.forEach(item => { |
| | | this.tableOption.column.forEach((item) => { |
| | | if (item.label == "单位类型") { |
| | | item.dicData = res.data.data; |
| | | } |
| | |
| | | this.onLoad(this.page, params); |
| | | done(); |
| | | }, |
| | | |
| | | searchReset() { |
| | | this.query = {}; |
| | | this.onLoad(this.page); |
| | |
| | | param["stats"] = params["stats"] || ""; |
| | | param["current"] = page.currentPage; |
| | | param["size"] = page.pageSize; |
| | | selectYw(param).then(res => { |
| | | selectYw(param).then((res) => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.tableData = data.records; |
| | |
| | | } else { |
| | | this.dialogShow = false; |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.getSubOfficeData(); |
| | | this.getDictionaryList(); |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | | <style lang="scss" scoped> |