//定义state类型
export type SearchState = {
  kingdeeSearch: Object;
  thirdPartySearch: Object;
  monitoringSearch: Object;
};

//定义state
export const state: SearchState = {
  kingdeeSearch: {},
  thirdPartySearch: {},
  monitoringSearch: {},
};
//定义mutations
export const mutations = {
  setkingdeeSearch(state: SearchState, data: Object) {
    state.kingdeeSearch = data;
  },

  setThirdPartySearch(state: SearchState, data: Object) {
    state.thirdPartySearch = data;
  },

  setMonitoringSearch(state: SearchState, data: Object) {
    state.monitoringSearch = data;
  },
};
// //定义actions
// export const actions = {};
// //定义getters
// export const getters = {
//   getData(state: SearchState) {
//     return state.kingdeeSearch;
//   },
// };

export default {
  namespaced: true,
  state,
  mutations,
  // actions,
  // getters,
};
