@@ -47,13 +49,14 @@ import BalanceChart from '../balanceChart';
import basicPageMixin from '@/mixins/lb/basicPageMixin';
import AnalysisChart from './chart.vue';
import { parseTime } from '@/utils/ruoyi'
+import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
export default {
components: {
BalanceChart,
AnalysisChart,
},
- mixins: [basicPageMixin],
+ mixins: [basicPageMixin, tableHeightMixin],
data() {
return {
activeName: 'table',
@@ -176,6 +179,11 @@ export default {
// const p = this.tableProps
// const d = this.tableData
// debugger;
+ if (this.activeName == 'graph') {
+ this.$nextTick(() => {
+ this.$refs['analysisChart'].initChart()
+ })
+ }
this.ready = true;
},
diff --git a/src/views/core/base/factory/index.vue b/src/views/core/base/factory/index.vue
index ba0ea31e..d8867ac6 100644
--- a/src/views/core/base/factory/index.vue
+++ b/src/views/core/base/factory/index.vue
@@ -9,7 +9,8 @@
:table-props="tableProps"
:page="listQuery.pageNo"
:limit="listQuery.pageSize"
- :table-data="tableData">
+ :table-data="tableData"
+ :max-height="tableH">
{
- this.tableH = this.tableHeight(240)
- })
+ // window.addEventListener('resize', () => {
+ // this.tableH = this.tableHeight(240)
+ // })
this.getList();
},
methods: {
diff --git a/src/views/equipment/analysis/Statistics/index.vue b/src/views/equipment/analysis/Statistics/index.vue
index 353685da..fd2049cb 100644
--- a/src/views/equipment/analysis/Statistics/index.vue
+++ b/src/views/equipment/analysis/Statistics/index.vue
@@ -9,7 +9,8 @@
:table-props="tableProps"
:page="listQuery.pageNo"
:limit="listQuery.pageSize"
- :table-data="tableData">
+ :table-data="tableData"
+ :max-height="tableH">
v),
tableData: [],
listQuery: {
- pageSize: 10,
+ pageSize: 20,
pageNo: 1,
total: 1,
recordTime: [
diff --git a/src/views/equipment/analysis/efficiency/components/pieChart.vue b/src/views/equipment/analysis/efficiency/components/pieChart.vue
index a79fae2a..9e13b150 100644
--- a/src/views/equipment/analysis/efficiency/components/pieChart.vue
+++ b/src/views/equipment/analysis/efficiency/components/pieChart.vue
@@ -75,6 +75,12 @@ export default {
},
tooltip: {
trigger: 'item',
+ formatter: (v) => {
+ const num = String(v.value)?.split('.').length === 2 ? v.value?.toFixed(2) : v.value
+ return `
+ ${v.name}: ${num}
+
`
+ }
},
legend: {
show: false,
diff --git a/src/views/equipment/analysis/exception/index.vue b/src/views/equipment/analysis/exception/index.vue
index 783ace7f..1a44c76f 100644
--- a/src/views/equipment/analysis/exception/index.vue
+++ b/src/views/equipment/analysis/exception/index.vue
@@ -19,7 +19,7 @@
:page="queryParams.pageNo"
:limit="queryParams.pageSize"
:table-data="list"
- max-height="600"
+ :max-height="tableH"
@emitFun="handleEmitFun">
@@ -34,7 +34,7 @@
@@ -606,8 +606,10 @@ export default {
background-image: linear-gradient(to right, #4573fe, #47f8dc);
}
::v-deep .el-progress__text {
+ width: 50px;
margin-top: -70px;
- margin-left: 820px;
+ margin-left: 834px;
+ text-align: right;
// background-color: unset;
// background-image: linear-gradient(to right, #4573fe, #47f8dc);
}
diff --git a/src/views/OperationalOverview/coldBoard.vue b/src/views/OperationalOverview/coldBoard.vue
index f67eb995..71b049fd 100644
--- a/src/views/OperationalOverview/coldBoard.vue
+++ b/src/views/OperationalOverview/coldBoard.vue
@@ -1,7 +1,7 @@
@@ -41,10 +41,11 @@
-->