|
@@ -158,7 +158,7 @@ async function onClick(node) {
|
|
|
//点击详情跳转
|
|
|
function onDetail(node) {
|
|
|
let str = listArr[0].children.filter(v => v.id == node.pid)[0].itemValue
|
|
|
- let type=str.indexOf('&')!=-1 ? str.substring(0,str.indexOf('&')) : ''
|
|
|
+ let type = str.indexOf('&') != -1 ? str.substring(0, str.indexOf('&')) : ''
|
|
|
console.log(type, 'type--------')
|
|
|
switch (type) {
|
|
|
case 'pulping'://注浆
|
|
@@ -168,7 +168,7 @@ function onDetail(node) {
|
|
|
router.push('/monitorChannel/monitor-window?id=' + node.deviceID)
|
|
|
break;
|
|
|
case 'gate'://自动风门
|
|
|
- router.push('/monitorChannel/monitor-gate?id=' + node.deviceID)
|
|
|
+ router.push('/monitorChannel/monitor-gate?id=' + node.deviceID + '&deviceType=' + node.deviceType)
|
|
|
break;
|
|
|
case 'fanlocal'://局部风机
|
|
|
router.push('/monitorChannel/monitor-fanlocal?id=' + node.deviceID + '&deviceType=fanlocal')
|