|
|
|
@ -2,7 +2,6 @@
|
|
|
|
import { ref, onMounted, onUnmounted } from 'vue'
|
|
|
|
import { ref, onMounted, onUnmounted } from 'vue'
|
|
|
|
import * as echarts from 'echarts'
|
|
|
|
import * as echarts from 'echarts'
|
|
|
|
import * as signalR from '@microsoft/signalr'
|
|
|
|
import * as signalR from '@microsoft/signalr'
|
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const connection = ref<signalR.HubConnection | null>(null)
|
|
|
|
const connection = ref<signalR.HubConnection | null>(null)
|
|
|
|
const refreshInterval = ref<ReturnType<typeof setInterval> | null>(null)
|
|
|
|
const refreshInterval = ref<ReturnType<typeof setInterval> | null>(null)
|
|
|
|
@ -31,13 +30,6 @@ const trendData = ref({
|
|
|
|
online: [8, 9, 8, 9, 10, 8, 9]
|
|
|
|
online: [8, 9, 8, 9, 10, 8, 9]
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const utilizationData = ref([
|
|
|
|
|
|
|
|
{ name: '运行中', value: 65 },
|
|
|
|
|
|
|
|
{ name: '空闲中', value: 15 },
|
|
|
|
|
|
|
|
{ name: '维护中', value: 10 },
|
|
|
|
|
|
|
|
{ name: '故障中', value: 10 }
|
|
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let statusChart: echarts.ECharts | null = null
|
|
|
|
let statusChart: echarts.ECharts | null = null
|
|
|
|
let trendChart: echarts.ECharts | null = null
|
|
|
|
let trendChart: echarts.ECharts | null = null
|
|
|
|
let utilizationChart: echarts.ECharts | null = null
|
|
|
|
let utilizationChart: echarts.ECharts | null = null
|
|
|
|
|