Ben Lin
2024-06-22 8e288eefbd4e8dbf7d0180dd880ce93256daa7a5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
 * @Description: 产品工艺路线相关
 * @Author: Ben Lin
 * @version:
 * @Date: 2024-06-19 20:34:27
 * @LastEditors: Ben Lin
 * @LastEditTime: 2024-06-22 00:04:06
 */
 
function _default() {
  /**
 * @description: 获取树形图标
 * @param {Recordable} params
 * @return {*}
 */
function CreateIcon(params: Recordable<any>) {
  let icon = '';
  switch (params['type']) {
    case 'Product':
      icon = 'similar-product|svg';
      break;
    case 'Route':
      icon = 'route|svg';
      break;
    case 'Node':
      icon = 'node|svg';
      break;
    case 'Action':
      icon = 'rot_action|svg';
      break;
    case 'Customer':
      icon = 'customer|svg';
      break;
  }
  return icon;
}
 
return [CreateIcon]
}
 
export default _default;