liuyg
2021-08-25 bd0f6271c7a2b385735827f98ce07e7cca748278
保安证添加
5 files modified
1 files added
47 ■■■■■ changed files
package.json 1 ●●●● patch | view | raw | blame | history
src/api/performance/performance.js 10 ●●●●● patch | view | raw | blame | history
src/styles/element-ui.scss 11 ●●●●● patch | view | raw | blame | history
src/views/securityGuard/securityGuard.vue 2 ●●● patch | view | raw | blame | history
src/views/securityGuard/securityGuardDetail.vue 23 ●●●●● patch | view | raw | blame | history
zhba_enterprises.zip patch | view | raw | blame | history
package.json
@@ -29,6 +29,7 @@
    "vue": "^2.6.10",
    "vue-axios": "^2.1.2",
    "vue-i18n": "^8.7.0",
    "vue-qr": "^2.5.0",
    "vue-router": "^3.0.1",
    "vue2-countdown": "^1.0.8",
    "vuex": "^3.1.1"
src/api/performance/performance.js
@@ -1,5 +1,15 @@
import request from '@/router/axios';
export const getER = (securityNumber) => {
    return request({
        url: '/api//qrCode/getQrCode',
        method: 'get',
        params: {
            securityNumber
        }
    })
}
export const page = (current, size, params) => {
    return request({
        url: '/api/performance/page',
src/styles/element-ui.scss
@@ -279,3 +279,14 @@
    height: 680px !important;
    line-height: 680px !important;
}
//保安员管理  查看按钮放前
// .securityGuard .el-button.el-button--text.el-button--small:first-child {
//     position: relative;
//     right: 70px;
// }
.securityGuard .el-button.el-button--text.el-button--small:nth-child(1) {
    position: relative;
    right: 70px;
}
src/views/securityGuard/securityGuard.vue
@@ -24,7 +24,6 @@
          v-model="form"
          :permission="permissionList"
          @row-del="rowDel"
          @row-update="rowUpdate"
          :row-style="rowStyle"
          @row-save="rowSave"
          :before-open="beforeOpen"
@@ -37,6 +36,7 @@
          @refresh-change="refreshChange"
          @on-load="onLoad"
        >
          <!-- @row-update="rowUpdate" -->
          <template slot="menuLeft">
            <el-button
              type="success"
src/views/securityGuard/securityGuardDetail.vue
@@ -40,7 +40,9 @@
            <div class="imgs">
              <!-- <div v-if="obj0.myPicture">暂无二维码</div> -->
              <!-- <img :src="obj0.myPicture" alt="" v-else/> -->
              <img src="/img/register/ewm.png" alt="" />
              <!-- <img src="/img/register/ewm.png" alt="" /> -->
              <!-- logoSrc="/img/register/ewm.png" -->
              <vue-qr :text="goToUrl" :size="200"></vue-qr>
            </div>
            <!-- <img src="/img/mock/card/card-1.jpg" alt="" /> -->
@@ -92,7 +94,11 @@
  update,
  page,
  remove,
  getER,
} from "@/api/performance/performance";
import vueQr from "vue-qr";
export default {
  data() {
    return {
@@ -187,6 +193,9 @@
      },
    };
  },
  components: {
    vueQr,
  },
  computed: {
    ids1() {
      let ids1 = [];
@@ -194,6 +203,12 @@
        ids1.push(ele.id);
      });
      return ids1.join(",");
    },
    goToUrl() {
      var url =
        "http://s16s652780.51mypc.cn/securityInfo/securityInfo.html?securityNumber=" +
        this.obj0.securitynumber;
      return url;
    },
  },
  methods: {
@@ -221,6 +236,10 @@
        //查询当前保安员的现实表现记录
        this.getPerformancePageInfo();
        this.loading2 = false;
      } else if (column.prop == "tab4") {
        // getER(this.obj0.securitynumber).then((res) => {
        //   console.log(res);
        // });
      }
    },
    //查询当前保安员的从业记录信息
@@ -423,7 +442,7 @@
    height: 110px;
    border-radius: 10px;
    position: absolute;
    border: 1px solid rgba($color: #888888, $alpha: 0.5);
    // border: 1px solid rgba($color: #888888, $alpha: 0.5);
    top: 330px;
    right: 103px;
    display: flex;
zhba_enterprises.zip
Binary files differ