diff --git a/src/config/getData2.js b/src/config/getData2.js index 4eb8bd2..be4f0f3 100644 --- a/src/config/getData2.js +++ b/src/config/getData2.js @@ -3879,4 +3879,11 @@ export const sortingAndPackaging = () => post('api/cockpit/sortingAndPackaging', */ export const homepageDataLeft = () => post('api/dashboard/homepageDataLeft', {}) export const homepageDataRight = () => post('api/dashboard/homepageDataRight', {}) +// 大屏-中间设备运行情况 export const deviceCondition = () => post('api/cockpit/deviceCondition', {}) +// 出、入窑输送线弹窗 +export const inOutKilnDetail = () => post('api/cockpit/inOutKilnDetail', {}) +// 窑弹出框 +export const kilnDetail = () => post('api/cockpit/kilnDetail', {}) +// 大屏-两侧图表 +export const screenTableData = () => post('api/cockpit/screenTableData', {}) diff --git a/src/config/mork2.js b/src/config/mork2.js index 7f17c21..0a4e61c 100644 --- a/src/config/mork2.js +++ b/src/config/mork2.js @@ -615,6 +615,24 @@ export const deviceCondition = () => { 'error': 0, 'encoder_qty': 100, 'barcode': 10010 + }, + { + 'mode': 3, + 'move': 2, + 'color_status': 2, + 'device_code': 'FJ01MDW01', + 'error': 0, + 'encoder_qty': 100, + 'barcode': 10010 + }, + { + 'mode': 3, + 'move': 2, + 'color_status': 2, + 'device_code': 'FJ01MDW02', + 'error': 0, + 'encoder_qty': 100, + 'barcode': 10010 } ], 'PressMachineList': [ @@ -906,3 +924,144 @@ export const deviceCondition = () => { } return res } +/** + * 出、入窑输送线弹窗 + */ +export const inOutKilnDetail = () => { + let res = [ + { + 'stat': '1', + 'pointName': '入窑输送线', + 'workTime': '3.5', + 'palletNum': '0', + 'materialNum': '25000', + 'deliveredPalletNum': '0', + 'deliveredMaterialNum': null + }, + { + 'stat': '1', + 'pointName': '出窑输送线', + 'workTime': '3.5', + 'palletNum': '0', + 'materialNum': '25000', + 'deliveredPalletNum': '0', + 'deliveredMaterialNum': '25000' + } + ] + return res +} +/** + * 窑弹出框 + */ +export const kilnDetail = () => { + let res = { + 'pointName': '窑1', + 'workTime': 'string', + 'palletNum': 'string', + 'materialNum': 'string', + 'produceNum': 'string', + 'materialInfos': [ + 'string' + ] + } + return res +} +/** + * 大屏-两侧图表 + */ +export const screenTableData = () => { + let res = { + 'deviceErrorRecordList': [ + { + 'deviceCode': 'YJ06', + 'deviceName': '压机06', + 'errorInfo': '故障', + 'errorTime': '2024-02-28 13:02:44' + }, + { + 'deviceCode': 'YJ01', + 'deviceName': '压机01', + 'errorInfo': '故障', + 'errorTime': '2024-02-28 13:02:44' + }, + { + 'deviceCode': 'YJ02', + 'deviceName': '压机02', + 'errorInfo': '故障', + 'errorTime': '2024-02-28 13:02:44' + }, + { + 'deviceCode': 'YJ03', + 'deviceName': '压机03', + 'errorInfo': '故障', + 'errorTime': '2024-02-28 13:02:44' + }, + { + 'deviceCode': 'YJ03', + 'deviceName': '压机03', + 'errorInfo': '故障', + 'errorTime': '2024-02-28 13:02:44' + } + ], + 'mixingList': [ + { + 'materialName': '004', + 'planQty': '0', + 'realQty': '0' + } + ], + 'historyList': [ + { + 'produceDate': '03-06', + 'suppressedNum': '800', + 'finishedNum': '0' + } + ], + 'deviceErrorList': [ + { + 'deviceName': '压机03', + 'errorNum': '2' + }, + { + 'deviceName': '压机06', + 'errorNum': '1' + }, + { + 'deviceName': '压机01', + 'errorNum': '1' + }, + { + 'deviceName': '压机02', + 'errorNum': '1' + } + ], + 'deviceRunStat': { + 'total': 240, + 'runNum': 0, + 'unProducedNum': 240, + 'freeNum': 0, + 'errorNum': 0 + }, + 'productList': [ + { + 'materialName': '001', + 'requiredNum': '1000', + 'suppressedNum': '378', + 'finishedNum': '0' + }, + { + 'materialName': '003', + 'requiredNum': '1000', + 'suppressedNum': '756', + 'finishedNum': '0' + }, + { + 'materialName': '004', + 'requiredNum': '6000', + 'suppressedNum': '7846', + 'finishedNum': '0' + } + ] + } + return res +} diff --git a/src/pages/modules/home/devicepop.vue b/src/pages/modules/home/devicepop.vue index 3c7e466..9cfcb4b 100644 --- a/src/pages/modules/home/devicepop.vue +++ b/src/pages/modules/home/devicepop.vue @@ -1,42 +1,63 @@ @@ -44,15 +65,12 @@ export default { name: 'devicepop', props: { - type: String, pkId: String, + type: String, data: Object, direction: String }, methods: { - closePop () { - this.$emit('closePop') - } } } @@ -129,10 +147,10 @@ export default { margin 0 7px 5px 7px padding 0 5px 0 5px .popup_label - width 80px + width 120px _font(12px, 36px, #fff,,left) .popup_val - _wh(calc(100% - 80px), 100%) + _wh(calc(100% - 120px), 100%) _font(12px, 15px, #0ff,,left) word-break break-all _fj(center) diff --git a/src/pages/modules/home/index.vue b/src/pages/modules/home/index.vue index fbaaaea..b850c19 100644 --- a/src/pages/modules/home/index.vue +++ b/src/pages/modules/home/index.vue @@ -100,16 +100,17 @@
  • 报警时间
  • - +
      -
    • +
    • {{e.deviceCode}}
      {{e.deviceName}}
      -
      + +
      {{e.errorInfo}}
      +
      {{e.errorTime}}
    @@ -124,7 +125,7 @@