Browse Source

提交修改权限问题

newStyle
douzhuo 2 years ago
parent
commit
28ca2b7354
2 changed files with 7 additions and 8 deletions
  1. +6
    -7
      src/views/Equipment/state.vue
  2. +1
    -1
      vue.config.js

+ 6
- 7
src/views/Equipment/state.vue View File

@@ -493,7 +493,7 @@
row.recCmd == "start" ? "关闭" : "开启" row.recCmd == "start" ? "关闭" : "开启"
}}</el-dropdown-item }}</el-dropdown-item
> >
<el-dropdown-item v-if="getMenuReal('equ_state_equlog')" command="equlog"
<el-dropdown-item v-if="equ_state_equlog" command="equlog"
>设备日志</el-dropdown-item >设备日志</el-dropdown-item
> >
</el-dropdown-menu> </el-dropdown-menu>
@@ -854,6 +854,7 @@ export default {
orgType: localStorage.getItem("orgType"), orgType: localStorage.getItem("orgType"),
dialogVisible5: false, dialogVisible5: false,
wifiVisible: false, wifiVisible: false,
equ_state_equlog: false,
customColors: [ customColors: [
{ color: "red", percentage: 20 }, { color: "red", percentage: 20 },
// { color: "#e6a23c", percentage: 40 }, // { color: "#e6a23c", percentage: 40 },
@@ -876,11 +877,6 @@ export default {
}, },
computed: { computed: {
...mapGetters(["permissions"]), ...mapGetters(["permissions"]),
getMenuReal() {
return name => {
return this.permissions[name]
}
}
}, },
created() { created() {
this.equ_state_open = this.permissions["equ_state_open"]; this.equ_state_open = this.permissions["equ_state_open"];
@@ -892,7 +888,7 @@ export default {
this.equ_state_WiFi = this.permissions["equ_state_WiFi"]; this.equ_state_WiFi = this.permissions["equ_state_WiFi"];
this.equ_state_Voice = this.permissions["equ_state_Voice"]; this.equ_state_Voice = this.permissions["equ_state_Voice"];
this.equ_state_downLoad = this.permissions["equ_state_downLoad"]; this.equ_state_downLoad = this.permissions["equ_state_downLoad"];
this.equ_state_equlog = this.permissions["equ_state_equlog"]
if (this.orgType == 2 || this.orgType == 3) { if (this.orgType == 2 || this.orgType == 3) {
this.houseTypes = ""; this.houseTypes = "";
} }
@@ -913,6 +909,9 @@ export default {
this.zkhousePage(); this.zkhousePage();
}, },
methods: { methods: {
getPermissions(name) {
return this.permissions[name]
},
isSystoleForm() { isSystoleForm() {
this.isOpen = !this.isOpen; this.isOpen = !this.isOpen;
}, },


+ 1
- 1
vue.config.js View File

@@ -3,7 +3,7 @@
* https://cli.vuejs.org/zh/config/ * https://cli.vuejs.org/zh/config/
*/ */
// const url = 'http://192.168.31.161:9999' //长龙 // const url = 'http://192.168.31.161:9999' //长龙
const url = 'http://192.168.31.108:9999' // 胜浩
const url = 'http://192.168.31.147:9999' // 胜浩
// const url = 'https://zanyong.hfju.com' // 正式域名 // const url = 'https://zanyong.hfju.com' // 正式域名
// const url = 'http://127.0.0.1:9999' // 本地 // const url = 'http://127.0.0.1:9999' // 本地
// const url = 'http://81.70.55.170:9999' // 新测试 // const url = 'http://81.70.55.170:9999' // 新测试


Loading…
Cancel
Save