Commit c7453de0 by 孙亚楠

dd

parent 58ff0e8d
...@@ -175,21 +175,40 @@ class UserCtl extends CtlBase { ...@@ -175,21 +175,40 @@ class UserCtl extends CtlBase {
if (!loginUser) { if (!loginUser) {
return []; return [];
} }
return [ if (loginUser.isAdmin) {
{ return [
name: "数据概览", {
icon: "iconfont icon-gth-gsshujugailan", name: "数据概览",
team: [{name: "业务数据汇总", path: "/home"}] icon: "iconfont icon-gth-gsshujugailan",
}, team: [{name: "业务数据汇总", path: "/home"}]
{ },
name: "发票中心", {
icon: "iconfont icon-gth-gsfapiaozhongxin", name: "发票中心",
team: [ icon: "iconfont icon-gth-gsfapiaozhongxin",
{name: "发票申请", path: "/trading/invoiceApplyFor"}, team: [
{name: "发票管理", path: "/trading/invoiceManagement"}, {name: "发票申请", path: "/trading/invoiceApplyFor"},
] {name: "发票管理", path: "/trading/invoiceManagement"},
} ]
]; }
];
}else{
return [
{
name: "数据概览",
icon: "iconfont icon-gth-gsshujugailan",
team: [{name: "业务数据汇总", path: "/home"}]
},
{
name: "发票中心",
icon: "iconfont icon-gth-gsfapiaozhongxin",
team: [
{name: "我的业务发票", path: "/trading/invoiceApplyMy"},
{name: "我的全部发票", path: "/trading/invoicesAllMy"},
]
}
];
}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment