|
|
|
@ -68,8 +68,6 @@ import { GaugeChart } from 'echarts/charts'
|
|
|
|
import { ToolboxComponent } from 'echarts/components'
|
|
|
|
import { ToolboxComponent } from 'echarts/components'
|
|
|
|
import * as RedisApi from '@/api/infra/redis'
|
|
|
|
import * as RedisApi from '@/api/infra/redis'
|
|
|
|
import { RedisMonitorInfoVO } from '@/api/infra/redis/types'
|
|
|
|
import { RedisMonitorInfoVO } from '@/api/infra/redis/types'
|
|
|
|
echarts.use([ToolboxComponent])
|
|
|
|
|
|
|
|
echarts.use([GaugeChart])
|
|
|
|
|
|
|
|
const cache = ref<RedisMonitorInfoVO>()
|
|
|
|
const cache = ref<RedisMonitorInfoVO>()
|
|
|
|
|
|
|
|
|
|
|
|
// 基本信息
|
|
|
|
// 基本信息
|
|
|
|
@ -214,12 +212,12 @@ const commandStatsRefChika = reactive({
|
|
|
|
/** 加载数据 */
|
|
|
|
/** 加载数据 */
|
|
|
|
const getSummary = () => {
|
|
|
|
const getSummary = () => {
|
|
|
|
// 初始化命令图表
|
|
|
|
// 初始化命令图表
|
|
|
|
initcommandStatsChart()
|
|
|
|
initCommandStatsChart()
|
|
|
|
usedMemoryInstance()
|
|
|
|
usedMemoryInstance()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/** 命令使用情况 */
|
|
|
|
/** 命令使用情况 */
|
|
|
|
const initcommandStatsChart = async () => {
|
|
|
|
const initCommandStatsChart = async () => {
|
|
|
|
usedmemoryEchartChika.series[0].data = []
|
|
|
|
usedmemoryEchartChika.series[0].data = []
|
|
|
|
// 发起请求
|
|
|
|
// 发起请求
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
@ -265,6 +263,9 @@ const usedMemoryInstance = async () => {
|
|
|
|
|
|
|
|
|
|
|
|
/** 初始化 **/
|
|
|
|
/** 初始化 **/
|
|
|
|
onMounted(() => {
|
|
|
|
onMounted(() => {
|
|
|
|
|
|
|
|
echarts.use([ToolboxComponent])
|
|
|
|
|
|
|
|
echarts.use([GaugeChart])
|
|
|
|
|
|
|
|
// 读取 redis 信息
|
|
|
|
readRedisInfo()
|
|
|
|
readRedisInfo()
|
|
|
|
// 加载数据
|
|
|
|
// 加载数据
|
|
|
|
getSummary()
|
|
|
|
getSummary()
|
|
|
|
|