diff --git a/src/components/baozuo-demo/BottomCharts.vue b/src/components/baozuo-demo/BottomCharts.vue index f763195..4339c89 100644 --- a/src/components/baozuo-demo/BottomCharts.vue +++ b/src/components/baozuo-demo/BottomCharts.vue @@ -51,6 +51,7 @@ export default { // 计算完成百分比 const completionRate = ((completedQuantity / orderQuantity) * 100).toFixed(2) + '%'; + // eslint-disable-next-line no-inner-declarations function createProgressCircle(percentage) { let color, content; if (percentage === 0) { @@ -89,6 +90,7 @@ export default { const completionRate3 = Math.floor(Math.random() * 100); const newDataItem = []; if(_this.dataType == '整机') { + // eslint-disable-next-line no-const-assign newDataItem = [ `PS-${formattedDate2}${String(i).padStart(3, '0')}`, // 编号 title, // 固定值 @@ -103,9 +105,11 @@ export default { createProgressCircle(completionRate2), completedQuantity // 完成数量 ]; + // eslint-disable-next-line brace-style } // 创建新的数据项 else if (title === 'U1机芯') { + // eslint-disable-next-line no-const-assign newDataItem = [ `PS-${formattedDate2}${String(i).padStart(3, '0')}`, // 编号 title, // 固定值 @@ -118,6 +122,7 @@ export default { completedQuantity // 完成数量 ]; } else { + // eslint-disable-next-line no-const-assign newDataItem = [ `PS-${formattedDate2}${String(i).padStart(3, '0')}`, // 编号 title, // 固定值 @@ -244,7 +249,7 @@ export default { top: 50%; left: 50%; transform: translate(-50%, -50%); - font-size: 0.16rem; + font-size: 0.2rem; color: #333; } diff --git a/src/components/baozuo-demo/CenterCmp.vue b/src/components/baozuo-demo/CenterCmp.vue index 1d38dd3..26bbd5f 100644 --- a/src/components/baozuo-demo/CenterCmp.vue +++ b/src/components/baozuo-demo/CenterCmp.vue @@ -5,7 +5,7 @@
{{ testchartData[0].value }}
- +{{ testchartData[0].value }}
+{{ testchartData[0].name }}