diff --git a/src/components/apass-table.vue b/src/components/apass-table.vue index 6b61586bdf3cdba97f7924ee067b832d5a36e76a..5590a1269d07844caf76bbaeec12e928ac7b33b5 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 b709e0d8bb78496bb424c128f735fa0066f10305..a928012bf67db23aeee0a432c5c039ce0deef855 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 0765e66081c66d5a36943514687c7f6678917c79..56ba8374ac68ce6f8a32fb58b8da5f0a5d31a245 100644 --- a/src/pages/data-analysis/my-service.vue +++ b/src/pages/data-analysis/my-service.vue @@ -814,8 +814,10 @@ export default { + +