tangzy
2021-11-16 44bafa26950e7b9ab871cf123c1628b74bbce991
保安员
2 files modified
60 ■■■■■ changed files
src/views/securityGuard/data.js patch | view | raw | blame | history
src/views/securityGuard/securityGuard.vue 60 ●●●●● patch | view | raw | blame | history
src/views/securityGuard/data.js
src/views/securityGuard/securityGuard.vue
@@ -188,7 +188,8 @@
              class="rowClickSelf"
              title="点击查看所属公司情况"
              @click="rowClickSelf(row.deptId)"
              >{{ row.deptName }}</el-tag
            >{{ row.deptName }}
            </el-tag
            >
          </template>
          <template slot-scope="{ row }" slot="tenantName">
@@ -1141,6 +1142,7 @@
      if (this.form.fingerprint != undefined) {
        that.isopen = true;
        let isoks = false;
        function sets(state, fingerprint, myPicture) {
          isoks = state;
          var winzhiwen = document.getElementById("zhiwen").contentWindow;
@@ -1152,6 +1154,7 @@
            isoks: isoks,
          });
        }
        setTimeout(() => {
          // if()
          if (!this.form.id) {
@@ -1218,14 +1221,34 @@
      userInfo: (state) => state.user.userInfo,
    }),
  },
  beforeCreate() {},
  beforeCreate() {
  },
  created() {
    console.log(this.userInfo.role_name, 123541);
    console.log(this.userInfo, 9999);
    if (this.userInfo.role_name == "办证管理员") {
      console.log(this.userInfo.role_name, 5555225);
      this.search["userType"] = 7;
      this.search["hold"] = "1";
    }
    if (this.userInfo.account == "南昌市保安服务总公司" || this.userInfo.account == "押运分公司") {
      this.option.column.push({
        label: "持枪证编号",
        prop: "guncode",
        width: 90,
        addDisplay: false,
        editDisplay: false
      })
      this.option.group[1].column.push({
        label: "持枪证编号",
        prop: "guncode",
      })
      this.excelOption1.column[0].action = "/api/blade-user/import-securityYy?deptId=" + this.userInfo.dept_id
    }
  },
  mounted() {
    // this.option.column[0].hide = true
@@ -1427,6 +1450,10 @@
      done();
    },
    handleTemplate1() {
      if (this.userInfo.account == "南昌市保安服务总公司" || this.userInfo.account == "押运分公司") {
        window.open(`/api/blade-user/export-template-securityYy`);
        return
      }
      window.open(`/api/blade-user/export-template-security`);
    },
    handleImport2() {
@@ -1749,7 +1776,8 @@
        "离职原因",
        {
          confirmButtonText: "确定",
          callback: (action) => {},
          callback: (action) => {
          },
        }
      );
    },
@@ -1771,7 +1799,8 @@
          });
          this.refreshChange();
        })
        .catch(() => {});
        .catch(() => {
        });
    },
    rowDel(row) {
      this.$confirm("确定注销当前用户?", {
@@ -2144,11 +2173,13 @@
.box .el-scrollbar__wrap {
  overflow: scroll;
}
.rowClickSelf {
  &:hover {
    cursor: pointer;
  }
}
//保安证  本子
.certificate_box {
  width: 100%;
@@ -2160,6 +2191,7 @@
  flex-direction: column;
  font: normal 18px "SimSuncss" !important;
}
.security_main {
  width: 630px;
  height: 512px;
@@ -2171,6 +2203,7 @@
  // background-repeat: no-repeat;
  position: relative;
}
// 标题
$upTop: 45px;
$downTop: 265px; //整体高度
@@ -2182,6 +2215,7 @@
  line-height: 45px;
  letter-spacing: 3px;
}
//发证公安机关&nbsp;(印章)
.security_m_l_center {
  position: absolute;
@@ -2189,6 +2223,7 @@
  left: 30px;
  line-height: 40px;
}
//证件编号 &nbsp;
.security_m_l_down {
  position: absolute;
@@ -2210,6 +2245,7 @@
  text-align: justify;
  text-align-last: justify;
}
//出生年月
.security_m_r_b {
  position: absolute;
@@ -2219,6 +2255,7 @@
  text-align: justify;
  text-align-last: justify;
}
//地址
.security_m_r_c {
  position: absolute;
@@ -2228,6 +2265,7 @@
  text-align: justify;
  text-align-last: justify;
}
//公民身份证
.security_m_r_d {
  position: absolute;
@@ -2237,6 +2275,7 @@
  text-align: justify;
  text-align-last: justify;
}
//照片
// width: calc(358px / 22px);
// height: calc(441px / 22px);
@@ -2246,6 +2285,7 @@
  position: absolute;
  top: $upTop;
  left: 421px;
  img {
    width: 100%;
    height: 100%;
@@ -2262,6 +2302,7 @@
  line-height: 45px;
  letter-spacing: 3px;
}
//发证时间
$timeTop: 312px; //整体高度
//年
@@ -2271,6 +2312,7 @@
  left: 109px;
  line-height: 40px;
}
//月
.security_m_l_titlepaperTimeyue {
  position: absolute;
@@ -2278,6 +2320,7 @@
  left: 168px;
  line-height: 40px;
}
//日
.security_m_l_titlepaperTimeri {
  position: absolute;
@@ -2285,6 +2328,7 @@
  left: 159px;
  line-height: 40px;
}
//证件编号
.security_m_l_downsecuritynumber {
  position: absolute;
@@ -2301,6 +2345,7 @@
  left: $centerLeft;
  // width: $rightWidth;
}
// 生日
.security_m_r_o_rightbirthday {
  position: absolute;
@@ -2308,6 +2353,7 @@
  left: $centerLeft;
  // width: $rightWidth;
}
// 地址
.security_m_r_o_rightaddress {
  position: absolute;
@@ -2315,6 +2361,7 @@
  left: $centerLeft;
  width: 185px;
}
// 身份证
.security_m_r_o_rightcardid {
  position: absolute;
@@ -2322,6 +2369,7 @@
  left: $centerLeft;
  // width: $rightWidth;
}
//背景图
.security_main_backImge {
  position: absolute;
@@ -2339,6 +2387,7 @@
  line-height: 40px;
  letter-spacing: 2px;
}
.zhiwenMain {
  width: 100%;
  height: 305px;
@@ -2347,6 +2396,7 @@
  // justify-content: space-around;
  // border: 1px solid red;
}
// .zhiwenImgs {
//   width: 178px;
//   height: 178px;