iscs系统 添加机电下的菜单

This commit is contained in:
joylink_cuiweidong 2020-05-07 09:42:26 +08:00
parent bc9cd67681
commit ea138e7f3c
3 changed files with 111 additions and 7 deletions

View File

@ -74,14 +74,64 @@ export default {
name: '机电', // name: '机电', //
children: [ children: [
{ {
name: '控制模式', name: '大系统',
type: 'bigSystem',
showType: ['center', 'local']
},
{
name: '小系统',
type: 'smallSystem',
showType: ['center', 'local']
},
{
name: '水系统',
type: 'waterSystem',
showType: ['center', 'local']
},
{
name: '照明',
type: 'lighting',
showType: ['center', 'local']
},
{
name: '电-扶梯',
type: 'electricEscalator',
showType: ['center', 'local']
},
{
name: '给排水',
type: 'waterSupply',
showType: ['center', 'local']
},
{
name: '模式',
type: 'controlBAS', type: 'controlBAS',
showType: ['center', 'local'] showType: ['center', 'local']
}, },
{ {
name: '控制权限', name: '隧道通风',
type: 'tunnelVentilation',
showType: ['center', 'local']
},
{
name: '时刻表',
type: 'schedules',
showType: ['center', 'local']
},
{
name: '权限交接',
type: 'controlPermissionBAS', type: 'controlPermissionBAS',
showType: ['center', 'local'] showType: ['center', 'local']
},
{
name: '传感器',
type: 'sensor',
showType: ['center', 'local']
},
{
name: '车站网络',
type: 'stationNetwork',
showType: ['center', 'local']
} }
] ]
}, { }, {

View File

@ -23,8 +23,7 @@
:id="getDomId(child)" :id="getDomId(child)"
:key="j" :key="j"
class="menu-li" class="menu-li"
@mouseenter="selectedClassB(child, j)" @click.stop="selectedClassB(child, j)"
@mouseleave="tempClassB = -1"
> >
<div class="menu-li-block"> <div class="menu-li-block">
<span class="menu-li-text"> <span class="menu-li-text">
@ -324,7 +323,12 @@ export default {
this.popupMenuB(item, index); this.popupMenuB(item, index);
}, },
popupMenuB(item, index) { popupMenuB(item, index) {
if (item.children) {
this.tempClassB = index; this.tempClassB = index;
} else {
this.tempClassB = -1;
}
}, },
// //
popupMenuA(item, index) { popupMenuA(item, index) {

View File

@ -71,14 +71,64 @@ export default {
name: '机电', // name: '机电', //
children: [ children: [
{ {
name: '控制模式', name: '大系统',
type: 'bigSystem',
showType: ['center', 'local']
},
{
name: '小系统',
type: 'smallSystem',
showType: ['center', 'local']
},
{
name: '水系统',
type: 'waterSystem',
showType: ['center', 'local']
},
{
name: '照明',
type: 'lighting',
showType: ['center', 'local']
},
{
name: '电-扶梯',
type: 'electricEscalator',
showType: ['center', 'local']
},
{
name: '给排水',
type: 'waterSupply',
showType: ['center', 'local']
},
{
name: '模式',
type: 'controlBAS', type: 'controlBAS',
showType: ['center', 'local'] showType: ['center', 'local']
}, },
{ {
name: '控制权限', name: '隧道通风',
type: 'tunnelVentilation',
showType: ['center', 'local']
},
{
name: '时刻表',
type: 'schedules',
showType: ['center', 'local']
},
{
name: '权限交接',
type: 'controlPermissionBAS', type: 'controlPermissionBAS',
showType: ['center', 'local'] showType: ['center', 'local']
},
{
name: '传感器',
type: 'sensor',
showType: ['center', 'local']
},
{
name: '车站网络',
type: 'stationNetwork',
showType: ['center', 'local']
} }
] ]
}, { }, {