From b6925bb87684413db8d0d63ae3b6fc61f273f0e7 Mon Sep 17 00:00:00 2001 From: xuyiming Date: Wed, 26 Aug 2020 18:34:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=85=E7=AE=A1=E8=BF=90=E8=A1=8C=E7=AE=A1?= =?UTF-8?q?=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/apass-table.vue | 28 +- src/components/e-charts/bar-chart-two.vue | 48 ++-- .../organization/organizationdetail.vue | 13 +- src/pages/data-analysis/my-service.vue | 4 +- src/pages/data-analysis/org-overview.vue | 9 +- src/pages/data-analysis/super-overview.vue | 267 +++++++++++++++--- 6 files changed, 307 insertions(+), 62 deletions(-) diff --git a/src/components/apass-table.vue b/src/components/apass-table.vue index 6b61586..5590a12 100644 --- a/src/components/apass-table.vue +++ b/src/components/apass-table.vue @@ -132,9 +132,9 @@ :styles="item.prop == 'cpu' ? spCurveStyles2 : spCurveStyles3" /> - {{ scope.row["cpu_use"] }}.00mm + + {{ scope.row["cpu_use"] }}.00mm + 0mm + 0mm + {{ (scope.row["memory_use"]/1024/1024).toFixed(2)}}Mi + {{ (scope.row["memory_use"] / 1024 / 1024).toFixed(2) }}Mi + + {{ getPercent(scope.row[item.prop]) }} @@ -218,6 +226,16 @@ + + {{ scope.row[item.prop] + "%" }} + + + + + 6) { - valueTxt = value.substring(0, 5) + "..."; + rotate: self.x_router, + formatter: function(value) { + let maxLen = self.xAxis_text_length; + + if (maxLen > 1) { + let valueTxt = ""; + if (value.length > maxLen) { + valueTxt = value.substring(0, maxLen - 1) + "..."; + } else { + valueTxt = value; + } + return valueTxt; } else { - valueTxt = value; + return value; } - return valueTxt; - }, */ + }, }, axisLine: { lineStyle: { @@ -132,7 +142,7 @@ export default { { type: "bar", type: "bar", - barWidth: _self.bar_width, + barWidth: self.bar_width, itemStyle: { normal: { color: function(params) { @@ -144,17 +154,17 @@ export default { [ { offset: 0, - color: _self.colors[0], // 0% 处的颜色 + color: self.colors[0], // 0% 处的颜色 }, { offset: 1, - color: _self.colors[0], // 100% 处的颜色 + color: self.colors[0], // 100% 处的颜色 }, ], false ); }, - barBorderRadius: _self.bar_border_radius, + barBorderRadius: self.bar_border_radius, }, }, name: series[0].name, @@ -163,7 +173,7 @@ export default { { type: "bar", type: "bar", - barWidth: _self.bar_width, + barWidth: self.bar_width, itemStyle: { normal: { color: function(params) { @@ -175,17 +185,17 @@ export default { [ { offset: 0, - color: _self.colors[1], // 0% 处的颜色 + color: self.colors[1], // 0% 处的颜色 }, { offset: 1, - color: _self.colors[1], // 100% 处的颜色 + color: self.colors[1], // 100% 处的颜色 }, ], false ); }, - barBorderRadius: _self.bar_border_radius, + barBorderRadius: self.bar_border_radius, }, }, name: series[1].name, diff --git a/src/pages/authority/organization/organizationdetail.vue b/src/pages/authority/organization/organizationdetail.vue index b709e0d..a928012 100644 --- a/src/pages/authority/organization/organizationdetail.vue +++ b/src/pages/authority/organization/organizationdetail.vue @@ -317,9 +317,14 @@ export default { color: #242c43; } .organtable { + display: flex; + flex-direction: column; + justify-content: flex-start; + align-items: stretch; margin-top: 20px; + margin-bottom: 40px; width: 100%; - height: calc(100% - 210px); + min-height: calc(100% - 250px); background-color: #fff; box-shadow: 0px 3px 6px 0px #f4f7fc; border-radius: 12px; @@ -345,4 +350,10 @@ export default { .organtable .elinput { float: right; } +.organtable .apass_table { + flex-grow: 1; +} +.organtable .comments_pagination { + margin-top: 20px; +} diff --git a/src/pages/data-analysis/my-service.vue b/src/pages/data-analysis/my-service.vue index 0765e66..56ba837 100644 --- a/src/pages/data-analysis/my-service.vue +++ b/src/pages/data-analysis/my-service.vue @@ -814,8 +814,10 @@ export default { + + -- 2.26.0