diff --git a/src/views/cs/index2.vue b/src/views/cs/index2.vue index cd41368..ae15786 100644 --- a/src/views/cs/index2.vue +++ b/src/views/cs/index2.vue @@ -83,7 +83,7 @@ 生产中
-
{{ i.equName }}
+
{{ (i||{}).equName }}
设备产量: {{ i.quantity }}
设备状态: {{ parseFloat(i.quantity) > 0 ? '运行' : '停机' @@ -96,10 +96,10 @@ :style="`top: ${equipmentLocation[k].top}%;left: ${equipmentLocation[k].left}%;`">
-
{{ i.equName }}
-
设备产量: {{ i.quantity }}
+
{{ (i||{}).equName }}
+
设备产量: {{ (i||{}).quantity }}
设备状态: {{ - parseFloat(i.quantity) > 0 ? '运行' : '停机' + parseFloat((i||{}).quantity) > 0 ? '运行' : '停机' }}
@@ -108,7 +108,7 @@ v-for="(i,k) in ringLocation">
-
@@ -350,6 +350,8 @@ export default { }, getData() { + + let time = parseTime(new Date(), '{h}-{i}').split('-') let i = parseFloat(time[0]) || 0 let s = parseFloat(time [1]) || 0 @@ -382,6 +384,8 @@ export default { } this.hfData = hfArr this.equipmentData = equipmentArr + console.log(this.hfData) + console.log(this.equipmentData) }) } }, diff --git a/src/views/cs/index3.vue b/src/views/cs/index3.vue index 2d17b18..9b1ea8a 100644 --- a/src/views/cs/index3.vue +++ b/src/views/cs/index3.vue @@ -134,7 +134,7 @@ export default { methods: { getData() { dryRoomDataCarousel().then(e => { - this.table1Data = e.data.dryingroomList || [] + this.table1Data = e.data.dryingroomList.filter(v=>parseFloat(v.expend/v.yield)) || [] }) EnergyExpend().then(e => { this.expend = e.map(v => v.expend).reduce((a, b) => a + b, 0).toFixed(2) @@ -206,7 +206,8 @@ export default { axisLabel: { color: '#ccc' }, - data: e.checkList.map(v => v.machineName), + // data: e.checkList.map(v => v.machineName), + data: e.checkList.map((v,k) => '产品'+k), }, series: [ {