zhengpz
2021-08-26 c6b75277a31069e1dd0eb6ca41a5e9513a8e76dd
src/views/statisticalQueryManagement/securityGuardDetail.vue
@@ -21,7 +21,7 @@
</template>
<script>
import { mapGetters } from "vuex";
import { getListSecurity } from "@/api/system/user";
import { pageSecurity } from "../../api/statisticalQueryManagement/statisticalQueryManagement";
export default {
  name: "保安员明细",
  data() {
@@ -123,8 +123,8 @@
            label: "保安公司",
            prop: "deptName",
            // width: 120,
            search: true,
            searchSpan: 4,
            // search: true,
            // searchSpan: 4,
            overHidden: true,
            slot: true,
            display: false
@@ -282,15 +282,15 @@
      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;
@@ -305,9 +305,9 @@
        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);
    }
  },