|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="relative h-full w-full"> |
|
|
|
<div class="relative h-full w-full"> |
|
|
|
<el-button type="primary" @click="onBack" class="absolute top-0 z-99"> |
|
|
|
<el-button type="primary" @click="onBack" class="absolute top-0 z-99"> |
|
|
|
<i class="i-line-md:arrow-left"></i>返回站点数据 |
|
|
|
<i class="i-line-md:arrow-left"></i>返回设备详情 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
<el-empty v-if="!topologyTree && !loading" class="w-full h-full"></el-empty> |
|
|
|
<el-empty v-if="!topologyTree && !loading" class="w-full h-full"></el-empty> |
|
|
|
<div |
|
|
|
<div |
|
|
@ -86,7 +86,7 @@ const plugins: PluginOptions = [ |
|
|
|
const { data } = getNodeData(e.target) |
|
|
|
const { data } = getNodeData(e.target) |
|
|
|
const menu = [{ name: '查看详情', value: 'detail' }] |
|
|
|
const menu = [{ name: '查看详情', value: 'detail' }] |
|
|
|
if (data.type === DeviceType.bms) { |
|
|
|
if (data.type === DeviceType.bms) { |
|
|
|
menu.unshift({ name: '固件升级', value: 'firmwareUpdate' }) |
|
|
|
menu.unshift({ name: '系统管理', value: 'firmwareUpdate' }) |
|
|
|
} |
|
|
|
} |
|
|
|
return menu; |
|
|
|
return menu; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -181,7 +181,7 @@ function filterTree(node: IPointGroupOV) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function onBack() { |
|
|
|
function onBack() { |
|
|
|
router.push('/station') |
|
|
|
router.go(-1) |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|