diff --git a/src/components/boxes/FanRuntime.vue b/src/components/boxes/FanRuntime.vue index b9a91da..6e81dbb 100644 --- a/src/components/boxes/FanRuntime.vue +++ b/src/components/boxes/FanRuntime.vue @@ -14,13 +14,14 @@ 设备状态 - - + - + + - + + + @@ -30,17 +34,17 @@ export default { @import "../../assets/styles/functions"; .flex-1 { - flex: 1; - // background: #eee; + flex: 1; + // background: #eee; } h3 { - margin: 0; - font-family: sans-serif; - font-weight: 400; - font-size: adjust(14px); - letter-spacing: adjust(1px); - color: #52fff8; - margin: adjust(12px) 0; + margin: 0; + font-family: sans-serif; + font-weight: 400; + font-size: adjust(14px); + letter-spacing: adjust(1px); + color: #52fff8; + margin: adjust(12px) 0; } diff --git a/src/components/charts/BarChart.vue b/src/components/charts/BarChart.vue index f6da90c..a0e5f65 100644 --- a/src/components/charts/BarChart.vue +++ b/src/components/charts/BarChart.vue @@ -1,6 +1,6 @@ diff --git a/src/components/charts/LineChart.vue b/src/components/charts/LineChart.vue index 73ec952..f5c6e23 100644 --- a/src/components/charts/LineChart.vue +++ b/src/components/charts/LineChart.vue @@ -134,7 +134,7 @@ export default { show: false, }, axisLabel: { - color: "#ffffff", + color: "#fff9", fontSize: adjust(6), lineHeight: adjust(1), margin: adjust(8), @@ -253,11 +253,22 @@ li { ul { margin-left: adjust(8px); - padding-left: adjust(8px); + padding: 0 adjust(8px); + // background: #eee3; + // flex: 1; + // width: adjust(154px); + display: flex; + overflow-x: auto; + padding-bottom: adjust(2px); +} + +li:not(:last-child) { + margin-right: adjust(16px); } li { position: relative; + width: 40px; } li::before { @@ -305,18 +316,6 @@ li:nth-child(11)::before { background: #98f; } -ul { - flex: 1; - width: adjust(154px); - display: flex; - overflow-x: auto; - padding-bottom: adjust(2px); -} - -li:not(:last-child) { - margin-right: adjust(8px); -} - .line-chart__wrapper { position: relative; background: #7771; @@ -335,7 +334,8 @@ li:not(:last-child) { font-family: Ubuntu, sans-serif; // background: #fff2; padding: 0; - max-width: 100%; + // max-width: 100%; + width: 60%; align-items: flex-start; justify-content: flex-end; } diff --git a/src/store/index.js b/src/store/index.js index 1a17066..612cad4 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -16,9 +16,9 @@ export default new Vuex.Store({ kilnBtm2: {}, xiCao1: {}, xiCao2: {}, - kilnWaterIn: {}, - kilnWaterOut: {}, - fan: {}, + kilnWaterIn: [], + kilnWaterOut: [], + fan: [], fireDirection: "南火", kilnPressure: '99', fireChangeTime: '13:30:11', @@ -33,107 +33,107 @@ export default new Vuex.Store({ switch (payload.target) { case 'oil-1': { state.oilTable1 = payload.data - console.log('更换' + payload.target + '的数据' + payload.data) + //console.log('更换' + payload.target + '的数据' + payload.data) break } case 'oil-2': { state.oilTable2 = payload.data - console.log('更换' + payload.target + '的数据' + payload.data) + //console.log('更换' + payload.target + '的数据' + payload.data) break } case 'gas-1': { state.gasTable1 = payload.data - console.log('更换' + payload.target + '的数据' + payload.data) + //console.log('更换' + payload.target + '的数据' + payload.data) break } case 'gas-2': { state.gasTable2 = payload.data - console.log('更换' + payload.target + '的数据' + payload.data) + //console.log('更换' + payload.target + '的数据' + payload.data) break } case 'kiln-top-1': { state.kilnTop1 = payload.data - console.log('更换' + payload.target + '的数据' + payload.data) + //console.log('更换' + payload.target + '的数据' + payload.data) break } case 'kiln-top-2': { state.kilnTop2 = payload.data - console.log('更换' + payload.target + '的数据' + payload.data) + //console.log('更换' + payload.target + '的数据' + payload.data) break } case 'kiln-btm-1': { state.kilnBtm1 = payload.data - console.log('更换' + payload.target + '的数据' + payload.data) + //console.log('更换' + payload.target + '的数据' + payload.data) break } case 'kiln-btm-2': { state.kilnBtm2 = payload.data - console.log('更换' + payload.target + '的数据' + payload.data) + //console.log('更换' + payload.target + '的数据' + payload.data) break } case 'kiln-water-in': { state.kilnWaterIn = payload.data - console.log('更换' + payload.target + '的数据' + payload.data) + //console.log('更换' + payload.target + '的数据' + payload.data) break } case 'kiln-water-out': { state.kilnWaterOut = payload.data - console.log('更换' + payload.target + '的数据' + payload.data) + //console.log('更换' + payload.target + '的数据' + payload.data) break } case 'water-in-temp': { state.waterInTemp = payload.data - console.log('更换' + payload.target + '的数据' + payload.data) + //console.log('更换' + payload.target + '的数据' + payload.data) break } case 'water-out-temp': { state.waterOutTemp = payload.data - console.log('更换' + payload.target + '的数据' + payload.data) + //console.log('更换' + payload.target + '的数据' + payload.data) break } case 'xicao-1': { state.xiCao1 = payload.data - console.log('更换' + payload.target + '的数据' + payload.data) + //console.log('更换' + payload.target + '的数据' + payload.data) break } case 'xicao-2': { state.xiCao2 = payload.data - console.log('更换' + payload.target + '的数据' + payload.data) + //console.log('更换' + payload.target + '的数据' + payload.data) break } case 'fan': { state.fan = payload.data - console.log('更换' + payload.target + '的数据' + payload.data) + //console.log('更换' + payload.target + '的数据' + payload.data) break } case 'fire-direction': { state.fireDirection = payload.data - console.log('更换' + payload.target + '的数据' + payload.data) + //console.log('更换' + payload.target + '的数据' + payload.data) break } case 'last-fire-change-time': { state.lastFireChangeTime = payload.data - console.log('更换' + payload.target + '的数据' + payload.data) + //console.log('更换' + payload.target + '的数据' + payload.data) break } case 'kiln-pressure': { state.kilnPressure = payload.data - console.log('更换' + payload.target + '的数据' + payload.data) + //console.log('更换' + payload.target + '的数据' + payload.data) break } case 'fire-change-time': { state.fireChangeTime = payload.data - console.log('更换' + payload.target + '的数据' + payload.data) + //console.log('更换' + payload.target + '的数据' + payload.data) break } case 'water-in-temp': { state.waterInTemp = payload.data - console.log('更换' + payload.target + '的数据' + payload.data) + //console.log('更换' + payload.target + '的数据' + payload.data) break } case 'water-out-temp': { state.waterOutTemp = payload.data - console.log('更换' + payload.target + '的数据' + payload.data) + //console.log('更换' + payload.target + '的数据' + payload.data) break } } diff --git a/src/utils/wsClass.js b/src/utils/wsClass.js index 09c474f..734f8d8 100644 --- a/src/utils/wsClass.js +++ b/src/utils/wsClass.js @@ -42,10 +42,10 @@ export default class WsClient { 'kilnTempTopT2': 'kiln-top-2', 'kilnTempBottomT1': 'kiln-btm-1', 'kilnTempBottomT2': 'kiln-btm-2', - 'kilnTempWaterT1': 'kiln-water-in', - 'kilnTempWaterT2': 'kiln-water-out', - 'kilnTempTinbathT1': 'kiln-water-in', - 'kilnTempTinbathT2': 'kiln-water-out', + 'inWater': 'kiln-water-in', + 'outWater': 'kiln-water-out', + 'kilnTempTinbathT1': 'xicao-1', + 'kilnTempTinbathT2': 'xicao-2', 'kilnGasT1': 'gas-1', 'kilnGasT2': 'gas-2', 'kilnOilT1': 'oil-1',