From 8ac830e90a355ca253c28e6df8176d5e7fb2753e Mon Sep 17 00:00:00 2001 From: binbin_pan Date: Sun, 28 Apr 2024 15:43:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/home/fixMaterialAnalysisDialog.vue | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/sgzb-screen/src/components/home/fixMaterialAnalysisDialog.vue b/sgzb-screen/src/components/home/fixMaterialAnalysisDialog.vue index c6531dca..f936b49f 100644 --- a/sgzb-screen/src/components/home/fixMaterialAnalysisDialog.vue +++ b/sgzb-screen/src/components/home/fixMaterialAnalysisDialog.vue @@ -148,7 +148,7 @@ export default { }, { label: '维修状态', - prop: 'repairStatus', + prop: 'statusName', align: 'center' } ], @@ -224,6 +224,10 @@ export default { if (key === 'num2' && data[key]) pieData.push({ value: data[key], name: '维修合格' }) if (key === 'num3' && data[key]) pieData.push({ value: data[key], name: '维修报废' }) } + pieData.sort((a, b) => { + const order = ['待维修', '维修合格', '维修报废']; + return order.indexOf(a.name) - order.indexOf(b.name); + }); data.accessVoList.forEach(item => { if (item.partName && item.partNum) { barData.yAxisData.push(item.partName) @@ -233,7 +237,6 @@ export default { if (barData.yAxisData.length > 5) barData.yAxisData = barData.yAxisData.slice(0, 5) if (barData.seriesData.length > 5) barData.seriesData = barData.seriesData.slice(0, 5) - console.log('🚀 ~ getChart ~ barData:', barData); this.myPieChart(pieData) this.myBarChart(barData) }, @@ -366,9 +369,6 @@ export default { background-repeat: no-repeat; background-position: 0 10px; padding-left: 10px; - .el-form--inline .el-form-item__label { - color: red; - } .chart { width: 39vw; height: 400px; @@ -378,7 +378,4 @@ export default { margin-left: 60px; } } -.el-form-item__label { - font-size: large !important; -} \ No newline at end of file