智慧园区web后台管理-vue
zrj
2024-10-24 8b12f223d8bdeb5a9918ae3fa7d5c8b8ecfb3c2c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/**
 * 工作流统一分类格式
 * @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;
}