src/views/qualificationExamination/qualificationExamination.vue
@@ -79,6 +79,7 @@
          {
            label: "保安公司",
            prop: "deptName",
            minWidth: 110,
            overHidden: true,
            // labelWidth: 120,
            // searchLabelWidth: 120,
@@ -138,6 +139,7 @@
          {
            label: "性别",
            prop: "sexName",
            width: 56,
            // type: "select",
            // labelWidth: 120,
            // // display: false,
@@ -153,6 +155,7 @@
          {
            label: "身份证号",
            prop: "cardid",
            width: 139,
            // type: "select",
            // labelWidth: 120,
            // // display: false,
@@ -161,8 +164,9 @@
            // //   label: "label",
            // //   value: "value",
            // // },
            // searchSpan: 5,
            // search: true,
            searchSpan: 4,
            search: true,
            // width: 120,
          },
          // {
@@ -171,6 +175,30 @@
          //   // labelWidth: 120,
          //   // display: false,
          // },
          {
            label: "年龄",
            prop: "age",
            // display: false,
            // labelWidth: 120,
            // width: 200,
          },
          {
            label: "出生日期",
            prop: "birthday",
            type: "date",
            format: "yyyy-MM-dd",
            valueFormat: "yyyy-MM-dd",
            // display: false,
            // labelWidth: 120,
            // width: 200,
          },
          {
            label: "保安员证编号",
            prop: "securitynumber",
            searchLabelWidth: 110,
            searchSpan: 4,
            search: true,
          },
          {
            label: "联系方式",
            prop: "phone",
@@ -224,12 +252,12 @@
            // display: false,
            hide: true,
          },
          {
            label: "是否在职",
            prop: "onjob",
            // labelWidth: 120,
            // display: false,
          },
          // {
          //   label: "是否在职",
          //   prop: "status",
          //   // labelWidth: 120,
          //   // display: false,
          // },
        ],
        // group: [
        //   {
@@ -373,9 +401,14 @@
    refreshChange() {
      this.onLoad(this.page, this.query);
    },
    getyears() {
      var d = new Date();
      return d.getFullYear();
    },
    onLoad(page, params = {}) {
      // this.loading = false;
      this.loading = true;
      params["status"] = 1;
      getListSecurity(
        page.currentPage,
        page.pageSize,
@@ -383,7 +416,22 @@
      ).then((res) => {
        const data = res.data.data;
        this.page.total = data.total;
        this.data = data.records;
        var d = data.records;
        for (var k in d) {
          if (d[k]["examinationMx"] == "") {
            d[k]["examinationMx"] = "正常";
            d[k]["examinationType"] = "正常";
          } else {
            d[k]["examinationType"] = "异常";
          }
          // if (d[k]["examinationType"] == "") {
          //   d[k]["examinationType"] = "正常";
          // }
          var sfz = d[k].cardid.substring(6, 10);
          d[k]["age"] = this.getyears() - sfz;
        }
        this.data = d;
        // this.data = data.records;
        console.log(this.data);
        this.loading = false;
        // this.selectionClear();