From c1bcc9394dd768570334495f37f99f9d5b1cff4e Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Fri, 13 Aug 2021 09:39:02 +0800 Subject: [PATCH] =?UTF-8?q?CN-64=20feat:=20=E6=90=9C=E7=B4=A2=E6=A1=86?= =?UTF-8?q?=E8=81=94=E5=8A=A8=EF=BC=8C=E5=85=B6=E4=BB=96=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E7=BB=86=E8=8A=82=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Login.vue | 14 +- src/components/charts/ChartSingleValue.vue | 8 +- src/components/charts/panel.scss | 44 +++++- src/components/entities/EntityList.vue | 31 ++-- src/components/entities/LeftFilter.vue | 4 +- src/components/entities/entities.scss | 2 +- src/components/layout/Header.vue | 96 ++++++++++-- src/components/layout/LeftMenu.vue | 57 ++++--- src/permission.js | 3 +- src/store/index.js | 26 +++- src/utils/api.js | 1 + src/utils/http.js | 2 + src/utils/unit-convert.js | 2 +- src/views/charts/Chart.vue | 25 +-- src/views/charts/Panel.vue | 25 +++ src/views/entities/EntityExplorer.vue | 171 ++++++++++++--------- 16 files changed, 340 insertions(+), 171 deletions(-) diff --git a/src/Login.vue b/src/Login.vue index 30c4f4a4..93b3766a 100644 --- a/src/Login.vue +++ b/src/Login.vue @@ -8,15 +8,16 @@ @@ -24,8 +25,9 @@ Login @@ -104,7 +106,7 @@ export default { margin-left: 52px; margin-right: 10px; } -.inputstyle{ +.login--input{ width: 300px; height: 40px; } @@ -116,7 +118,7 @@ export default { height: 250px; margin: auto; } -.login__button { +.login--butotn { background: #0091ff; color: #fff; border-radius: 4px; diff --git a/src/components/charts/ChartSingleValue.vue b/src/components/charts/ChartSingleValue.vue index 2cc6ca09..eb585697 100644 --- a/src/components/charts/ChartSingleValue.vue +++ b/src/components/charts/ChartSingleValue.vue @@ -11,14 +11,14 @@ -
-
+
+
-
+
-
+
diff --git a/src/components/charts/panel.scss b/src/components/charts/panel.scss index 327648ce..4b69728f 100644 --- a/src/components/charts/panel.scss +++ b/src/components/charts/panel.scss @@ -41,13 +41,6 @@ height: 100%; width: 100%; } - &>.cn-chart.cn-chart__echarts--statistics { - border: none; - box-shadow: none; - .cn-chart__header { - border-bottom: none; - } - } &>.cn-chart__echarts, &>.cn-chart__table, &>.cn-chart__map { display: flex; flex-direction: column; @@ -178,6 +171,36 @@ } } } + &>.cn-chart__single-value.cn-chart__single-value--chart { + display: flex; + padding: 13px 20px; + + .single-value__content { + display: flex; + height: 100%; + width: 100%; + flex-direction: column; + + .content__title { + display: flex; + align-items: center; + height: 30%; + font-size: 16px; + color: #666666; + } + .content__data { + display: flex; + align-items: center; + height: 25%; + font-size: 24px; + color: #333333; + font-weight: bold; + } + .content__chart { + flex: auto + } + } + } &>.cn-chart__title { display: flex; align-items: center; @@ -409,6 +432,13 @@ } } } +.cn-panel>.cn-chart__tabs>.el-tabs__content>.el-tab-pane>.cn-chart { + border: none; + box-shadow: none; + .cn-chart__header { + border-bottom: none; + } +} .option-popper { .el-select-dropdown__item { height: 24px; diff --git a/src/components/entities/EntityList.vue b/src/components/entities/EntityList.vue index d72820b1..4cbc0097 100644 --- a/src/components/entities/EntityList.vue +++ b/src/components/entities/EntityList.vue @@ -5,23 +5,23 @@
- - - + + +
-
-