Administrator
2022-04-11 79d9fc857559982b00b68b2d709807bdc4cd286f
src/views/securityAnalysis/child/situation.vue
@@ -1,11 +1,18 @@
<template>
  <div class="certificateTJ">
  <div
    :class="[
      'certificateTJ',
      $store.state.control.screenSize == 1366 ? 'smallSize' : 'normalSize',
      $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : ''
    ]"
  >
    <avue-crud
      class="tablesss"
      :option="option1"
      :data="data1"
      :page.sync="page1"
      :table-loading="loading1"
      @on-load="getPractitionersPageInfo(page1)"
      @on-load="getPractitionersPageInfo"
      @search-change="searchChange"
      @search-reset="searchReset"
      @refresh-change="refreshChange"
@@ -19,6 +26,20 @@
export default {
  props: ["card"],
  data() {
    var dicUrl =
        "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
      search = true;
    if (this.card.jurisdiction != "") {
      dicUrl =
        "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697&jurisdiction=" +
        this.card.jurisdiction;
    } else if (this.card.jurisdiction == 1372091709474910209) {
      // a = "";
    }
    // console.log(this.card);
    if (this.card.deptId != "") {
      search = false;
    }
    return {
      securityid1: "",
      ExperienceVisible: false,
@@ -27,6 +48,7 @@
        pageSize: 10,
        currentPage: 1,
        total: 0,
        ...this.$store.state.control.changePageSize
      },
      query1: {},
      data1: [],
@@ -37,13 +59,14 @@
        // refreshBtn: false,
        // card: true,
        menu: false,
        height: 450,
        height: "auto",
        widtd: "auto",
        // calcHeight: 54,
        border: true, //liu
        stripe: true,
        // tip: false,
        index: true,
        ...this.$store.state.control.clearOtherBut,
        // dialogClickModal: false,
        // headerAlign: "center",
        align: "center",
@@ -56,26 +79,24 @@
            width: 80,
            overHidden: true,
            searchSpan: 3,
            search: true,
            search: true
          },
          {
            label: "所属保安公司",
            searchLabelWidth: "110",
            label: "企业名称",
            // prop: "deptName",
            prop: "deptId",
            type: "tree",
            dicUrl:
              "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
            dicUrl: dicUrl,
            props: {
              label: "title",
              value: "id",
              value: "id"
            },
            // hide: true,
            // slot: true,
            searchSpan: 4,
            searchSpan: 5,
            display: false,
            search: true,
            minWidth: 220,
            search: search,
            minWidth: 220
          },
          {
            label: "性别",
@@ -85,27 +106,27 @@
            dicData: [
              {
                label: "男",
                value: 1,
                value: 1
              },
              {
                label: "女",
                value: 2,
                value: 2
              },
              {
                label: "未知",
                value: 3,
              },
                value: 3
              }
            ],
            display: false,
            display: false
          },
          {
            label: "身份证号码",
            prop: "cardid",
            search: true,
            searchLabelWidth: 90,
            searchSpan: 4,
            searchSpan: 5,
            minWidth: 140,
            display: false,
            display: false
          },
          {
            label: "学历",
@@ -115,7 +136,7 @@
            dicUrl: "/api/blade-system/dict-biz/dictionary?code=educationType",
            props: {
              label: "dictValue",
              value: "dictKey",
              value: "dictKey"
            },
            type: "select",
            // hide: true,
@@ -123,15 +144,15 @@
              {
                required: true,
                message: "请选择学历",
                trigger: "blur",
              },
            ],
                trigger: "blur"
              }
            ]
          },
          {
            label: "联系电话",
            prop: "phone",
            minWidth: 100,
            display: false,
            display: false
          },
          {
            label: "审查状态",
@@ -139,47 +160,47 @@
            search: true,
            disabled: false,
            type: "select",
            searchSpan: 3,
            searchSpan: 4,
            // searchValue: "1",
            dicData: [
              {
                label: "正常",
                value: "0",
                value: "0"
              },
              {
                label: "异常",
                value: "1",
              },
            ],
                value: "1"
              }
            ]
          },
          {
            label: "审查明细",
            prop: "examinationMx",
            disabled: true,
          },
        ],
      },
            disabled: true
          }
        ]
      }
    };
  },
  methods: {
    getPractitionersPageInfo(page, params = {}) {
      this.loading1 = true;
      if (this.card.jurisdiction == 1372091709474910209) {
        this.card.jurisdiction = "";
      }
      // if (params.hold == undefined) {
      //   params.hold = 1;
      // }
      params = {
        ...params,
        ...this.query1,
        status: 1,
        ...this.card,
        ...params,
        status: 1,
        ...this.query1
      };
      getList(page.currentPage, page.pageSize, params).then((res) => {
      getList(page.currentPage, page.pageSize, params).then(res => {
        // console.log(res.data.data.records);
        const data = res.data.data;
        this.data1 = data.records;
        this.page1.total = data.total;
        this.$store.commit("setWindowSizeHeightAdd");
        this.loading1 = false;
      });
    },
@@ -197,10 +218,9 @@
      this.page1.currentPage = 1;
      this.refreshChange();
      // console.log(212);
    },
  },
    }
  }
};
</script>
<style scoped>
</style>
<style scoped></style>