| | |
| | | </template> |
| | | <script> |
| | | import { mapGetters } from "vuex"; |
| | | import { getListSecurity } from "@/api/system/user"; |
| | | import { pageSecurity } from "../../api/statisticalQueryManagement/statisticalQueryManagement"; |
| | | export default { |
| | | name: "保安员明细", |
| | | data() { |
| | |
| | | label: "保安公司", |
| | | prop: "deptName", |
| | | // width: 120, |
| | | search: true, |
| | | searchSpan: 4, |
| | | // search: true, |
| | | // searchSpan: 4, |
| | | overHidden: true, |
| | | slot: true, |
| | | display: false |
| | |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | debugger |
| | | this.loading = true; |
| | | params["deptName"] = params["enterpriseName"]; |
| | | params["jurisdiction"] = this.jurisdiction; |
| | | getListSecurity( |
| | | page.currentPage, |
| | | page.pageSize, |
| | | Object.assign(params, this.query) |
| | | ).then(res => { |
| | | let param = {}; |
| | | param["realName"] = params["realName"] || ""; |
| | | param["status"] = params["status"] || ""; |
| | | param["deptId"] = this.deptid; |
| | | param["hold"] = params["hold"] || ""; |
| | | param["current"] = page.currentPage; |
| | | param["size"] = page.pageSize; |
| | | pageSecurity(param).then(res => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | |
| | | let mm = urlArr[i].split("="); |
| | | object[decodeURIComponent(mm[0])] = decodeURIComponent(mm[1]); |
| | | } |
| | | let enterpriseName = object["enterpriseName"] || ""; |
| | | this.query = { enterpriseName: enterpriseName }; |
| | | this.onLoad(this.page, this.query); |
| | | this.deptid = object["departmentid"] || ""; |
| | | this.query = { deptid: this.deptid }; |
| | | this.onLoad(this.page, this.query); |
| | | // this.onLoad(this.page, this.query); |
| | | } |
| | | }, |