浏览代码

提交修改权限问题

newStyle
douzhuo 2 年前
父节点
当前提交
28ca2b7354
共有 2 个文件被更改,包括 7 次插入8 次删除
  1. +6
    -7
      src/views/Equipment/state.vue
  2. +1
    -1
      vue.config.js

+ 6
- 7
src/views/Equipment/state.vue 查看文件

@@ -493,7 +493,7 @@
row.recCmd == "start" ? "关闭" : "开启"
}}</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-menu>
@@ -854,6 +854,7 @@ export default {
orgType: localStorage.getItem("orgType"),
dialogVisible5: false,
wifiVisible: false,
equ_state_equlog: false,
customColors: [
{ color: "red", percentage: 20 },
// { color: "#e6a23c", percentage: 40 },
@@ -876,11 +877,6 @@ export default {
},
computed: {
...mapGetters(["permissions"]),
getMenuReal() {
return name => {
return this.permissions[name]
}
}
},
created() {
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_Voice = this.permissions["equ_state_Voice"];
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) {
this.houseTypes = "";
}
@@ -913,6 +909,9 @@ export default {
this.zkhousePage();
},
methods: {
getPermissions(name) {
return this.permissions[name]
},
isSystoleForm() {
this.isOpen = !this.isOpen;
},


+ 1
- 1
vue.config.js 查看文件

@@ -3,7 +3,7 @@
* https://cli.vuejs.org/zh/config/
*/
// 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 = 'http://127.0.0.1:9999' // 本地
// const url = 'http://81.70.55.170:9999' // 新测试


正在加载...
取消
保存