From 22da5f9052c6d4aae141d2febe89645538a97f69 Mon Sep 17 00:00:00 2001 From: wangwenrui Date: Wed, 11 Mar 2020 18:48:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:dashboard=20=E6=96=B0=E5=A2=9Eunit=20?= =?UTF-8?q?=E4=B8=BATime=E6=97=B6=E7=9A=84=E6=A0=BC=E5=BC=8F=E5=8C=96?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.dashboard 新增unit 为Time时的格式化方法 2.dashboard table value值添加格式化 3.endpoint-query及view graph添加loading动画 4.chart 配置样式调整 --- .../src/components/charts/chart-list.vue | 2 +- .../src/components/charts/chart-table.vue | 25 +- .../src/components/charts/chartDataFormat.js | 313 ++++++++++++++---- .../components/charts/line-chart-block.vue | 23 +- .../src/components/common/language/en.js | 1 + .../components/common/rightBox/cabinetBox.vue | 2 +- .../components/page/dashboard/chartBox.vue | 49 +-- .../src/components/page/project/project.vue | 26 +- .../static/template/en/asset-template.xlsx | Bin 12823 -> 12626 bytes 9 files changed, 341 insertions(+), 100 deletions(-) diff --git a/nezha-fronted/src/components/charts/chart-list.vue b/nezha-fronted/src/components/charts/chart-list.vue index 09af8ca28..2d5db8aa5 100644 --- a/nezha-fronted/src/components/charts/chart-list.vue +++ b/nezha-fronted/src/components/charts/chart-list.vue @@ -263,7 +263,7 @@ export default { }; if(chartInfo.type === 'stackArea'){ seriesItem.theData.type='line'; - seriesItem.theData.stack='stack' + seriesItem.theData.stack=chartInfo.title seriesItem.theData.areaStyle={}; } // 图表中每条线的名字,后半部分 diff --git a/nezha-fronted/src/components/charts/chart-table.vue b/nezha-fronted/src/components/charts/chart-table.vue index d3e5981e2..37c486b75 100644 --- a/nezha-fronted/src/components/charts/chart-table.vue +++ b/nezha-fronted/src/components/charts/chart-table.vue @@ -1,6 +1,11 @@ + - + + + - +
{{data.title}}
@@ -56,7 +65,11 @@ {{ scope.row.element.alias?scope.row.element.alias:scope.row.element.element}} - + + + @@ -75,6 +88,7 @@