|
@@ -31,7 +31,7 @@ func init() {
|
|
|
entServerTransferMap = map[string]map[bool]string{
|
|
|
"yxgl": map[bool]string{ //【营销管理】根据code判断是否有权限 bi_yx
|
|
|
true: fmt.Sprintf("/page_workDesktop/work-bench/page?link=%s/succbi/crm_system/app/crm.app/sales_clues.spg", config.Sysconfig["webdomain"].(string)),
|
|
|
- false: "",
|
|
|
+ false: "/helpCenter/index",
|
|
|
},
|
|
|
"yxt": map[bool]string{ //【医械通】根据code判断是否有权限 lyh_yl_yldy
|
|
|
true: "/page_workDesktop/work-bench/app/big/medical/Credentials",
|
|
@@ -39,21 +39,23 @@ func init() {
|
|
|
},
|
|
|
"khgl": map[bool]string{ //【客户管理】根据code判断是否有权限 bi_yx
|
|
|
true: fmt.Sprintf("/page_workDesktop/work-bench/page?link=%s/succbi/crm_system/app/crm.app/sales_clues.spg", config.Sysconfig["webdomain"].(string)),
|
|
|
- false: "",
|
|
|
+ false: "/helpCenter/index",
|
|
|
},
|
|
|
"tbxmgl": map[bool]string{ //【投标项目管理】根据code判断是否有权限 cb_zy_code
|
|
|
true: "/big/attend_bidding/mine",
|
|
|
- false: "",
|
|
|
+ false: "/helpCenter/index",
|
|
|
},
|
|
|
"nzbg": map[bool]string{ //【年终报告】根据code判断是否有权限
|
|
|
true: fmt.Sprintf("/page_workDesktop/work-bench/page?link=%s/succbi/nzbg/app/nzbg.app/nzbg_entrance_pc.spg", config.Sysconfig["webdomain"].(string)),
|
|
|
- false: "",
|
|
|
+ false: "/helpCenter/index",
|
|
|
},
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// NewIndex 新版首页改版
|
|
|
func (nIndex *NewIndex) NewIndex() error {
|
|
|
+ //顶部菜单
|
|
|
+ nIndex.T["topMenu"] = g.Cfg("index").MustGet(context.Background(), "topMenu").Maps()
|
|
|
//招标公告
|
|
|
nIndex.T["newbids"] = map[string]interface{}{
|
|
|
"biddingList": NewIndexbids(nIndex.Session(), nIndex.Request),
|
|
@@ -88,8 +90,7 @@ func (nIndex *NewIndex) NewIndex() error {
|
|
|
nIndex.T["jySchool"] = jyutil.Course(6, 3)
|
|
|
//地区导航
|
|
|
nIndex.T["areaNav"] = GetAreaNav()
|
|
|
- //顶部菜单
|
|
|
- nIndex.T["topMenu"] = g.Cfg("index").MustGet(context.Background(), "topMenu").Maps()
|
|
|
+
|
|
|
return nIndex.Render("/pc/newIndex.html", &nIndex.T)
|
|
|
}
|
|
|
|