Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 29aca383
由
sunke
编写于
2022-12-20 17:13:54 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
20031菜单
1 个父辈
b6e276b1
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
67 行增加
和
4 行删除
src/main/java/com/neotel/smfcore/common/init/MenuInit.java
src/main/java/com/neotel/smfcore/custom/micron20031/Micron20031Menu.java
src/main/java/com/neotel/smfcore/common/init/MenuInit.java
查看文件 @
29aca38
...
...
@@ -75,7 +75,7 @@ public class MenuInit {
* @param clientLabel 菜单标识
* @param menus 菜单列表
*/
p
ublic
static
void
addMenu
(
String
clientLabel
,
Menu
...
menus
){
p
rivate
static
void
addMenu
(
String
clientLabel
,
Menu
...
menus
){
for
(
Menu
menu
:
menus
)
{
Menu
existMenu
=
allMenuMap
.
get
(
menu
.
getPath
());
if
(
existMenu
!=
null
){
...
...
@@ -86,6 +86,21 @@ public class MenuInit {
}
}
/**
* 添加自定义菜单
* @param menuLabel
* @param menuSort
* @param parentMenu
* @param title
* @param path
* @param component
* @param icon
*/
public
static
void
addMenu
(
String
menuLabel
,
Menu
parentMenu
,
int
menuSort
,
String
title
,
String
path
,
String
component
,
String
icon
){
Menu
menu
=
Menu
.
createFunctionMenu
(
parentMenu
,
title
,
menuSort
,
path
,
component
,
icon
);
MenuInit
.
addMenu
(
menuLabel
,
menu
);
}
private
Map
<
String
,
Menu
>
getAllMenuMap
(){
//AGV看板
//addDefaultFunctionMenu(1,null,"AGV看板","agvkanban", "agv/agvkanban/index","agv");
...
...
@@ -93,9 +108,6 @@ public class MenuInit {
//设备看板
addDefaultFunctionMenu
(
1
,
null
,
"设备看板"
,
"lockMaterial"
,
"lockMaterial/material/index"
,
"kanban"
,
DEFAULT_SHOW_MENU
);
//20031锡膏料仓菜单
addDefaultFunctionMenu
(
1
,
null
,
"设备概览"
,
"spKanban"
,
"neolight/spKanban/index"
,
"sKanban"
);
//物料管理:工单出库,查找出库(UID出库,PN出库),物料标签,料盒操作,出库策略,工单设置
Menu
poutOut
=
Menu
.
CreatePMenu
(
"物料管理"
,
1
,
"order"
,
"workOrder"
,
null
);
...
...
src/main/java/com/neotel/smfcore/custom/micron20031/Micron20031Menu.java
0 → 100644
查看文件 @
29aca38
package
com
.
neotel
.
smfcore
.
custom
.
micron20031
;
import
com.neotel.smfcore.common.init.MenuInit
;
import
com.neotel.smfcore.core.api.SmfApi
;
import
com.neotel.smfcore.security.service.po.Menu
;
import
org.apache.logging.log4j.util.Strings
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
javax.annotation.PostConstruct
;
/**
* @author sunke
* @date 2022/12/14 4:01 PM
*/
@Component
public
class
Micron20031Menu
{
@Autowired
MenuInit
menuInit
;
@Autowired
SmfApi
smfApi
;
@PostConstruct
public
void
init
(){
String
menuLabel
=
"20031"
;
//20031锡膏料仓菜单
MenuInit
.
addMenu
(
menuLabel
,
null
,
1
,
"设备概览"
,
"spKanban"
,
"neolight/spKanban/index"
,
"sKanban"
);
MenuInit
.
addMenu
(
menuLabel
,
null
,
2
,
"Inventory Report"
,
"inventoryReport"
,
"system/inventoryReport/index"
,
"inventoryReport"
);
MenuInit
.
addMenu
(
menuLabel
,
null
,
3
,
"Movement Report"
,
"movementReport"
,
"system/movementReport/index"
,
"movementReport"
);
MenuInit
.
addMenu
(
menuLabel
,
null
,
4
,
"Performance Report"
,
"performanceReport"
,
"system/performanceReport/index"
,
"performanceReport"
);
MenuInit
.
addMenu
(
menuLabel
,
null
,
5
,
"Abnormality Report"
,
"abnormReport"
,
"system/abnormReport/index"
,
"abnormReport"
);
MenuInit
.
addMenu
(
menuLabel
,
null
,
6
,
"Order"
,
"order"
,
"system/order/index"
,
"order"
);
MenuInit
.
addMenu
(
menuLabel
,
null
,
7
,
"Deposit"
,
"deposit"
,
"system/deposit/index"
,
"deposit"
);
MenuInit
.
addMenu
(
menuLabel
,
null
,
8
,
"Stabilization"
,
"stabilization"
,
"system/stabilization/index"
,
"stabilization"
);
MenuInit
.
addMenu
(
menuLabel
,
null
,
9
,
"Withdraw"
,
"withdraw"
,
"system/withdraw/index"
,
"withdraw"
);
MenuInit
.
addMenu
(
menuLabel
,
null
,
10
,
"Return"
,
"returnPage"
,
"system/returnPage/index"
,
"returnPage"
);
MenuInit
.
addMenu
(
menuLabel
,
null
,
11
,
"Removal"
,
"removal"
,
"system/removal/index"
,
"removal"
);
String
apiName
=
smfApi
.
getApiName
();
if
(
Strings
.
isNotBlank
(
apiName
)
&&
apiName
.
equals
(
menuLabel
)){
menuInit
.
showMenu
(
apiName
);
}
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论