代码调整

This commit is contained in:
joylink_cuiweidong 2019-11-19 17:48:33 +08:00
parent 5fca43650b
commit 096a848024

View File

@ -26,7 +26,7 @@ import { OperateMode } from '@/scripts/ConstDic';
import { MapDeviceType, OperationEvent, DeviceMenu } from '@/scripts/ConstDic';
//
import { MenuDisabledState, menuConvert, menuFiltration } from './utils/menuItemStatus';
import MenuContextHandler from '@/scripts/plugin/MenuContextHandler';
// import MenuContextHandler from '@/scripts/plugin/MenuContextHandler';
export default {
name: 'SignalMenu',
@ -224,8 +224,8 @@ export default {
},
initMenu() {
//
this.menu = MenuContextHandler.menuFiltration(this.menuNormal);
// this.menu = menuFiltration(this.menuNormal);
// this.menu = MenuContextHandler.menuFiltration(this.menuNormal);
this.menu = menuFiltration(this.menuNormal);
if (this.operatemode === OperateMode.ADMIN) {
this.menu = [...this.menu, ...this.menuForce];
}
@ -235,9 +235,9 @@ export default {
this.menu = this.menuForce;
}
debugger;
this.menu = MenuContextHandler.covert(this.menu);
// this.menu = menuConvert(this.menu);
// debugger;
// this.menu = MenuContextHandler.covert(this.menu);
this.menu = menuConvert(this.menu);
},
doShow(point) {