diff --git a/src/assets/js/getData2.js b/src/assets/js/getData2.js index 4ddf151..7a35003 100644 --- a/src/assets/js/getData2.js +++ b/src/assets/js/getData2.js @@ -24,6 +24,10 @@ export const workshopCondition = () => post('api/cockpit/workshopCondition', {}) // 'agv_1': {'device_code': '1', 'status': '1'}, // 'agv_2': {'device_code': '2', 'status': '1'} // }, +// 'KilnPassage2InfoList': { +// 'LQD01': {'car_sum': '1', 'status': '1'}, +// 'HCD01': {'car_sum': '2', 'status': '1'} +// }, // 'SemiFinishedProductShelfList': [ // { // 'point_name': '半成品货位12', diff --git a/src/pages/modules/homepage/two.vue b/src/pages/modules/homepage/two.vue index b47da61..76d4fab 100644 --- a/src/pages/modules/homepage/two.vue +++ b/src/pages/modules/homepage/two.vue @@ -97,35 +97,32 @@ -
+
-
-
- -
-
+
+
-
+ +
+
-
+
@@ -466,8 +463,10 @@ export default { ManipulatorInfoList: [], // 机械手数据 PackagingLineList: [], // 包装线数据 kilneye4InfoList: [], // 窑口4个位置 - LQD01: [], // 冷却道数据 - HCD01: [], // 回车道数据 + LQD01: {}, // 冷却道数据 + HCD01: {}, // 回车道数据 + arrLQD01: [], + arrHCD01: [], IoKilnTrussTask: [], // 进窑桁架和出窑桁架数据 AGVStatusList: {} // agv状态 } @@ -532,8 +531,12 @@ export default { this.kilneye4InfoList = [...res.result.kilneye4InfoList] } if (res.result.hasOwnProperty('KilnPassage2InfoList')) { - this.LQD01 = [...res.result.KilnPassage2InfoList.LQD01] - this.HCD01 = [...res.result.KilnPassage2InfoList.HCD01] + this.LQD01 = res.result.KilnPassage2InfoList.LQD01 + this.HCD01 = res.result.KilnPassage2InfoList.HCD01 + this.arrLQD01 = [] + this.arrHCD01 = [] + this.setArr(this.arrLQD01, Number(this.LQD01.car_sum)) + this.setArr(this.arrHCD01, Number(this.HCD01.car_sum)) } if (res.result.hasOwnProperty('IoKilnTrussTask')) { this.IoKilnTrussTask = [...res.result.IoKilnTrussTask] @@ -543,6 +546,11 @@ export default { } } }, + setArr (arr, num) { + for (let i = 0; i < num; i++) { + arr.push('1') + } + }, async _sortingAndPackagingPopover () { let res = await sortingAndPackagingPopover() if (res.code === 200) {