数字督察一体化平台-前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

26 lines
949 B

import { FlowNodeEnum } from '@/enums/flowEnums'
export function getComponents(flowKey:string) {
if (!flowKey) {
return ['negative-verify-description'];
}
switch(flowKey) {
case FlowNodeEnum.FIRST_DISTRIBUTE:
return ['negative-distribute'];
case FlowNodeEnum.SECOND_DISTRIBUTE:
return ['negative-distribute'];
case FlowNodeEnum.VERIFY:
return ['negative-verify'];
case FlowNodeEnum.SECOND_APPROVE:
return ['negative-verify-description'];
case FlowNodeEnum.FIRST_APPROVE:
return ['negative-verify-description'];
case FlowNodeEnum.SECOND_EXTENSION_APPROVE:
return ['negative-verify-description'];
case FlowNodeEnum.FIRST_EXTENSION_APPROVE:
return ['negative-verify-description'];
case FlowNodeEnum.COMPLETED:
return ['negative-verify-description'];
}
return []
}