|
@@ -20,7 +20,13 @@ const state = {
|
|
outflag: false,
|
|
outflag: false,
|
|
outcheck: false,
|
|
outcheck: false,
|
|
systemSet: Cookies.get('systemSet') != null ? Cookies.get('systemSet') : null,
|
|
systemSet: Cookies.get('systemSet') != null ? Cookies.get('systemSet') : null,
|
|
- queryForm: JSON.parse(sessionStorage.getItem('queryForm')) ?? null
|
|
|
|
|
|
+ queryForm: JSON.parse(sessionStorage.getItem('queryForm')) ?? null,
|
|
|
|
+ passengerDialogFlag: false,
|
|
|
|
+ passengerQueryParams: {
|
|
|
|
+ flightNO: '',
|
|
|
|
+ flightDate: '',
|
|
|
|
+ passengerName: ''
|
|
|
|
+ }
|
|
}
|
|
}
|
|
const mutations = {
|
|
const mutations = {
|
|
TOGGLE_SIDEBAR: state => {
|
|
TOGGLE_SIDEBAR: state => {
|
|
@@ -63,29 +69,35 @@ const mutations = {
|
|
},
|
|
},
|
|
EXPAND_SIDEBAR: (state, expandFlag) => {
|
|
EXPAND_SIDEBAR: (state, expandFlag) => {
|
|
state.sidebar.expand = expandFlag
|
|
state.sidebar.expand = expandFlag
|
|
|
|
+ },
|
|
|
|
+ TOGGLE_PASSENGER_DIALOG_FLAG(state, flag) {
|
|
|
|
+ state.passengerDialogFlag = flag
|
|
|
|
+ },
|
|
|
|
+ SET_PASSENGER_QUERY_PARAMS(state, params) {
|
|
|
|
+ state.passengerQueryParams = params
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
const actions = {
|
|
const actions = {
|
|
- toggleSideBar ({ commit }) {
|
|
|
|
|
|
+ toggleSideBar({ commit }) {
|
|
commit('TOGGLE_SIDEBAR')
|
|
commit('TOGGLE_SIDEBAR')
|
|
},
|
|
},
|
|
- closeSideBar ({ commit }, { withoutAnimation }) {
|
|
|
|
|
|
+ closeSideBar({ commit }, { withoutAnimation }) {
|
|
commit('CLOSE_SIDEBAR', withoutAnimation)
|
|
commit('CLOSE_SIDEBAR', withoutAnimation)
|
|
},
|
|
},
|
|
- toggleDevice ({ commit }, device) {
|
|
|
|
|
|
+ toggleDevice({ commit }, device) {
|
|
commit('TOGGLE_DEVICE', device)
|
|
commit('TOGGLE_DEVICE', device)
|
|
},
|
|
},
|
|
- toggleDialog ({ commit }, dialog) {
|
|
|
|
|
|
+ toggleDialog({ commit }, dialog) {
|
|
commit('TOGGLE_DIALOG', dialog)
|
|
commit('TOGGLE_DIALOG', dialog)
|
|
},
|
|
},
|
|
- togglePwdflag ({ commit }, pwdflag) {
|
|
|
|
|
|
+ togglePwdflag({ commit }, pwdflag) {
|
|
commit('TOGGLE_PWDFLAG', pwdflag)
|
|
commit('TOGGLE_PWDFLAG', pwdflag)
|
|
},
|
|
},
|
|
- toggleOutflag ({ commit }, outflag) {
|
|
|
|
|
|
+ toggleOutflag({ commit }, outflag) {
|
|
commit('TOGGLE_OUTFLAG', outflag)
|
|
commit('TOGGLE_OUTFLAG', outflag)
|
|
},
|
|
},
|
|
- toggleOutcheck ({ commit }, outcheck) {
|
|
|
|
|
|
+ toggleOutcheck({ commit }, outcheck) {
|
|
commit('TOGGLE_OUTCHECK', outcheck)
|
|
commit('TOGGLE_OUTCHECK', outcheck)
|
|
},
|
|
},
|
|
getSystemSet({ commit }, systemSet) {
|
|
getSystemSet({ commit }, systemSet) {
|
|
@@ -96,6 +108,12 @@ const actions = {
|
|
},
|
|
},
|
|
expandSidebar({ commit }, expandFlag) {
|
|
expandSidebar({ commit }, expandFlag) {
|
|
commit('EXPAND_SIDEBAR', expandFlag)
|
|
commit('EXPAND_SIDEBAR', expandFlag)
|
|
|
|
+ },
|
|
|
|
+ togglePassengerDialogFlag({ commit }, flag) {
|
|
|
|
+ commit('TOGGLE_PASSENGER_DIALOG_FLAG', flag)
|
|
|
|
+ },
|
|
|
|
+ setPassengerQueryParams({ commit }, params) {
|
|
|
|
+ commit('SET_PASSENGER_QUERY_PARAMS', params)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|