Administrator
2021-12-13 d3b2a8aef1d7941b0e5847070765e4db056d027b
车辆,装备,枪支权限修改
5 files modified
18 ■■■■■ changed files
package.json 3 ●●●● patch | view | raw | blame | history
src/views/securityEquipment/car.vue 5 ●●●●● patch | view | raw | blame | history
src/views/securityEquipment/equipments.vue 3 ●●●● patch | view | raw | blame | history
src/views/securityEquipment/gun.js 4 ●●● patch | view | raw | blame | history
src/views/securityEquipment/gun.vue 3 ●●●● patch | view | raw | blame | history
package.json
@@ -17,6 +17,7 @@
    "classlist-polyfill": "^1.2.0",
    "crypto-js": "^4.0.0",
    "element-ui": "^2.15.1",
    "jquery": "^3.6.0",
    "js-base64": "^2.5.1",
    "js-cookie": "^2.2.0",
    "js-md5": "^0.7.3",
@@ -55,4 +56,4 @@
      "git add"
    ]
  }
}
}
src/views/securityEquipment/car.vue
@@ -161,7 +161,8 @@
    var that = this;
    if (
      this.userInfo.role_name == "装备管理员" ||
      this.userInfo.role_name == "保安公司管理员"
      this.userInfo.role_name == "保安公司管理员" ||
      this.userInfo.role_name == "分公司管理员"
    ) {
      this.useifid = this.userInfo.dept_id;
    }
@@ -340,7 +341,7 @@
        params["jurisdiction"] = that.userInfo.jurisdiction;
      }
      //保安公司进入
      if (this.userInfo.role_name == "保安公司管理员") {
      if (this.userInfo.role_name == "保安公司管理员" || this.userInfo.role_name == "分公司管理员") {
        params["deptId"] = that.userInfo.dept_id;
        //导入action 修改
        const importColumn = that.findObject(
src/views/securityEquipment/equipments.vue
@@ -160,7 +160,8 @@
    var that = this;
    if (
      this.userInfo.role_name == "装备管理员" ||
      this.userInfo.role_name == "保安公司管理员"
      this.userInfo.role_name == "保安公司管理员" ||
      this.userInfo.role_name == "分公司管理员"
    ) {
      this.useifid = this.userInfo.dept_id;
    }
src/views/securityEquipment/gun.js
@@ -125,6 +125,7 @@
        labelWidth: 160,
        // search: true,
        type: "date",
        row: true,
        format: "yyyy-MM-dd",
        valueFormat: "yyyy-MM-dd",
        searchSpan: 4,
@@ -134,5 +135,6 @@
            message: "请输入有效日期",
            trigger: "blur"
        }]
    }
    },
]
src/views/securityEquipment/gun.vue
@@ -141,7 +141,8 @@
    var that = this;
    if (
      this.userInfo.role_name == "装备管理员" ||
      this.userInfo.role_name == "保安公司管理员"
      this.userInfo.role_name == "保安公司管理员" ||
      this.userInfo.role_name == "分公司管理员"
    ) {
      this.useifid = this.userInfo.dept_id;
    }