保安监管系统-验收版本
zhengpz
2021-12-06 6e61bfcb89c3773d55092c7b59857baa5db1669e
添加保安员预警
2 files modified
151 ■■■■■ changed files
src/views/home/index.scss 3 ●●●●● patch | view | raw | blame | history
src/views/home/index.vue 148 ●●●●● patch | view | raw | blame | history
src/views/home/index.scss
@@ -661,6 +661,9 @@
.showDialog:hover {
  cursor: pointer;
}
.form-dialog {
  z-index: 10000000 !important;
}
.bajgxt-home {
  /deep/.dialog {
    z-index: 10000000 !important;
src/views/home/index.vue
@@ -743,6 +743,50 @@
      >
      </el-pagination>
    </el-dialog>
    <!--保安员预警弹框 -->
    <el-dialog
      class="form-dialog"
      title="保安员预警"
      v-loading="dialogloading"
      element-loading-text="数据加载中"
      :visible.sync="guardWarningShowing"
    >
      <el-form label-width="120px" :model="formData">
        <el-row>
          <el-col :span="12">
            <el-form-item label="保安姓名">
              <el-input v-model="formData.realName"></el-input>
            </el-form-item>
            <el-form-item label="保安公司">
              <el-input v-model="formData.deptName"></el-input>
            </el-form-item>
            <el-form-item label="性别">
              <el-input v-model="formData.sex"></el-input>
            </el-form-item>
            <el-form-item label="年龄">
              <el-input v-model="formData.age"></el-input>
            </el-form-item>
            <el-form-item label="身份证号">
              <el-input v-model="formData.cardid"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="保安员证编号">
              <el-input v-model="formData.securitynumber"></el-input>
            </el-form-item>
            <el-form-item label="联系方式">
              <el-input v-model="formData.phone"></el-input>
            </el-form-item>
            <el-form-item label="审查状态">
              <el-input v-model="formData.examinationType"></el-input>
            </el-form-item>
            <el-form-item label="审查明细">
              <el-input v-model="formData.examinationMx"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </el-dialog>
  </div>
</template>
@@ -872,7 +916,21 @@
      node2: {},
      params: null,
      peopleGps: {},
      carGps: {}
      carGps: {},
      guardWarningShowing: false,
      formData:
        {
          realName: "",
          deptName: "",
          sex: "",
          cardid: "",
          age: "",
          securitynumber: "",
          phone: "",
          examinationType: "",
          examinationMx: ""
        }
    };
  },
  computed: {
@@ -1592,13 +1650,13 @@
      //   examinationType: 1,
      //   jurisdiction: this.value1
      // };
      let types = this.poorPerformanceType.toString()
      let types = this.poorPerformanceType.toString();
      let params = {
        current: this.gridData.current,
        size: 10,
        jurisdiction: this.value1,
        examinationType: 1,
        types:types
        types: types
      };
      qualificationPages(params).then(res => {
        if (res.data.code === 200) {
@@ -1614,12 +1672,12 @@
      this.gridData.current = page;
      this.dialogloading = true;
      this.gridData.data = [];
      let types = this.poorPerformanceType.toString()
      let types = this.poorPerformanceType.toString();
      let params = {
        current: this.gridData.current,
        size: 10,
        jurisdiction: this.value1,
        type:types
        type: types
      };
      xsbxPages(params).then(res => {
        if (res.data.code === 200) {
@@ -1771,6 +1829,61 @@
      // this.$router.push({ path: "/register/index" });
      // this.$router.push({ path: "/securityGuardManagement/register" });
      this.$router.push({ path: website.fistPage.value });
    },
    getSecurityGuardTimer() {
      this.formData = {}
      let _this = this;
      setInterval(function() {
        selectExtype({
          jurisdiction: _this.value1,
          type: _this.poorPerformanceType
        }).then(res => {
          if (res.data.code === 200) {
            var num = res.data.data[0].count;
            if (num > _this.rightData.qualification) {
              let types = _this.poorPerformanceType.toString();
              let params = {
                current: 1,
                size: 100000,
                jurisdiction: _this.value1,
                examinationType: 1,
                types: types
              };
              qualificationPages(params).then(res => {
                if (res.data.code === 200) {
                  var data = res.data.data.records[0];
                  var obj = {
                    realName: data.realName,
                    deptName: data.deptName,
                    sex: data.sex,
                    cardid: data.cardid,
                    age: data.age,
                    securitynumber: data.securitynumber,
                    phone: data.phone,
                    examinationType: data.examinationType,
                    examinationMx: data.examinationMx
                  };
                  if (data.sex === 1) {
                    obj.sex = "男";
                  } else if (data.sex === 2) {
                    obj.sex = "女";
                  }
                  if (data.examinationType === "1") {
                    obj.examinationType = "异常";
                  } else if (data.examinationType === "0") {
                    obj.examinationType = "正常";
                  }
                  _this.formData = obj;
                  _this.guardWarningShowing = true;
                }
              });
              _this.rightData.qualification = num;
            }
          } else {
            _this.$message.error(res.msg);
          }
        });
      }, 5000);
    }
  },
  mounted() {
@@ -1782,6 +1895,7 @@
    // this.getTableData(0);
    // this.getCompanyMap();
    this.getOfficeData();
    this.getSecurityGuardTimer();
  }
};
</script>
@@ -1815,4 +1929,28 @@
/deep/ .el-table .cell {
  text-align: center;
}
/deep/ .form-dialog {
  height: 600px;
  .el-dialog {
    width: 800px !important;
    background-color: #fff !important;
    color: #000 !important;
    box-shadow: 0px 0px 12px red;
    .el-input__inner {
      border: 1px solid #f0eaea !important;
      color: #000 !important;
    }
    .el-dialog__header {
      background-color: red !important;
    }
    .el-dialog__body {
      background-color: #fff !important;
      color: #000 !important;
    }
    .el-form-item__label {
      color: #000 !important;
    }
  }
}
</style>