|
@@ -1,5 +1,5 @@
|
|
|
import {HIDE,RESET,SETINITDATA,SETDROPSHOW,SETADDITEMINIT,SETT0EDIT,SETREADDITEMS,
|
|
|
- HIDEDROP,CLICKCOUNT,ISREAD,SETOTHERHISTORY,SETMINSCREEN,MODI_LOADING,SEARCH_DROP_LOCATION,GET_INSPECT_LIST,GET_ASSIST_LIST,SETALLMODULES} from '../types/homePage.js';
|
|
|
+ HIDEDROP,CLICKCOUNT,ISREAD,SETOTHERHISTORY,SETMINSCREEN,MODI_LOADING,SEARCH_DROP_LOCATION,GET_INSPECT_LIST,GET_ASSIST_LIST,SETALLMODULES,SETSYSTEMCONFIG} from '../types/homePage.js';
|
|
|
import {showDrop,setAddItemInit,setLabelToEdit,confirmHide,clickNum,searchDropLocation,getInspectList,getAssistList} from '../actions/homePage.js';
|
|
|
import SearchDrop from '../../components/SearchDrop/index.jsx';
|
|
|
|
|
@@ -17,6 +17,7 @@ const initState = {
|
|
|
allModules:[],
|
|
|
assistList:[],
|
|
|
inspectList:[],
|
|
|
+ sysConfig:{}
|
|
|
};
|
|
|
|
|
|
export default function (state=initState,action) {
|
|
@@ -55,10 +56,6 @@ export default function (state=initState,action) {
|
|
|
res.initData.otherIsHis = action.otherIsHis!=undefined?action.otherIsHis:true;
|
|
|
res.initData.period = action.period;
|
|
|
return res;
|
|
|
- /*case SETTEXTFOCUS:
|
|
|
- res.focusTextIndex = action.index;
|
|
|
- res.span=action.$span;
|
|
|
- return res;*/
|
|
|
case SETMINSCREEN:
|
|
|
res.windowWidth = action.obj.width;
|
|
|
res.windowHeight = action.obj.height;
|
|
@@ -76,6 +73,8 @@ export default function (state=initState,action) {
|
|
|
case SETALLMODULES:
|
|
|
res.allModules = action.data;
|
|
|
return res;
|
|
|
+ case SETSYSTEMCONFIG:
|
|
|
+ res.sysConfig = action.data;
|
|
|
default:
|
|
|
return res;
|
|
|
}
|