liuyg
2021-09-08 a8761b71f15552a20d22a498efb69fbae41edb00
bug修改
2 files modified
41 ■■■■ changed files
src/views/licenseApproval/securityGuard.vue 4 ●●●● patch | view | raw | blame | history
src/views/securityGuardManagement/register.vue 37 ●●●● patch | view | raw | blame | history
src/views/licenseApproval/securityGuard.vue
@@ -2,7 +2,7 @@
 * @Author: liu
 * @Date: 2021-08-26 16:57:58 
 * @Last Modified by: liu
 * @Last Modified time: 2021-09-06 09:24:44
 * @Last Modified time: 2021-09-07 17:44:35
 */
@@ -148,7 +148,7 @@
      <div
        id="licence_box"
        :class="classStyle == 'print' ? 'printstyle' : ''"
        ref="licencelicencehuizhi"
        ref="licencehuizhi"
      >
        <div
          class="licencehuizhi exam-box"
src/views/securityGuardManagement/register.vue
@@ -2,7 +2,7 @@
 * @Author: Morpheus
 * @Date: 2021-07-05 16:31:54
 * @Last Modified by: liu
 * @Last Modified time: 2021-08-31 11:26:49
 * @Last Modified time: 2021-09-07 17:39:25
 * menu-name 保安员注册查询
 */
<template>
@@ -576,11 +576,25 @@
            searchSpan: 3,
            width: 72,
            display: false,
            dicUrl: "/api/blade-system/dict-biz/dictionary?code=equipage",
            props: {
              label: "dictValue",
              value: "dictKey",
            },
            dicData: [
              {
                label: "是",
                value: "1",
              },
              {
                label: "否",
                value: "2",
              },
              {
                label: "已吊销",
                value: "3",
              },
            ],
            // dicUrl: "/api/blade-system/dict-biz/dictionary?code=equipage",
            // props: {
            //   label: "dictValue",
            //   value: "dictKey",
            // },
            type: "select",
            rules: [
              {
@@ -968,29 +982,32 @@
    },
    // 证件吊销事件
    handleCredentials(row) {
      if (row.hold == 1) {
      console.log(row);
      // return;
      if (row.hold == 2) {
        this.$message({
          type: "info",
          message: "证件未拥有!",
        });
      } else if (row.hold == 2) {
      } else if (row.hold == 3) {
        this.$message({
          type: "info",
          message: "证件已吊销!",
        });
      } else {
      } else if (row.hold == 1) {
        this.$confirm("是否吊销该人员的证件?", "提示", {
          confirmButtonText: "是",
          cancelButtonText: "否",
          type: "warning",
        })
          .then(() => {
            updateHold(2, row.cardid).then((res) => {
            updateHold(3, row.cardid).then((res) => {
              console.log(res);
              this.$message({
                type: "success",
                message: "删除成功!",
              });
              this.refreshChange();
            });
          })
          .catch(() => {