mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-12 22:29:59 +08:00
49 lines
1.3 KiB
JavaScript
49 lines
1.3 KiB
JavaScript
/**
|
|
* Process Getters
|
|
* @author Edwin Betancourt <EdwinBetanc0urt@outlook.com>
|
|
*/
|
|
export default {
|
|
/**
|
|
* Running processes that have not received a response from the server
|
|
* @param {string} containerUuid
|
|
*/
|
|
getInExecution: (state) => (containerUuid) => {
|
|
return state.inExecution.find(item => item.containerUuid === containerUuid)
|
|
},
|
|
/**
|
|
* Process for send to server, or send without response
|
|
*/
|
|
getAllInExecution: (state) => {
|
|
return state.inExecution
|
|
},
|
|
/**
|
|
* Process send to server, with response from server
|
|
*/
|
|
getAllFinishProcess: (state) => {
|
|
return state.process
|
|
},
|
|
getNotificationProcess: (state) => {
|
|
return state.notificationProcess
|
|
},
|
|
/**
|
|
* Process receibed from server associated whith this session
|
|
*/
|
|
getAllSessionProcess: (state) => {
|
|
return state.sessionProcess
|
|
},
|
|
/**
|
|
* Process request metadata from server filter form uuid process
|
|
*/
|
|
getInRequestMetadata: (state) => (containerUuid) => {
|
|
return state.inRequestMetadata.find(item => item === containerUuid)
|
|
},
|
|
getProcessResult: (state) => {
|
|
return state.reportObject
|
|
},
|
|
getCachedReport: (state) => (instanceUuid) => {
|
|
return state.reportList.find(
|
|
item => item.instanceUuid === instanceUuid
|
|
)
|
|
}
|
|
}
|