|  |  |  | 
|---|
|  |  |  | IO_WORK("ioWork", "layui-icon-flag"), | 
|---|
|  |  |  | WORK_FLOW("workFlow", "layui-icon-form"), | 
|---|
|  |  |  | BASE("base", "layui-icon-file"), | 
|---|
|  |  |  | ORDER("erp", "layui-icon-senior") | 
|---|
|  |  |  | ORDER("erp", "layui-icon-senior"), | 
|---|
|  |  |  | SENSOR("sensor", "layui-icon-engine"), | 
|---|
|  |  |  | ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private String code; | 
|---|
|  |  |  | private String icon; | 
|---|
|  |  |  | HtmlNavIconType(String code, String icon){ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | HtmlNavIconType(String code, String icon) { | 
|---|
|  |  |  | this.code = code; | 
|---|
|  |  |  | this.icon = icon; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public static String get(String code) { | 
|---|
|  |  |  | for (HtmlNavIconType type : HtmlNavIconType.values()){ | 
|---|
|  |  |  | if (type.code.equals(code)){ | 
|---|
|  |  |  | for (HtmlNavIconType type : HtmlNavIconType.values()) { | 
|---|
|  |  |  | if (type.code.equals(code)) { | 
|---|
|  |  |  | return type.icon; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|