代码调整
This commit is contained in:
parent
5fca43650b
commit
096a848024
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user