liuyg
2021-09-09 6294abb03d15a1e4d5a94f6486e40922912c80d8
荣誉  证件  吊销
2 files modified
62 ■■■■■ changed files
src/api/register/honor.js 6 ●●●● patch | view | raw | blame | history
src/views/securityGuardManagement/register.vue 56 ●●●● patch | view | raw | blame | history
src/api/register/honor.js
@@ -2,7 +2,7 @@
export const getListhonor = (current, size, params, cardid) => {
    return request({
        url: '/api//honor/list',
        url: '/api/honor/list',
        method: 'get',
        params: {
            ...params,
@@ -15,7 +15,7 @@
export const addhonor = (row) => {
    return request({
        url: '/api//honor/save',
        url: '/api/honor/save',
        method: 'post',
        data: row
    })
@@ -74,7 +74,7 @@
export const getER = (securityNumber) => {
    return request({
        url: '/api//qrCode/getQrCodeBase64',
        url: '/api/qrCode/getQrCodeBase64',
        method: 'get',
        params: {
            securityNumber
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-09-07 17:39:25
 * @Last Modified time: 2021-09-09 09:53:49
 * menu-name 保安员注册查询
 */
<template>
@@ -55,11 +55,19 @@
                              slot="deptName">
                        <el-tag>{{row.deptName}}</el-tag>
                    </template> -->
            <template slot-scope="{row}" slot="age">
                {{row.age==-1?'':row.age}}
            <template slot-scope="{ row }" slot="age">
              {{ row.age == -1 ? "" : row.age }}
            </template>
            <template slot-scope="{row}" slot="sex">
                {{row.sex==-1?'':row.sex==1?'男':row.sex==2?'女':''}}
            <template slot-scope="{ row }" slot="sex">
              {{
                row.sex == -1
                  ? ""
                  : row.sex == 1
                  ? "男"
                  : row.sex == 2
                  ? "女"
                  : ""
              }}
            </template>
            <template slot-scope="{ row }" slot="deptId">
              <el-tag
@@ -88,6 +96,8 @@
                :size="size"
                :type="type"
                class="zhengJian-icon"
                :disabled="row.hold != 1"
                :title="row.hold != 1 ? '暂无证件或已吊销' : ''"
                @click.stop="handleViewCredentials(row)"
                >打印证件</el-button
              >
@@ -97,6 +107,8 @@
                :size="size"
                :type="type"
                class="zhengJian-icon"
                :disabled="row.hold != 1"
                :title="row.hold != 1 ? '暂无证件或已吊销' : ''"
                @click.stop="handleCredentials(row)"
                >证件吊销</el-button
              >
@@ -432,7 +444,7 @@
            label: "性别",
            prop: "sex",
            width: 55,
            slot:true,
            slot: true,
            type: "select",
            dicData: [
              {
@@ -488,7 +500,7 @@
            label: "年龄",
            prop: "age",
            width: 55,
            slot:true,
            slot: true,
            display: false,
          },
          {
@@ -770,9 +782,21 @@
    submitf(form, done) {
      console.log(form);
      // this.$message.success(JSON.stringify(form));
      addhonor(form).then((res) => {
        console.log(res);
      });
      addhonor(form).then(
        (res) => {
          // console.log(res);
          this.$message({
            type: "success",
            message: "操作成功!",
          });
        },
        (error) => {
          this.$message({
            type: "info",
            message: "操作失败",
          });
        }
      );
      this.objf = {};
      this.dialogVisible = false;
      done();
@@ -979,7 +1003,7 @@
      // this.$Print("#certificatess");
      this.objVisiblecertificates = obj;
      console.log(this.objVisiblecertificates);
      getER(this.obj.securitynumber).then((res) => {
      getER(this.objVisiblecertificates.securitynumber).then((res) => {
        this.erweima = res.data;
        // console.log(res.data);
      });
@@ -1009,16 +1033,16 @@
              console.log(res);
              this.$message({
                type: "success",
                message: "删除成功!",
                message: "吊销成功!",
              });
              this.refreshChange();
            });
          })
          .catch(() => {
            this.$message({
              type: "info",
              message: "已取消删除",
            });
            // this.$message({
            //   type: "info",
            //   message: "已取消删除",
            // });
          });
      }
    },