干燥机配套车间生产管理系统/云平台服务端
bsw215583320
2024-04-16 c2fccb01b972176dc3da5a497b5e904025e9e98d
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package org.jeecg.modules.message.enums;
 
import org.jeecg.common.system.annotation.EnumDict;
import org.jeecg.common.system.vo.DictModel;
 
import java.util.ArrayList;
import java.util.List;
 
/**
 * 消息跳转【vue3】
 * @Author taoYan
 * @Date 2022/8/19 20:41
 **/
@EnumDict("messageHref")
public enum Vue3MessageHrefEnum {
 
    /**
     * 流程催办
     */
    BPM("bpm", "/task/myHandleTaskInfo"),
 
    /**
     * 节点通知
     */
    BPM_TASK("bpm_task", "/task/myHandleTaskInfo"),
 
    /**
     * 邮件消息
     */
    EMAIL("email", "/eoa/email");
    
    String busType;
    
    String path;
 
    Vue3MessageHrefEnum(String busType, String path) {
        this.busType = busType;
        this.path = path;
    }
 
    public String getBusType() {
        return busType;
    }
 
    public String getPath() {
        return path;
    }
 
    /**
     * 获取字典数据
     * @return
     */
    public static List<DictModel> getDictList(){
        List<DictModel> list = new ArrayList<>();
        DictModel dictModel = null;
        for(Vue3MessageHrefEnum e: Vue3MessageHrefEnum.values()){
            dictModel = new DictModel();
            dictModel.setValue(e.getBusType());
            dictModel.setText(e.getPath());
            list.add(dictModel);
        }
        return list;
    }
    
}