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.
21 lines
408 B
21 lines
408 B
2 years ago
|
/**
|
||
|
* 工作流统一分类格式
|
||
|
* @param category 分类字典号
|
||
|
* @returns {string}
|
||
|
*/
|
||
|
export function flowCategory(category) {
|
||
|
return `flow_${category}`;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 根据key获取流程路由
|
||
|
* @param routes
|
||
|
* @param key
|
||
|
*/
|
||
|
export function flowRoute(routes, key) {
|
||
|
const data = routes.filter(d => {
|
||
|
return d.routeKey === key;
|
||
|
});
|
||
|
return data.length === 0 ? [] : data[0].routeValue;
|
||
|
}
|