巴林闲侠
2 years ago
16 changed files with 123 additions and 320 deletions
@ -1,39 +0,0 @@ |
|||
'use strict'; |
|||
|
|||
import { ApiTable } from '$utils' |
|||
import { Request, basicAction } from '@peace/utils' |
|||
|
|||
export const SET_GLOBAL_WORKER_LIST = 'SET_GLOBAL_WORKER_LIST'; |
|||
export const CLEAR_GLOBAL_WORKER_LIST = 'CLEAR_GLOBAL_WORKER_LIST'; |
|||
export function getWorkerList() { |
|||
return dispatch => { |
|||
Request.get(ApiTable.getWorkerList).then(res => { |
|||
dispatch({ |
|||
type: SET_GLOBAL_WORKER_LIST, |
|||
payload: { |
|||
data: res |
|||
} |
|||
}) |
|||
}); |
|||
} |
|||
} |
|||
|
|||
export const SET_GLOBAL_CHECK_LIST = 'SET_GLOBAL_CHECK_LIST'; |
|||
export const CLEAR_GLOBAL_CHECK_LIST = 'CLEAR_GLOBAL_CHECK_LIST'; |
|||
export function getCheckList() { |
|||
return dispatch => { |
|||
Request.get(ApiTable.getChcekList).then(res => { |
|||
dispatch({ |
|||
type: SET_GLOBAL_CHECK_LIST, |
|||
payload: { |
|||
data: res |
|||
} |
|||
}) |
|||
}); |
|||
} |
|||
} |
|||
|
|||
export default { |
|||
getWorkerList, |
|||
getCheckList |
|||
} |
@ -1,23 +0,0 @@ |
|||
'use strict'; |
|||
|
|||
import { ApiTable } from '$utils' |
|||
import { Request, basicAction } from '@peace/utils' |
|||
|
|||
export const SET_GLOBAL_METTING_LIST = 'SET_GLOBAL_METTING_LIST'; |
|||
export const CLEAR_GLOBAL_METTING_LIST = 'CLEAR_GLOBAL_METTING_LIST'; |
|||
export function getMettingList() { |
|||
return dispatch => { |
|||
Request.get(ApiTable.mettingList + '?state=已提交').then(res => { |
|||
dispatch({ |
|||
type: SET_GLOBAL_METTING_LIST, |
|||
payload: { |
|||
data: res |
|||
} |
|||
}) |
|||
}); |
|||
} |
|||
} |
|||
|
|||
export default { |
|||
getMettingList |
|||
} |
@ -1,23 +0,0 @@ |
|||
'use strict'; |
|||
|
|||
import { ApiTable } from '$utils' |
|||
import { Request, basicAction } from '@peace/utils' |
|||
|
|||
export const SET_GLOBAL_SITE_LIST = 'SET_GLOBAL_SITE_LIST'; |
|||
export const CLEAR_GLOBAL_SITE_LIST = 'CLEAR_GLOBAL_SITE_LIST'; |
|||
export function getUserSiteList() { |
|||
return dispatch => { |
|||
Request.get(ApiTable.getUserSiteList).then(res => { |
|||
dispatch({ |
|||
type: SET_GLOBAL_SITE_LIST, |
|||
payload: { |
|||
data: res |
|||
} |
|||
}) |
|||
}); |
|||
} |
|||
} |
|||
|
|||
export default { |
|||
getUserSiteList |
|||
} |
Loading…
Reference in new issue