diff --git a/router/view.go b/router/view.go index 76fe65b..0cc2773 100644 --- a/router/view.go +++ b/router/view.go @@ -15,6 +15,7 @@ func InitViewRouter(engine *gin.Engine) { engine.GET("/main", middleware.JwtPageMiddleware, tmpl.PageMain) engine.GET("/chat_main", middleware.JwtPageMiddleware, tmpl.PageChatMain) engine.GET("/setting", tmpl.PageSetting) + engine.GET("/setting_statistics", tmpl.PageSettingStatis) engine.GET("/setting_mysql", tmpl.PageSettingMysql) engine.GET("/setting_welcome", tmpl.PageSettingWelcome) engine.GET("/setting_deploy", tmpl.PageSettingDeploy) diff --git a/static/html/header.html b/static/html/header.html index aaa14fd..aff7bef 100644 --- a/static/html/header.html +++ b/static/html/header.html @@ -5,7 +5,7 @@ - GO-IMAP网页版邮箱imap工具 + GO-FLY客服管理系统 @@ -27,7 +27,7 @@ } .mainMain{ background: #fff; - margin-left: 10px; + /*margin-left: 10px;*/ margin-bottom: 60px; } .mainIframe{ diff --git a/static/html/setting.html b/static/html/setting.html index a750961..b3b73c1 100644 --- a/static/html/setting.html +++ b/static/html/setting.html @@ -4,38 +4,11 @@ {{template "setting_left" .}} - - -

数据总览

- - -
-

-

总访客数

-
-
- -
-

-

总消息数

-
-
- -
-

-

当前会话数

-
-
-
-
- +
- + {{template "setting_bottom" .}} diff --git a/static/html/setting_bottom.html b/static/html/setting_bottom.html index 08d8878..4e53195 100644 --- a/static/html/setting_bottom.html +++ b/static/html/setting_bottom.html @@ -7,6 +7,7 @@ el: '#app', delimiters:["<{","}>"], data: { + iframeUrl:"/setting_statistics", fullscreenLoading:false, openIndex:[1], account: { @@ -145,7 +146,8 @@ }, //跳转 openUrl(url){ - window.location.href=url; + //window.location.href=url; + this.iframeUrl=url; }, //展示提示 showNotice(){ @@ -186,7 +188,7 @@ _this.roleList=result; }); } - if(ACTION=="setting"){ + if(ACTION=="setting_statistics"){ this.sendAjax("/statistics","get",{},function(result) { _this.statistics = result; }); diff --git a/static/html/setting_config.html b/static/html/setting_config.html index 7ec523a..2377bd6 100644 --- a/static/html/setting_config.html +++ b/static/html/setting_config.html @@ -2,7 +2,6 @@