From 35bcb23920e076ae279d037f9a5c8d27e4d608e4 Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Fri, 29 Dec 2023 09:26:07 +0800 Subject: [PATCH] 12.29 --- src/store/modules/websocket.js | 32 ++- src/views/databoard/components/GasChart.vue | 11 + src/views/databoard/components/Header.vue | 8 +- src/views/databoard/components/ISRAChart.vue | 221 +++++++----------- .../databoard/components/SelectorBtnGroup.vue | 4 +- .../databoard/deepProcessing/BottomTwo.vue | 29 +++ .../databoard/deepProcessing/OrderStatus.vue | 14 ++ .../databoard/deepProcessing/TopThree.vue | 29 +++ .../databoard/deepProcessing/YieldRate.vue | 14 ++ src/views/databoard/deepProcessing/index.vue | 145 ++++++++++++ src/views/databoard/kiln/EnergeCost.vue | 15 +- src/views/databoard/kiln/LeftFour.vue | 2 +- src/views/databoard/kiln/MaterialCost.vue | 97 +++++--- src/views/databoard/kiln/index.vue | 37 +-- src/views/databoard/utils/dcs.js | 34 --- src/views/databoard/utils/mes.js | 34 --- src/views/databoard/utils/wsInterface.js | 100 ++++++++ src/views/databoard/wholePlant/LeftTwo.vue | 29 +++ src/views/databoard/wholePlant/MiddleTwo.vue | 29 +++ .../databoard/wholePlant/OrderStatus.vue | 14 ++ src/views/databoard/wholePlant/RightTwo.vue | 29 +++ src/views/databoard/wholePlant/YieldRate.vue | 14 ++ src/views/databoard/wholePlant/index.vue | 150 ++++++++++++ 23 files changed, 809 insertions(+), 282 deletions(-) create mode 100644 src/views/databoard/deepProcessing/BottomTwo.vue create mode 100644 src/views/databoard/deepProcessing/OrderStatus.vue create mode 100644 src/views/databoard/deepProcessing/TopThree.vue create mode 100644 src/views/databoard/deepProcessing/YieldRate.vue create mode 100644 src/views/databoard/deepProcessing/index.vue delete mode 100644 src/views/databoard/utils/dcs.js delete mode 100644 src/views/databoard/utils/mes.js create mode 100644 src/views/databoard/utils/wsInterface.js create mode 100644 src/views/databoard/wholePlant/LeftTwo.vue create mode 100644 src/views/databoard/wholePlant/MiddleTwo.vue create mode 100644 src/views/databoard/wholePlant/OrderStatus.vue create mode 100644 src/views/databoard/wholePlant/RightTwo.vue create mode 100644 src/views/databoard/wholePlant/YieldRate.vue create mode 100644 src/views/databoard/wholePlant/index.vue diff --git a/src/store/modules/websocket.js b/src/store/modules/websocket.js index 3191b86e..7dde1bb3 100644 --- a/src/store/modules/websocket.js +++ b/src/store/modules/websocket.js @@ -1,6 +1,10 @@ const state = { - fanFrequencyInfo:{}, - kilnInfo:{} + fanFrequencyInfo:{},// 分机运行频率 + kilnInfo:{},// 窑炉信息 + gasInfo:{},// 天然气 + + israKiln:[],// ISRA缺陷检测 + material:[]// 原料 }; const mutations = { SET_FANFREQUENCYINFO: (state, fanFrequencyInfo) => { @@ -8,6 +12,17 @@ const mutations = { }, SET_KILNINFO: (state, kilnInfo) => { state.kilnInfo = kilnInfo + }, + SET_GASINFO: (state, gasInfo) => { + state.gasInfo = gasInfo + }, + + + SET_ISRAKILN: (state, israKiln) => { + state.israKiln = israKiln + }, + SET_MATERIAL: (state, material) => { + state.material = material } }; const actions = { @@ -16,7 +31,18 @@ const actions = { }, setKilnInfo({ commit }, kilnInfo) { commit('SET_KILNINFO', kilnInfo.payload) - } + }, + setGasInfo({ commit }, gasInfo) { + commit('SET_GASINFO', gasInfo.payload) + }, + + + setIsraKiln({ commit }, israKiln) { + commit('SET_ISRAKILN', israKiln.payload) + }, + setMaterial({ commit }, material) { + commit('SET_MATERIAL', material.payload) + }, }; export default { namespaced: true, diff --git a/src/views/databoard/components/GasChart.vue b/src/views/databoard/components/GasChart.vue index 366c7b10..5b70f50e 100644 --- a/src/views/databoard/components/GasChart.vue +++ b/src/views/databoard/components/GasChart.vue @@ -116,6 +116,9 @@ export default { sidebarStatus() { return this.$store.state.app.sidebar.opened; }, + gasChartMsg() { + return this.$store.state.websocket.gasInfo + } }, watch: { sidebarStatus(val) { @@ -127,6 +130,14 @@ export default { this.chart.setOption(this.option); }, 500); }, + gasChartMsg: { + handler(newVal, oldVal) { + console.log(newVal) + // this.chartData = newVal + console.log('newVal============') + // this.updateChart() + } + } }, mounted() { this.$el.addEventListener('resize', () => { diff --git a/src/views/databoard/components/Header.vue b/src/views/databoard/components/Header.vue index 8ac700cc..3312fc46 100644 --- a/src/views/databoard/components/Header.vue +++ b/src/views/databoard/components/Header.vue @@ -7,9 +7,7 @@