This commit is contained in:
2024-01-04 16:37:14 +08:00
parent da2999e67c
commit 6ea650e7eb
33 changed files with 1236 additions and 142 deletions

View File

@@ -4,7 +4,7 @@ const state = {
gasInfo:{},// 天然气流量图
sumGasInfo: {},// 天然气总量
israKiln:[],// ISRA缺陷检测
israKiln:[],// ISRA窑炉缺陷检测
material:[],// 原料
energyInfo: {
elecQty1: '',
@@ -14,11 +14,17 @@ const state = {
energyWeekTrend:[],
energyMonthTrend:[],
energyYearTrend:[],// 能耗图
energyMonitoring: [], // 能源监控
exhaustGasInfo:{}, // 烟气
gasChartDayTrend:{}, // 烟气
gasChartWeekTrend:{}, // 烟气
gasChartMonthTrend:{}, // 烟气
gasChartYearTrend:{} // 烟气
gasChartYearTrend:{}, // 烟气
israDayStatistic: [],//缺陷统计
israWeekStatistic: [],//缺陷统计
israMonthStatistic: [],//缺陷统计
israYearStatistic: [],//缺陷统计
productline: [] // 产线产量及良品率
};
const mutations = {
SET_FANFREQUENCYINFO: (state, fanFrequencyInfo) => {
@@ -60,6 +66,9 @@ const mutations = {
state.energyYearTrend = energyTrend.year
}
},
SET_ENERGY_MONITORING: (state, energyMonitoring) => {
state.energyMonitoring = energyMonitoring
},
SET_EXHAUSTGASINFO: (state, exhaustGasInfo) => {
state.exhaustGasInfo = exhaustGasInfo
},
@@ -68,6 +77,15 @@ const mutations = {
state.gasChartWeekTrend = exhaustGasChart.gasChartWeekTrend
state.gasChartMonthTrend = exhaustGasChart.gasChartMonthTrend
state.gasChartYearTrend = exhaustGasChart.gasChartYearTrend
},
SET_DEFECTCHART: (state, israStatistic) => {
state.israDayStatistic = israStatistic.dayStatistic
state.israWeekStatistic = israStatistic.weekStatistic
state.israMonthStatistic = israStatistic.monthStatistic
state.israYearStatistic = israStatistic.yearStatistic
},
SET_PRODUCTLINE: (state, productline) => {
state.productline = productline
}
};
const actions = {
@@ -97,12 +115,21 @@ const actions = {
setEnergyTrend({ commit }, energyTrend) {
commit('SET_ENERGYTREND', energyTrend.payload)
},
setEnergyMonitoring({ commit }, energyMonitoring) {
commit('SET_ENERGY_MONITORING', energyMonitoring.payload)
},
setExhaustGasInfo({ commit }, exhaustGasInfo) {
commit('SET_EXHAUSTGASINFO', exhaustGasInfo.payload)
},
setExhaustGasChart({ commit }, exhaustGasChart) {
commit('SET_EXHAUSTGASCHART', exhaustGasChart.payload)
},
setDefectChart({ commit }, israStatistic) {
commit('SET_DEFECTCHART', israStatistic.payload)
},
setProductline({ commit }, productline) {
commit('SET_PRODUCTLINE', productline.payload)
},
};
export default {
namespaced: true,