保安监管系统-验收版本
+
liuyg
2021-11-26 ae692a03baef7c8785fbfcb656313c392cb0cb1a
+
1 files modified
31 ■■■■ changed files
src/views/qualificationExamination/qualificationExamination.vue 31 ●●●● patch | view | raw | blame | history
src/views/qualificationExamination/qualificationExamination.vue
@@ -2,7 +2,7 @@
 * @Author: Morpheus
 * @Date: 2021-07-07 17:30:05
 * @Last Modified by: liu
 * @Last Modified time: 2021-11-26 09:21:11
 * @Last Modified time: 2021-11-26 09:31:04
 * menu-name 监管信息
 */
<template>
@@ -178,6 +178,17 @@
            prop: "examinationType",
            // overHidden: true,
            sortable: true,
            type: "select",
            dicData: [
              {
                label: "正常",
                value: "0",
              },
              {
                label: "异常",
                value: "1",
              },
            ],
            // type: "date",
            // format: "yyyy-MM-dd",
            // valueFormat: "yyyy-MM-dd",
@@ -191,7 +202,6 @@
            // // display: false,
            // width: 180,
          },
          {
            label: "审查明细",
            prop: "examinationMx",
@@ -387,16 +397,19 @@
        this.page.total = data.total;
        var d = data.records;
        for (var k in d) {
          if (d[k]["examinationMx"] == "") {
            d[k]["examinationMx"] = "正常";
            d[k]["examinationType"] = "正常";
          } else {
            console.log(d[k]);
            d[k]["examinationType"] = "异常";
          }
          // if (d[k]["examinationMx"] == "") {
          //   d[k]["examinationMx"] = "正常";
          //   d[k]["examinationType"] = "正常";
          // } else {
          //   console.log(d[k]);
          //   d[k]["examinationType"] = "异常";
          // }
          // if (d[k]["examinationType"] == "") {
          //   d[k]["examinationType"] = "正常";
          // }
          if (!d[k].examinationType) {
            d[k].examinationType = "0";
          }
          var sfz = d[k].cardid.substring(6, 10);
          d[k]["age"] = this.getyears() - sfz;
        }