diff --git a/src/views/cs/index3.vue b/src/views/cs/index3.vue index fd32a29..6077f38 100644 --- a/src/views/cs/index3.vue +++ b/src/views/cs/index3.vue @@ -14,16 +14,16 @@
KWh
-
{{ CData.length }}
-
{{ HData.length }}
+
{{ CData.map(e=>parseFloat(e.quantity)||0).reduce((a,b)=>a+b,0) }}
+
{{ HData.map(e=>parseFloat(e.quantity)||0).reduce((a,b)=>a+b,0) }}
{{ expend }}
{{ agvData.length }}
计划生产数量:
实际生产数量:
-
{{ proData.totalRecordCount }}
-
{{ proData.sumChe }}
+
{{ proData.sumChe }}
+
{{ proData.totalRecordCount }}
{{ percent }}
计划达成率
@@ -71,11 +71,11 @@
- {{ item.dollyNumber }} + {{ item.Intheoven }}
- {{ item.expend }}KWh + {{ (item.expend/item.yield).toFixed(2) }}KWh
@@ -145,7 +145,8 @@ export default { this.expend = e.map(v => v.expend).reduce((a, b) => a + b, 0).toFixed(2) }) agvdata().then(e => { - this.agvData = e.Data + console.log(e) + this.agvData = e.Data.filter(v=>v.State===1) }) PlanAchievementRate().then(e => { this.proData = e.data @@ -253,7 +254,6 @@ export default { this.$refs.chart1.setData(option) }) getHourProductionLists().then(e => { - console.log(e) let option1 = { grid: { top: '15%', @@ -323,6 +323,12 @@ export default { ], series: [ { + label: { + show: true, + position: 'top', + formatter: "{c}", + color: "#fff" + }, name: '产量', type: 'line', smooth: true, //平滑曲线显示