shuishen
2021-11-04 6321eaaa455f228c126cdc94dde32d460f259017
部分配置更改
4 files modified
257 ■■■■ changed files
src/views/securityGuard/baoanz.vue 238 ●●●● patch | view | raw | blame | history
src/views/securityGuard/securityCertificate.vue 7 ●●●● patch | view | raw | blame | history
src/views/securityGuard/securityGuard.vue 8 ●●●● patch | view | raw | blame | history
src/views/securityGuard/securityGuardDetail.vue 4 ●●●● patch | view | raw | blame | history
src/views/securityGuard/baoanz.vue
@@ -1,35 +1,44 @@
<template>
  <div class="baoanzheng-1" id="baoanzheng-1">
    <div class="baz-main-1" ref="baoanzheng1">
      <img class="baz-main-img1" :src="data.avatar" alt="" />
      <div class="baz-main-img1-2">
        <img class="baz-main-img1-2-i" :src="erweima" alt="" />
      </div>
      <div class="b-m-ups-1">
        {{ data.realName }}
      </div>
      <div class="b-m-ups-1">
        {{ data.$sex }}
      </div>
      <div class="b-m-ups-1 securitynumber-1">
        {{ data.securitynumber }}
      </div>
      <div class="b-m-ups-1 b-m-ups-2">
        <!-- {{ data.securitynumber }} -->南昌市公安局
      </div>
      <div class="b-m-ups-1 b-m-ups-2">
        {{ data.paperTime || "---" }}
      </div>
    <div class="baoanzheng-1"
         id="baoanzheng-1">
        <div class="baz-main-1"
             ref="baoanzheng1">
            <img class="baz-main-img1"
                 :src="data.avatar"
                 alt="" />
            <div class="baz-main-img1-2"
                 v-if='permission.securityGuard_workLicense'>
                <img class="baz-main-img1-2-i"
                     :src="erweima"
                     alt="" />
            </div>
            <div class="b-m-ups-1">
                {{ data.realName }}
            </div>
            <div class="b-m-ups-1">
                {{ data.$sex }}
            </div>
            <div class="b-m-ups-1 securitynumber-1">
                {{ data.securitynumber }}
            </div>
            <div class="b-m-ups-1 b-m-ups-2">
                <!-- {{ data.securitynumber }} -->南昌市公安局
            </div>
            <div class="b-m-ups-1 b-m-ups-2">
                {{ data.paperTime || "---" }}
            </div>
        </div>
        <span slot="footer"
              class="dialog-footer no-print PrintBut">
            <!-- v-show="closePrint != 1" -->
            <el-button v-show='false'
                       type="primary"
                       @click="Print">打 印</el-button>
            <el-button type="primary"
                       @click="closeME"
                       v-show="close == 1">返 回</el-button>
        </span>
    </div>
    <span slot="footer" class="dialog-footer no-print PrintBut">
      <el-button type="primary" @click="Print" v-show="closePrint != 1"
        >打 印</el-button
      >
      <el-button type="primary" @click="closeME" v-show="close == 1"
        >返 回</el-button
      >
    </span>
  </div>
</template>
<script>
@@ -42,97 +51,104 @@
//         }
//     })
// }
import { mapGetters } from "vuex";
import { getER } from "@/api/performance/performance";
export default {
  props: ["data", "close", "closePrint"],
  data() {
    return {
      erweima: "",
    };
  },
  mounted() {
    getER(this.data.securitynumber).then((res) => {
      this.erweima = res.data;
      // console.log(res.data);
    });
  },
  methods: {
    Print() {
      var printDom = document.getElementById("baoanzheng-1");
      printDom.style.position = "fixed";
      printDom.style.left = "-10%";
      printDom.style.width = "120%";
      printDom.style.height = "100%";
      this.$Print(this.$refs.baoanzheng1);
      printDom.style.position = "relative";
      printDom.style.left = "0";
      printDom.style.width = "100%";
      printDom.style.height = "calc(100% - 100px)";
    props: ["data", "close", "closePrint"],
    data () {
        return {
            erweima: "",
        };
    },
    closeME() {
      this.$emit("close");
    computed: {
        ...mapGetters(["userInfo", "permission"]),
    },
  },
    created () {
    },
    mounted () {
        getER(this.data.securitynumber).then((res) => {
            this.erweima = res.data;
            // console.log(res.data);
        });
    },
    methods: {
        Print () {
            var printDom = document.getElementById("baoanzheng-1");
            printDom.style.position = "fixed";
            printDom.style.left = "-10%";
            printDom.style.width = "120%";
            printDom.style.height = "100%";
            this.$Print(this.$refs.baoanzheng1);
            printDom.style.position = "relative";
            printDom.style.left = "0";
            printDom.style.width = "100%";
            printDom.style.height = "calc(100% - 100px)";
        },
        closeME () {
            this.$emit("close");
        },
    },
};
</script>
<style lang="scss" scoped>
//保安证
.baoanzheng-1 {
  width: 100%;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  .baz-main-1 {
    background-image: url("/img/register/bazbj2.png");
    background-size: 100% 100%;
    width: calc(1274px * 0.5) !important;
    height: calc(828px * 0.5) !important;
    position: relative;
    margin-bottom: 10px;
    .baz-main-img1 {
      width: 170px;
      position: absolute;
      left: 51px;
      top: 57px;
      height: 237px;
    }
    .baz-main-img1-2 {
      width: 91px;
      position: absolute;
      left: 474px;
      // top: 120px;
      top: 78px;
      height: 93px;
      overflow: hidden;
      .baz-main-img1-2-i {
        width: 115px;
        height: 115px;
    width: 100%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    .baz-main-1 {
        background-image: url('/img/register/bazbj2.png');
        background-size: 100% 100%;
        width: calc(1274px * 0.5) !important;
        height: calc(828px * 0.5) !important;
        position: relative;
        top: -10px;
        left: -11px;
      }
        margin-bottom: 10px;
        .baz-main-img1 {
            width: 170px;
            position: absolute;
            left: 51px;
            top: 57px;
            height: 237px;
        }
        .baz-main-img1-2 {
            width: 91px;
            position: absolute;
            left: 474px;
            // top: 120px;
            top: 78px;
            height: 93px;
            overflow: hidden;
            .baz-main-img1-2-i {
                width: 115px;
                height: 115px;
                position: relative;
                top: -10px;
                left: -11px;
            }
        }
        .b-m-ups-1 {
            width: 50%;
            height: 30px;
            font-size: 22px;
            font-weight: 400;
            position: relative;
            top: 91px;
            left: 320px;
            margin-bottom: 21px;
        }
        // .securitynumber-1 {
        //   font-size: 22px;
        //   margin-bottom: 18px;
        // }
        .b-m-ups-2 {
            left: 358px;
        }
    }
    .b-m-ups-1 {
      width: 50%;
      height: 30px;
      font-size: 22px;
      font-weight: 400;
      position: relative;
      top: 91px;
      left: 320px;
      margin-bottom: 21px;
    }
    // .securitynumber-1 {
    //   font-size: 22px;
    //   margin-bottom: 18px;
    // }
    .b-m-ups-2 {
      left: 358px;
    }
  }
}
</style>
</style>
src/views/securityGuard/securityCertificate.vue
@@ -50,7 +50,8 @@
            <div class="security_m_r_o_rightcardid">{{ data.cardid }}</div>
        </div>
        <span slot="footer"
              class="dialog-footer no-print PrintBut">
              class="dialog-footer no-print PrintBut"
              v-if='permission.securityGuard_securityCertificate'>
            <el-button type="primary"
                       @click="Print">打 印</el-button>
        </span>
@@ -58,6 +59,7 @@
</template>
<script>
import { mapGetters } from "vuex";
import dictVertical from "../util/demo/dict-vertical.vue";
export default {
    data () {
@@ -73,6 +75,9 @@
        this.year = time[0]
        this.month = time[1]
    },
    computed: {
        ...mapGetters(["userInfo", "permission"]),
    },
    methods: {
        Print () {
            if (this.data.registered == '' || this.data.registered == null) {
src/views/securityGuard/securityGuard.vue
@@ -66,7 +66,7 @@
              @click="handleSecurityApply"
              >制证申请
            </el-button>
            <el-button
              type="danger"
              style="display: none"
@@ -294,7 +294,7 @@
    </el-col>
  </el-row>
</template>
<script>
import {
  getUser,
@@ -1639,7 +1639,7 @@
  },
};
</script>
<style lang="scss" scoped>
.box {
  height: 800px;
@@ -1657,4 +1657,4 @@
    cursor: pointer;
  }
}
</style>
</style>
src/views/securityGuard/securityGuardDetail.vue
@@ -84,7 +84,7 @@
      </div>
    </span>
  </div>
</template>
</template>
<script>
import {
@@ -579,4 +579,4 @@
.PrintBut {
  margin-top: 15px;
}
</style>
</style>