|  |  |  | 
|---|
|  |  |  | SET("set", "layui-icon-set"), | 
|---|
|  |  |  | MERCHANT("merchant", "layui-icon-user"), | 
|---|
|  |  |  | DEVELOP("develop", "layui-icon-util"), | 
|---|
|  |  |  | STOCK("stock", ""), | 
|---|
|  |  |  | LOG_REPORT("logReport", ""), | 
|---|
|  |  |  | IO_WORK("ioWork", ""), | 
|---|
|  |  |  | WORK_FLOW("workFlow", ""), | 
|---|
|  |  |  | BASE("base", ""), | 
|---|
|  |  |  | STOCK("stock", "layui-icon-templeate-1"), | 
|---|
|  |  |  | LOG_REPORT("logReport", "layui-icon-read"), | 
|---|
|  |  |  | IO_WORK("ioWork", "layui-icon-flag"), | 
|---|
|  |  |  | WORK_FLOW("workFlow", "layui-icon-form"), | 
|---|
|  |  |  | BASE("base", "layui-icon-file"), | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|