done 当前温度
This commit is contained in:
189
src/store/features/annealTemperatureSlice.js
Normal file
189
src/store/features/annealTemperatureSlice.js
Normal file
@@ -0,0 +1,189 @@
|
||||
import { createSlice } from "@reduxjs/toolkit";
|
||||
|
||||
export const initialState = {
|
||||
data: {
|
||||
"3#": [
|
||||
"53",
|
||||
"36",
|
||||
"67",
|
||||
"73",
|
||||
"66",
|
||||
"77",
|
||||
"61",
|
||||
"45",
|
||||
"58",
|
||||
"82",
|
||||
"70",
|
||||
"73",
|
||||
"83",
|
||||
"63",
|
||||
"41",
|
||||
"41",
|
||||
"20",
|
||||
"94",
|
||||
"94",
|
||||
"50",
|
||||
"51",
|
||||
"73",
|
||||
"46",
|
||||
"37",
|
||||
"98",
|
||||
"36",
|
||||
"48",
|
||||
"59",
|
||||
"49",
|
||||
"56",
|
||||
"68",
|
||||
"68",
|
||||
],
|
||||
"2#": [
|
||||
"56",
|
||||
"13",
|
||||
"47",
|
||||
"5",
|
||||
"62",
|
||||
"24",
|
||||
"70",
|
||||
"50",
|
||||
"71",
|
||||
"83",
|
||||
"58",
|
||||
"87",
|
||||
"76",
|
||||
"28",
|
||||
"8",
|
||||
"73",
|
||||
"34",
|
||||
"78",
|
||||
"73",
|
||||
"44",
|
||||
"23",
|
||||
"54",
|
||||
"76",
|
||||
"16",
|
||||
"71",
|
||||
"48",
|
||||
"54",
|
||||
"81",
|
||||
"5",
|
||||
"28",
|
||||
"54",
|
||||
"53",
|
||||
],
|
||||
"1#": [
|
||||
"60",
|
||||
"58",
|
||||
"37",
|
||||
"93",
|
||||
"15",
|
||||
"41",
|
||||
"78",
|
||||
"8",
|
||||
"4",
|
||||
"0",
|
||||
"7",
|
||||
"27",
|
||||
"26",
|
||||
"17",
|
||||
"83",
|
||||
"72",
|
||||
"34",
|
||||
"7",
|
||||
"19",
|
||||
"65",
|
||||
"90",
|
||||
"80",
|
||||
"82",
|
||||
"87",
|
||||
"76",
|
||||
"97",
|
||||
"12",
|
||||
"32",
|
||||
"93",
|
||||
"91",
|
||||
"37",
|
||||
"34",
|
||||
],
|
||||
"5#": [
|
||||
"90",
|
||||
"27",
|
||||
"65",
|
||||
"89",
|
||||
"72",
|
||||
"58",
|
||||
"26",
|
||||
"10",
|
||||
"14",
|
||||
"46",
|
||||
"35",
|
||||
"66",
|
||||
"69",
|
||||
"28",
|
||||
"10",
|
||||
"74",
|
||||
"76",
|
||||
"47",
|
||||
"5",
|
||||
"95",
|
||||
"72",
|
||||
"67",
|
||||
"69",
|
||||
"63",
|
||||
"77",
|
||||
"96",
|
||||
"56",
|
||||
"91",
|
||||
"19",
|
||||
"57",
|
||||
"38",
|
||||
"65",
|
||||
],
|
||||
"4#": [
|
||||
"82",
|
||||
"42",
|
||||
"75",
|
||||
"24",
|
||||
"71",
|
||||
"31",
|
||||
"40",
|
||||
"76",
|
||||
"14",
|
||||
"91",
|
||||
"32",
|
||||
"82",
|
||||
"56",
|
||||
"82",
|
||||
"18",
|
||||
"68",
|
||||
"82",
|
||||
"79",
|
||||
"89",
|
||||
"42",
|
||||
"56",
|
||||
"24",
|
||||
"22",
|
||||
"67",
|
||||
"31",
|
||||
"70",
|
||||
"53",
|
||||
"40",
|
||||
"16",
|
||||
"21",
|
||||
"82",
|
||||
"22",
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
const annealTemperatureSlice = createSlice({
|
||||
name: "annealTemperature",
|
||||
initialState,
|
||||
reducers: {
|
||||
setTemp: (state, action) => {
|
||||
state.data = action.payload;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export default annealTemperatureSlice.reducer;
|
||||
export const { setTemp } = annealTemperatureSlice.actions;
|
||||
57
src/store/features/t.json
Normal file
57
src/store/features/t.json
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
@@ -6,6 +6,7 @@ import fanFrequenceReducer from "./features/fanFrequenceSlice";
|
||||
import combustionAirReducer from "./features/combustionAirSlice";
|
||||
import gasReducer from "./features/gasSlice";
|
||||
import temperatureReducer from "./features/temperatureSlice";
|
||||
import annealTemperatureReducer from "./features/annealTemperatureSlice";
|
||||
import fanInfoReducer from "./features/fanInfo";
|
||||
import energySlice from "./features/EnergySlice";
|
||||
import annealFanFrequenceReducer from "./features/annealFanFrequenceSlice";
|
||||
@@ -30,6 +31,8 @@ export const store = configureStore({
|
||||
combustionAir: combustionAirReducer,
|
||||
// 温度
|
||||
temperature: temperatureReducer,
|
||||
// 温度
|
||||
annealTemperature: annealTemperatureReducer,
|
||||
// 能耗
|
||||
energy: energySlice
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user