diff --git a/src/store/modules/actions.js b/src/store/modules/actions.js index 902adba..008dc67 100644 --- a/src/store/modules/actions.js +++ b/src/store/modules/actions.js @@ -55,15 +55,14 @@ export default { async nextPage({ state, commit }, event) { const { token } = JSON.parse(sessionStorage.getItem('KEY_ACCOUNT')) const { page, rowsPerPage } = event - // commit('nextPage', page) - const { userId, type = 0, op } = state + // const { userId, type, op } = state const pageSize = rowsPerPage const pageIndex = page - const result = await axios.post('admin/actions', { query: { userId, type, op }, option: { pageSize, pageIndex } }, { headers: { token } }) + const result = await axios.post('admin/actions', { query: { ...state }, option: { pageSize, pageIndex } }, { headers: { token } }) const arr = result.data && result.data.data || [] commit('setUserList', arr) }, - async searchTicket({ state, commit }, event) { + async searchAction({ state, commit }, event) { const { token } = JSON.parse(sessionStorage.getItem('KEY_ACCOUNT')) const { page, rowsPerPage } = event const t = state.filter