liuyg
2021-08-19 0c35e05ca9c90883e5073ea35232ea100f866a8f
src/views/securityGuard/securityGuard.vue
@@ -261,7 +261,7 @@
import website from "@/config/website";
import { getToken } from "@/util/auth";
import { securityFormPageColumn } from "./data";
import { mapState } from 'vuex';
import { mapState } from "vuex";
export default {
  data() {
@@ -377,7 +377,7 @@
        tip: false,
        searchShow: true,
        searchMenuSpan: 6,
        border: false,
        border: true, //liu
        stripe: true,
        align: "center",
        index: true,
@@ -680,7 +680,7 @@
              {
                prop: "UserPractitionersInfo",
                type: "dynamic",
                border: false,
                border: true, //liu
                span: 24,
                children: {
                  align: "left",
@@ -922,8 +922,8 @@
      return ids.join(",");
    },
    ...mapState({
            userInfo: state => state.user.userInfo
        })
      userInfo: (state) => state.user.userInfo,
    }),
  },
  mounted() {
    // this.option.column[0].hide = true
@@ -934,16 +934,19 @@
    //获取当前登录人员的角色信息
    var roleIds = this.userInfo.role_id.split(",");
    roleIds.forEach(roleId =>{
    roleIds.forEach((roleId) => {
        getRoleDetail(roleId).then((res) => {
          var roleAlias = res.data.data.roleAlias;
          if(roleAlias=="保安公司管理员" || roleAlias=="保安" || roleAlias=="未持证保安"){
        if (
          roleAlias == "保安公司管理员" ||
          roleAlias == "保安" ||
          roleAlias == "未持证保安"
        ) {
              const column = this.findObject(this.option.column, "deptId");
              column.search = false;
          }
        })
    })
      });
    });
  },
  methods: {
    handleImport1() {
@@ -1047,8 +1050,8 @@
          registered:row.registered,
          rtime: row.rtime,
          securitynumber:row.securitynumber,
          sex: row.sex
      }
        sex: row.sex,
      };
      const userMap = {
            user: user,
            userPractitionersInfo: userPractitionersList,
@@ -1297,15 +1300,14 @@
      //获取当前登录人员的角色信息
      var roleIds = this.userInfo.role_id.split(",");
      roleIds.forEach(roleId =>{
      roleIds.forEach((roleId) => {
          getRoleDetail(roleId).then((res) => {
            var roleAlias = res.data.data.roleAlias;
            if(roleAlias=="保安公司管理员"){
                values["deptId"] = this.userInfo.dept_id;
            }
          })
      })
        });
      });
      if (this.userInfo.role_id == "1414840172333842433") {
        console.log("是公安add jurisdiction");