update
This commit is contained in:
40
src/store/features/QualityIsraSlice.js
Normal file
40
src/store/features/QualityIsraSlice.js
Normal file
@@ -0,0 +1,40 @@
|
||||
import { createSlice } from "@reduxjs/toolkit";
|
||||
|
||||
export const initialState = {
|
||||
checkTypeList: [],
|
||||
dayStatistic: [],
|
||||
monthStatistic: [],
|
||||
yearStatistic: [],
|
||||
weekStatistic: [],
|
||||
};
|
||||
|
||||
const israSlice = createSlice({
|
||||
name: "isra",
|
||||
initialState,
|
||||
reducers: {
|
||||
setCheckTypeList: (state, action) => {
|
||||
state.checkTypeList = action.payload;
|
||||
},
|
||||
setDayStatistic: (state, action) => {
|
||||
state.dayStatistic = action.payload;
|
||||
},
|
||||
setMonthStatistic: (state, action) => {
|
||||
state.monthStatistic = action.payload;
|
||||
},
|
||||
setYearStatistic: (state, action) => {
|
||||
state.yearStatistic = action.payload;
|
||||
},
|
||||
setWeekStatistic: (state, action) => {
|
||||
state.weekStatistic = action.payload;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export default israSlice.reducer;
|
||||
export const {
|
||||
setCheckTypeList,
|
||||
setDayStatistic,
|
||||
setWeekStatistic,
|
||||
setMonthStatistic,
|
||||
setYearStatistic,
|
||||
} = israSlice.actions;
|
||||
@@ -1,57 +0,0 @@
|
||||
{
|
||||
"data": {
|
||||
"AnnealFanFrequencyInfo": {
|
||||
"1#退火A2区1#风机": "49",
|
||||
"1#退火A2区2#风机": "49",
|
||||
"1#退火B区1#风机": "19",
|
||||
"1#退火B区2#风机": "17",
|
||||
"1#退火C区1#风机": "15",
|
||||
"1#退火C区2#风机": "2",
|
||||
"1#退火F1区风机": "80",
|
||||
"1#退火F2区风机": "45",
|
||||
"1#退火RET1区1#风机": "50",
|
||||
"1#退火RET1区2#风机": "24",
|
||||
"2#退火A2区1#风机": "0",
|
||||
"2#退火A2区2#风机": "18",
|
||||
"2#退火B区1#风机": "56",
|
||||
"2#退火B区2#风机": "14",
|
||||
"2#退火C区1#风机": "72",
|
||||
"2#退火C区2#风机": "83",
|
||||
"2#退火F1区风机": "45",
|
||||
"2#退火F2区风机": "54",
|
||||
"2#退火RET1区1#风机": "64",
|
||||
"2#退火RET1区2#风机": "98",
|
||||
"3#退火A2区1#风机": "45",
|
||||
"3#退火A2区2#风机": "42",
|
||||
"3#退火B区1#风机": "17",
|
||||
"3#退火B区2#风机": "71",
|
||||
"3#退火C区1#风机": "69",
|
||||
"3#退火C区2#风机": "51",
|
||||
"3#退火F1区风机": "64",
|
||||
"3#退火F2区风机": "18",
|
||||
"3#退火RET1区1#风机": "26",
|
||||
"3#退火RET1区2#风机": "74",
|
||||
"4#退火A2区1#风机": "22",
|
||||
"4#退火A2区2#风机": "77",
|
||||
"4#退火B区1#风机": "96",
|
||||
"4#退火B区2#风机": "76",
|
||||
"4#退火C区1#风机": "16",
|
||||
"4#退火C区2#风机": "12",
|
||||
"4#退火F1区风机": "65",
|
||||
"4#退火F2区风机": "12",
|
||||
"4#退火RET1区1#风机": "68",
|
||||
"4#退火RET1区2#风机": "34",
|
||||
"5#退火A2区1#风机": "76",
|
||||
"5#退火A2区2#风机": "65",
|
||||
"5#退火B区1#风机": "79",
|
||||
"5#退火B区2#风机": "65",
|
||||
"5#退火C区1#风机": "16",
|
||||
"5#退火C区2#风机": "92",
|
||||
"5#退火F1区风机": "6",
|
||||
"5#退火F2区风机": "86",
|
||||
"5#退火RET1区1#风机": "99",
|
||||
"5#退火RET1区2#风机": "62"
|
||||
}
|
||||
},
|
||||
"type": "AnnealFanFrequencyInfo"
|
||||
}
|
||||
@@ -9,6 +9,7 @@ import temperatureReducer from "./features/temperatureSlice";
|
||||
import annealTemperatureReducer from "./features/annealTemperatureSlice";
|
||||
import fanInfoReducer from "./features/fanInfo";
|
||||
import energySlice from "./features/EnergySlice";
|
||||
import israReducer from "./features/QualityIsraSlice";
|
||||
import annealFanFrequenceReducer from "./features/annealFanFrequenceSlice";
|
||||
import annealFanInfoReducer from "./features/annealFanInfoSlice";
|
||||
|
||||
@@ -37,6 +38,8 @@ export const store = configureStore({
|
||||
// 温度
|
||||
annealTemperature: annealTemperatureReducer,
|
||||
// 能耗
|
||||
energy: energySlice
|
||||
energy: energySlice,
|
||||
// 能耗
|
||||
isra: israReducer,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user