parent
f50aa032b3
commit
c12893d077
@ -0,0 +1,169 @@ |
|||||||
|
<template> |
||||||
|
<div style="margin-top: 10px"> |
||||||
|
<el-descriptions |
||||||
|
title="设备能力信息" |
||||||
|
v-loading="loadingCapability" |
||||||
|
:column="3" |
||||||
|
border |
||||||
|
> |
||||||
|
<el-descriptions-item |
||||||
|
label="LAN口数量" |
||||||
|
label-align="left" |
||||||
|
align="center" |
||||||
|
label-class-name="my-label" |
||||||
|
class-name="my-content" |
||||||
|
width="180px" |
||||||
|
> |
||||||
|
{{ ability.lanNumber }} |
||||||
|
</el-descriptions-item> |
||||||
|
<el-descriptions-item |
||||||
|
label="VOIP端口数量" |
||||||
|
label-align="left" |
||||||
|
align="center" |
||||||
|
label-class-name="my-label" |
||||||
|
class-name="my-content" |
||||||
|
width="180px" |
||||||
|
> |
||||||
|
{{ ability.voipPortNumber }} |
||||||
|
</el-descriptions-item> |
||||||
|
<el-descriptions-item |
||||||
|
label="GE端口数" |
||||||
|
label-align="left" |
||||||
|
align="center" |
||||||
|
label-class-name="my-label" |
||||||
|
class-name="my-content" |
||||||
|
width="180px" |
||||||
|
> |
||||||
|
{{ ability.gePortNumber }} |
||||||
|
</el-descriptions-item> |
||||||
|
<el-descriptions-item |
||||||
|
label="FE端口数" |
||||||
|
label-align="left" |
||||||
|
align="center" |
||||||
|
label-class-name="my-label" |
||||||
|
class-name="my-content" |
||||||
|
width="180px" |
||||||
|
> |
||||||
|
{{ ability.fePortNumber }} |
||||||
|
</el-descriptions-item> |
||||||
|
<el-descriptions-item |
||||||
|
label="WIFI类型" |
||||||
|
label-align="left" |
||||||
|
align="center" |
||||||
|
label-class-name="my-label" |
||||||
|
class-name="my-content" |
||||||
|
width="180px" |
||||||
|
> |
||||||
|
{{ ability.wifiType }} |
||||||
|
</el-descriptions-item> |
||||||
|
<el-descriptions-item |
||||||
|
label="WIFI配置" |
||||||
|
label-align="left" |
||||||
|
align="center" |
||||||
|
label-class-name="my-label" |
||||||
|
class-name="my-content" |
||||||
|
width="180px" |
||||||
|
> |
||||||
|
{{ ability.wifiConfig }} |
||||||
|
</el-descriptions-item> |
||||||
|
<el-descriptions-item |
||||||
|
label="语音协议" |
||||||
|
label-align="left" |
||||||
|
align="center" |
||||||
|
label-class-name="my-label" |
||||||
|
class-name="my-content" |
||||||
|
width="180px" |
||||||
|
> |
||||||
|
{{ ability.voipProtocol }} |
||||||
|
</el-descriptions-item> |
||||||
|
<el-descriptions-item |
||||||
|
label="设备能力" |
||||||
|
label-align="left" |
||||||
|
align="center" |
||||||
|
label-class-name="my-label" |
||||||
|
class-name="my-content" |
||||||
|
width="180px" |
||||||
|
> |
||||||
|
{{ ability.capability }} |
||||||
|
</el-descriptions-item> |
||||||
|
<el-descriptions-item |
||||||
|
label="是否支持MESH组网" |
||||||
|
label-align="left" |
||||||
|
align="center" |
||||||
|
label-class-name="my-label" |
||||||
|
class-name="my-content" |
||||||
|
width="180px" |
||||||
|
> |
||||||
|
{{ ability.mesh }} |
||||||
|
</el-descriptions-item> |
||||||
|
<el-descriptions-item |
||||||
|
label="是否支持云网关" |
||||||
|
label-align="left" |
||||||
|
align="center" |
||||||
|
label-class-name="my-label" |
||||||
|
class-name="my-content" |
||||||
|
width="180px" |
||||||
|
> |
||||||
|
{{ ability.ywg }} |
||||||
|
</el-descriptions-item> |
||||||
|
<el-descriptions-item |
||||||
|
label="是否支持测速" |
||||||
|
label-align="left" |
||||||
|
align="center" |
||||||
|
label-class-name="my-label" |
||||||
|
class-name="my-content" |
||||||
|
width="180px" |
||||||
|
> |
||||||
|
{{ ability.tr143 }} |
||||||
|
</el-descriptions-item> |
||||||
|
<el-descriptions-item |
||||||
|
label="是否支持IPV6" |
||||||
|
label-align="left" |
||||||
|
align="center" |
||||||
|
label-class-name="my-label" |
||||||
|
class-name="my-content" |
||||||
|
width="180px" |
||||||
|
> |
||||||
|
{{ ability.ipv6Enable }} |
||||||
|
</el-descriptions-item> |
||||||
|
<el-descriptions-item |
||||||
|
label="是否重启生效" |
||||||
|
label-align="left" |
||||||
|
align="center" |
||||||
|
label-class-name="my-label" |
||||||
|
class-name="my-content" |
||||||
|
width="180px" |
||||||
|
> |
||||||
|
{{ ability.reboot }} |
||||||
|
</el-descriptions-item> |
||||||
|
</el-descriptions> |
||||||
|
</div> |
||||||
|
</template> |
||||||
|
|
||||||
|
<script setup lang="ts"> |
||||||
|
import { CapabilityForm } from "@/api/type-ver-ext/types"; |
||||||
|
import { getCapabilityVO } from "@/api/type-ver-ext"; |
||||||
|
|
||||||
|
const prop = defineProps<{ |
||||||
|
typeAndVerId: number; |
||||||
|
}>(); |
||||||
|
const loadingCapability = ref<boolean>(false); |
||||||
|
const ability = ref<CapabilityForm>({}); |
||||||
|
const loadCapabilityVO = async () => { |
||||||
|
loadingCapability.value = true; |
||||||
|
await getCapabilityVO(prop.typeAndVerId) |
||||||
|
.then(({ data }) => { |
||||||
|
if (data != null) { |
||||||
|
ability.value = data; |
||||||
|
} |
||||||
|
}) |
||||||
|
.finally(() => { |
||||||
|
loadingCapability.value = false; |
||||||
|
}); |
||||||
|
}; |
||||||
|
onMounted(() => { |
||||||
|
loadCapabilityVO(); |
||||||
|
}); |
||||||
|
</script> |
||||||
|
|
||||||
|
<style scoped></style> |
@ -0,0 +1,43 @@ |
|||||||
|
<template> |
||||||
|
<el-descriptions title="设备状态" :column="3" border> |
||||||
|
<template #extra> |
||||||
|
<el-button type="primary">获取设备链路信息</el-button> |
||||||
|
</template> |
||||||
|
<el-descriptions-item |
||||||
|
label="设备在线状态" |
||||||
|
label-align="left" |
||||||
|
align="center" |
||||||
|
label-class-name="my-label" |
||||||
|
class-name="my-content" |
||||||
|
width="150px" |
||||||
|
/> |
||||||
|
<el-descriptions-item |
||||||
|
label="设备在线时间" |
||||||
|
label-align="left" |
||||||
|
align="center" |
||||||
|
label-class-name="my-label" |
||||||
|
class-name="my-content" |
||||||
|
width="150px" |
||||||
|
/> |
||||||
|
<el-descriptions-item |
||||||
|
label="设备创建时间" |
||||||
|
label-align="left" |
||||||
|
align="center" |
||||||
|
label-class-name="my-label" |
||||||
|
class-name="my-content" |
||||||
|
width="150px" |
||||||
|
/> |
||||||
|
</el-descriptions> |
||||||
|
<device-ability :type-and-ver-id="typeAndVerId" /> |
||||||
|
</template> |
||||||
|
|
||||||
|
<script setup lang="ts"> |
||||||
|
import DeviceAbility from "@/views/family/operate/remote-operation/components/DeviceAbility.vue"; |
||||||
|
|
||||||
|
const prop = defineProps<{ |
||||||
|
devId: number; |
||||||
|
typeAndVerId: number; |
||||||
|
}>(); |
||||||
|
</script> |
||||||
|
|
||||||
|
<style scoped></style> |
@ -0,0 +1,24 @@ |
|||||||
|
<template> |
||||||
|
<div style="margin-top: 10px"> |
||||||
|
<el-tabs type="border-card"> |
||||||
|
<el-tab-pane label="设备状态信息"> |
||||||
|
<device-status :dev-id="devId" :type-and-ver-id="prop.typeAndVerId" /> |
||||||
|
</el-tab-pane> |
||||||
|
<el-tab-pane :label="label" v-for="(label, index) in tabs" :key="index">{{ |
||||||
|
label |
||||||
|
}}</el-tab-pane> |
||||||
|
</el-tabs> |
||||||
|
</div> |
||||||
|
</template> |
||||||
|
|
||||||
|
<script setup lang="ts"> |
||||||
|
import DeviceStatus from "@/views/family/operate/remote-operation/components/DeviceStatus.vue"; |
||||||
|
|
||||||
|
const prop = defineProps<{ |
||||||
|
devId: number; |
||||||
|
typeAndVerId: number; |
||||||
|
}>(); |
||||||
|
const tabs = ref<string[]>([]); |
||||||
|
</script> |
||||||
|
|
||||||
|
<style scoped></style> |
Loading…
Reference in new issue