From bf629a95549757faa90362b5d3c0c6a2e6a443a4 Mon Sep 17 00:00:00 2001 From: Chika Date: Fri, 12 May 2023 15:30:01 +0800 Subject: [PATCH 1/2] =?UTF-8?q?Redis=E7=9B=91=E6=8E=A7=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E4=BD=BF=E7=94=A8Echart=E7=BB=84=E4=BB=B6=E6=95=B4=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/modules/remaining.ts | 22 +++ src/views/infra/redis/index.vue | 279 +++++++++++++++++++++----------- 2 files changed, 209 insertions(+), 92 deletions(-) diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 8886e388..ed0d6720 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -318,6 +318,28 @@ const remainingRouter: AppRouteRecordRaw[] = [ } ] }, + { + path: '/infra', + component: Layout, + name: 'InfraRedis', + meta: { + hidden: true + }, + children: [ + { + path: '/infra/redis', + component: () => import('@/views/infra/redis/index.vue'), + name: 'InfraRedis', + meta: { + noCache: true, + hidden: true, + canTo: true, + title: 'REDIS测试测试测试', + activeMenu: 'infra/redis/index' + } + } + ] + }, { path: '/property', component: Layout, diff --git a/src/views/infra/redis/index.vue b/src/views/infra/redis/index.vue index 246b90ee..948148ad 100644 --- a/src/views/infra/redis/index.vue +++ b/src/views/infra/redis/index.vue @@ -1,7 +1,6 @@ - From fbac522149c82db3c4a23691140b0370615a3329 Mon Sep 17 00:00:00 2001 From: Chika Date: Fri, 12 May 2023 16:10:14 +0800 Subject: [PATCH 2/2] =?UTF-8?q?Redis=E7=9B=91=E6=8E=A7=E7=94=A8Echart?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/infra/redis/index.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/views/infra/redis/index.vue b/src/views/infra/redis/index.vue index 737d9ca2..0d68c88f 100644 --- a/src/views/infra/redis/index.vue +++ b/src/views/infra/redis/index.vue @@ -218,7 +218,6 @@ const getSummary = () => { usedMemoryInstance() } -<<<<<<< HEAD /** 命令使用情况 */ const initcommandStatsChart = async () => { usedmemoryEchartChika.series[0].data = [] @@ -257,6 +256,7 @@ const usedMemoryInstance = async () => { value: cache.value!.info.used_memory_human, name: '内存消耗' } + console.log(cache.value!.info) usedmemoryEchartChika.tooltip = { formatter: '{b}
{a} : ' + cache.value!.info.used_memory_human } @@ -265,10 +265,6 @@ const usedMemoryInstance = async () => { /** 初始化 **/ onMounted(() => { -======= -onBeforeMount(() => { - // TODO @hiiwbs 微信,优化使用 Echart 组件 ->>>>>>> e92361ed401771998c6abd6d9ba53801a6e0cfa6 readRedisInfo() // 加载数据 getSummary()