serviceProcess.js 396 B

12345678910111213141516171819
  1. export const state = () => ({
  2. processInfo: {
  3. fetching: false,
  4. data: []
  5. }
  6. })
  7. export const mutations = {
  8. REQUEST_PROCESSINFO (state) {
  9. state.processInfo.fetching = true
  10. },
  11. GET_PROCESSINFO_SUCCESS (state, result) {
  12. state.processInfo.fetching = false
  13. state.processInfo.data = result
  14. },
  15. GET_PROCESSINFO_FAILURE (state) {
  16. state.processInfo.fetching = false
  17. }
  18. }