diff --git a/ruoyi-ui/src/views/monitor/cache/index.vue b/ruoyi-ui/src/views/monitor/cache/index.vue index f8b6648..f1cf8e8 100644 --- a/ruoyi-ui/src/views/monitor/cache/index.vue +++ b/ruoyi-ui/src/views/monitor/cache/index.vue @@ -3,38 +3,50 @@ -
基本信息
+
{{ $t('Monitor_Cache.basInfomation') }}
- + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + - + + @@ -45,7 +57,8 @@ -
命令统计
+ +
{{ $t('Monitor_Cache.commandStats') }}
@@ -54,7 +67,8 @@ -
内存信息
+ +
{{ $t('Monitor_Cache.memoryUsedInfo') }}
@@ -99,7 +113,8 @@ export default { }, series: [ { - name: "命令", + // 命令 + name: this.$t('Monitor_Cache.command'), type: "pie", roseType: "radius", radius: [15, 95], @@ -117,7 +132,8 @@ export default { }, series: [ { - name: "峰值", + // 峰值 + name: this.$t('Monitor_Cache.peakValue'), type: "gauge", min: 0, max: 1000, @@ -127,7 +143,8 @@ export default { data: [ { value: parseFloat(this.cache.info.used_memory_human), - name: "内存消耗", + // 内存消耗 + name: this.$t('Monitor_Cache.cacheMemoryUsed'), } ] } @@ -141,7 +158,8 @@ export default { }, // 打开加载层 openLoading() { - this.$modal.loading("正在加载缓存监控数据,请稍候!") + // 提示:正在加载缓存监控数据,请稍候! + this.$modal.loading(this.$t('Monitor_Cache.cacheMemoryUsed')) } } } diff --git a/ruoyi-ui/src/views/monitor/cache/list.vue b/ruoyi-ui/src/views/monitor/cache/list.vue index 9e0523e..377e877 100644 --- a/ruoyi-ui/src/views/monitor/cache/list.vue +++ b/ruoyi-ui/src/views/monitor/cache/list.vue @@ -1,17 +1,21 @@
Redis版本
{{ $t('Monitor_Cache.redisVersion') }}
{{ cache.info.redis_version }}
运行模式
{{ $t('Monitor_Cache.redisMode') }}
{{ cache.info.redis_mode == "standalone" ? "单机" : "集群" }}
端口
{{ $t('Monitor_Cache.port') }}
{{ cache.info.tcp_port }}
客户端数
{{ $t('Monitor_Cache.connectedClients') }}
{{ cache.info.connected_clients }}
运行时间(天)
{{ $t('Monitor_Cache.runningTime') }}
{{ cache.info.uptime_in_days }}
使用内存
{{ $t('Monitor_Cache.memoryUsed') }}
{{ cache.info.used_memory_human }}
使用CPU
{{ $t('Monitor_Cache.cpuUsed') }}
{{ parseFloat(cache.info.used_cpu_user_children).toFixed(2) }}
内存配置
{{ $t('Monitor_Cache.memorySize') }}
{{ cache.info.maxmemory_human }}
AOF是否开启
{{ $t('Monitor_Cache.AOFIsOpen') }}
{{ cache.info.aof_enabled == "0" ? "否" : "是" }}
RDB是否成功
{{ $t('Monitor_Cache.RDBIsEnable') }}
{{ cache.info.rdb_last_bgsave_status }}
Key数量
{{ $t('Monitor_Cache.keySize') }}
{{ cache.dbSize }}
网络入口/出口
{{ $t('Monitor_Cache.netInputAndOutput') }}
{{ cache.info.instantaneous_input_kbps }}kps/{{cache.info.instantaneous_output_kbps}}kps