From 89bd83099a78d69ae23aa965d2dc479b7b049fe4 Mon Sep 17 00:00:00 2001 From: lucky Date: Mon, 17 May 2021 15:34:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/curve.vue | 19 ++++++++++++++++--- src/components/heat.vue | 10 ++++++++-- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/src/components/curve.vue b/src/components/curve.vue index 963f538..7cc9123 100644 --- a/src/components/curve.vue +++ b/src/components/curve.vue @@ -41,6 +41,8 @@ export default defineComponent({ weightOfInLists.forEach((item) => { arr.push(item.weightOfIn); }); + } else { + arr = [152, 130, 158, 146, 128, 166]; } return arr; }, @@ -53,6 +55,8 @@ export default defineComponent({ weightOfOutLists.forEach((item) => { arr.push(item.weightOfOut); }); + } else { + arr = [56, 38, 64, 100, 98, 79]; } return arr; }, @@ -65,6 +69,15 @@ export default defineComponent({ weightOfInLists.forEach((item) => { arr.push(item.time); }); + } else { + arr = [ + "2021-05", + "2021-04", + "2021-03", + "2021-02", + "2021-01", + "2020-12", + ]; } return arr; }, @@ -155,10 +168,10 @@ export default defineComponent({ }, }, grid: { - left: "0", + left: "6%", right: "6%", - top: "15%", - bottom: "15%", + top: "25%", + bottom: "5%", containLabel: true, }, xAxis: { diff --git a/src/components/heat.vue b/src/components/heat.vue index b1cdabe..2852cbf 100644 --- a/src/components/heat.vue +++ b/src/components/heat.vue @@ -1,8 +1,8 @@