From 25f50d74c5b71876f62bd7374eae6cb4d44df2f2 Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期一, 27 九月 2021 18:54:43 +0800 Subject: [PATCH] 升级sass-loader到最新版本10.1.1 --- ruoyi-ui/src/views/monitor/cache/index.vue | 17 ++++++----------- 1 files changed, 6 insertions(+), 11 deletions(-) diff --git a/ruoyi-ui/src/views/monitor/cache/index.vue b/ruoyi-ui/src/views/monitor/cache/index.vue index 6b012df..36957ed 100644 --- a/ruoyi-ui/src/views/monitor/cache/index.vue +++ b/ruoyi-ui/src/views/monitor/cache/index.vue @@ -74,8 +74,6 @@ name: "Server", data() { return { - // 加载层信息 - loading: [], // 统计命令信息 commandstats: null, // 使用内存 @@ -93,7 +91,7 @@ getList() { getCache().then((response) => { this.cache = response.data; - this.loading.close(); + this.$modal.closeLoading(); this.commandstats = echarts.init(this.$refs.commandstats, "macarons"); this.commandstats.setOption({ @@ -117,14 +115,16 @@ this.usedmemory = echarts.init(this.$refs.usedmemory, "macarons"); this.usedmemory.setOption({ tooltip: { - formatter: "{b} <br/>{a} : {c}K", + formatter: "{b} <br/>{a} : " + this.cache.info.used_memory_human, }, series: [ { name: "峰值", type: "gauge", + min: 0, + max: 1000, detail: { - formatter: "{value}K", + formatter: this.cache.info.used_memory_human, }, data: [ { @@ -139,12 +139,7 @@ }, // 打开加载层 openLoading() { - this.loading = this.$loading({ - lock: true, - text: "拼命读取中", - spinner: "el-icon-loading", - background: "rgba(0, 0, 0, 0.7)", - }); + this.$modal.loading("正在加载缓存监控数据,请稍后!"); }, }, }; -- Gitblit v1.9.2