From 917b9d180a01dc36aa3609fde8dd79b78bde8b68 Mon Sep 17 00:00:00 2001 From: dhb52 Date: Sat, 22 Apr 2023 20:45:03 +0800 Subject: [PATCH 01/28] =?UTF-8?q?fix:=20mp/menu=E8=8F=9C=E5=8D=95=E6=8B=96?= =?UTF-8?q?=E5=8A=A8=E5=90=8E=E6=BF=80=E6=B4=BB=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mp/menu/components/MenuPreviewer.vue | 48 +++++++++++-------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/src/views/mp/menu/components/MenuPreviewer.vue b/src/views/mp/menu/components/MenuPreviewer.vue index 3066e590..d2626320 100644 --- a/src/views/mp/menu/components/MenuPreviewer.vue +++ b/src/views/mp/menu/components/MenuPreviewer.vue @@ -4,7 +4,7 @@ item-key="id" ghost-class="draggable-ghost" :animation="400" - @end="onDragEnd" + @end="onParentDragEnd" > + + - From fbac522149c82db3c4a23691140b0370615a3329 Mon Sep 17 00:00:00 2001 From: Chika Date: Fri, 12 May 2023 16:10:14 +0800 Subject: [PATCH 27/28] =?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() From 3feb4828cd9bd62e4e365231cf71409bc91951a5 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 15 May 2023 22:57:31 +0800 Subject: [PATCH 28/28] =?UTF-8?q?!148=20=E3=80=90=E9=87=8D=E6=9E=84?= =?UTF-8?q?=E3=80=91Vue3=20=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0=EF=BC=9A[?= =?UTF-8?q?=E5=9F=BA=E7=A1=80=E7=AE=A1=E7=90=86=20->=20Redis=E7=9B=91?= =?UTF-8?q?=E6=8E=A7]=20=E4=BD=BF=E7=94=A8Echart=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0?= 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 | 15 ++++++++------- 2 files changed, 8 insertions(+), 29 deletions(-) diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 6cc8746b..4f5a16bd 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -330,28 +330,6 @@ 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 0d68c88f..011f8e59 100644 --- a/src/views/infra/redis/index.vue +++ b/src/views/infra/redis/index.vue @@ -68,8 +68,6 @@ import { GaugeChart } from 'echarts/charts' import { ToolboxComponent } from 'echarts/components' import * as RedisApi from '@/api/infra/redis' import { RedisMonitorInfoVO } from '@/api/infra/redis/types' -echarts.use([ToolboxComponent]) -echarts.use([GaugeChart]) const cache = ref() // 基本信息 @@ -145,14 +143,14 @@ const usedmemoryEchartChika = reactive({ fontSize: 15 }, pointer: { - //指针的大小 + // 指针的大小 width: 7, show: true }, detail: { textStyle: { fontWeight: 'normal', - //里面文字下的数值大小(50) + // 里面文字下的数值大小(50) fontSize: 15, color: '#FFFFFF' }, @@ -213,13 +211,13 @@ const commandStatsRefChika = reactive({ /** 加载数据 */ const getSummary = () => { - //初始化命令图表 - initcommandStatsChart() + // 初始化命令图表 + initCommandStatsChart() usedMemoryInstance() } /** 命令使用情况 */ -const initcommandStatsChart = async () => { +const initCommandStatsChart = async () => { usedmemoryEchartChika.series[0].data = [] // 发起请求 try { @@ -265,6 +263,9 @@ const usedMemoryInstance = async () => { /** 初始化 **/ onMounted(() => { + echarts.use([ToolboxComponent]) + echarts.use([GaugeChart]) + // 读取 redis 信息 readRedisInfo() // 加载数据 getSummary()