Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
9bc60f6b
Commit
9bc60f6b
authored
Mar 29, 2019
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页改为控制台页面
parent
528db9bb
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
715 additions
and
4 deletions
+715
-4
src/main/java/cn/stylefeng/guns/modular/system/controller/SystemController.java
+24
-2
src/main/webapp/pages/index.html
+1
-1
src/main/webapp/pages/modular/frame/console.html
+289
-0
src/main/webapp/pages/modular/frame/console2.html
+400
-0
src/main/webapp/pages/modular/frame/user_info.html
+1
-1
No files found.
src/main/java/cn/stylefeng/guns/modular/system/controller/SystemController.java
View file @
9bc60f6b
...
@@ -74,13 +74,35 @@ public class SystemController extends BaseController {
...
@@ -74,13 +74,35 @@ public class SystemController extends BaseController {
private
GunsProperties
gunsProperties
;
private
GunsProperties
gunsProperties
;
/**
/**
* 控制台页面
*
* @author fengshuonan
* @Date 2018/12/24 22:43
*/
@RequestMapping
(
"/console"
)
public
String
console
()
{
return
"/modular/frame/console.html"
;
}
/**
* 分析页面
*
* @author fengshuonan
* @Date 2018/12/24 22:43
*/
@RequestMapping
(
"/console2"
)
public
String
console2
()
{
return
"/modular/frame/console2.html"
;
}
/**
* 主页面
* 主页面
*
*
* @author fengshuonan
* @author fengshuonan
* @Date 2019/1/24 3:38 PM
* @Date 2019/1/24 3:38 PM
*/
*/
@RequestMapping
(
"/welcome"
)
@RequestMapping
(
"/welcome"
)
public
String
consol
e
()
{
public
String
welcom
e
()
{
return
"/modular/frame/welcome.html"
;
return
"/modular/frame/welcome.html"
;
}
}
...
@@ -272,7 +294,7 @@ public class SystemController extends BaseController {
...
@@ -272,7 +294,7 @@ public class SystemController extends BaseController {
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"fileId"
,
IdWorker
.
getIdStr
());
map
.
put
(
"fileId"
,
IdWorker
.
getIdStr
());
return
ResponseData
.
success
(
0
,
"上传成功"
,
map
);
return
ResponseData
.
success
(
0
,
"上传成功"
,
map
);
}
}
...
...
src/main/webapp/pages/index.html
View file @
9bc60f6b
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
// 默认加载主页
// 默认加载主页
index
.
loadHome
({
index
.
loadHome
({
menuPath
:
'${ctxPath}/system/
welcom
e'
,
menuPath
:
'${ctxPath}/system/
consol
e'
,
menuName
:
'<i class="layui-icon layui-icon-home"></i>'
menuName
:
'<i class="layui-icon layui-icon-home"></i>'
});
});
...
...
src/main/webapp/pages/modular/frame/console.html
0 → 100755
View file @
9bc60f6b
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1"
>
<title>
EasyWeb后台开发框架
</title>
<link
rel=
"stylesheet"
href=
"../../assets/libs/layui/css/layui.css"
/>
<link
rel=
"stylesheet"
href=
"../../assets/module/admin.css?v=311"
/>
<style>
/** 卡片轮播图样式 */
.admin-carousel
.layui-carousel-ind
{
position
:
absolute
;
top
:
-41px
;
text-align
:
right
;
}
.admin-carousel
.layui-carousel-ind
ul
{
background
:
0
0
;
}
.admin-carousel
.layui-carousel-ind
li
{
background-color
:
#e2e2e2
;
}
.admin-carousel
.layui-carousel-ind
li
.layui-this
{
background-color
:
#999
;
}
/** 广告位轮播图 */
.admin-news
.layui-carousel-ind
{
height
:
45px
;
}
.admin-news
a
{
display
:
block
;
line-height
:
60px
;
text-align
:
center
;
}
</style>
</head>
<body>
<!-- 加载动画,移除位置在common.js中 -->
<div
class=
"page-loading"
>
<div
class=
"ball-loader"
>
<span></span><span></span><span></span><span></span>
</div>
</div>
<!-- 正文开始 -->
<div
class=
"layui-fluid"
>
<div
class=
"layui-row layui-col-space15"
>
<div
class=
"layui-col-xs12 layui-col-sm6 layui-col-md3"
>
<div
class=
"layui-card"
>
<div
class=
"layui-card-header"
>
访问量
<span
class=
"layui-badge layui-bg-blue pull-right"
>
周
</span>
</div>
<div
class=
"layui-card-body"
>
<p
class=
"lay-big-font"
>
99,666
</p>
<p>
总计访问量
<span
class=
"pull-right"
>
88万
<i
class=
"layui-icon layui-icon-flag"
></i></span></p>
</div>
</div>
</div>
<div
class=
"layui-col-xs12 layui-col-sm6 layui-col-md3"
>
<div
class=
"layui-card"
>
<div
class=
"layui-card-header"
>
下载
<span
class=
"layui-badge layui-bg-black pull-right"
>
月
</span>
</div>
<div
class=
"layui-card-body"
>
<p
class=
"lay-big-font"
>
33,555
</p>
<p>
新下载
<span
class=
"pull-right"
>
10%
<i
class=
"layui-icon"
>
&
#xe601
</i></span></p>
</div>
</div>
</div>
<div
class=
"layui-col-xs12 layui-col-sm6 layui-col-md3"
>
<div
class=
"layui-card"
>
<div
class=
"layui-card-header"
>
Start
<span
class=
"layui-badge layui-bg-green pull-right"
>
周
</span>
</div>
<div
class=
"layui-card-body"
>
<p
class=
"lay-big-font"
>
99,666
</p>
<p>
总Start数
<span
class=
"pull-right"
>
88万
<i
class=
"layui-icon layui-icon-rate"
></i></span></p>
</div>
</div>
</div>
<div
class=
"layui-col-xs12 layui-col-sm6 layui-col-md3"
>
<div
class=
"layui-card"
>
<div
class=
"layui-card-header"
>
活跃用户
<span
class=
"layui-badge layui-bg-orange pull-right"
>
月
</span>
</div>
<div
class=
"layui-card-body"
>
<p
class=
"lay-big-font"
>
66,666
</p>
<p>
最近一个月
<span
class=
"pull-right"
>
15%
<i
class=
"layui-icon layui-icon-user"
></i></span></p>
</div>
</div>
</div>
</div>
<div
class=
"layui-row layui-col-space15"
>
<div
class=
"layui-col-lg8 layui-col-md7"
>
<div
class=
"layui-card"
>
<div
class=
"layui-card-header"
>
更新日志
</div>
<div
class=
"layui-card-body"
>
<ul
class=
"layui-timeline"
>
<li
class=
"layui-timeline-item"
>
<i
class=
"layui-icon layui-timeline-axis"
>

</i>
<div
class=
"layui-timeline-content layui-text"
>
<h3
class=
"layui-timeline-title"
>
V3.0
<small>
发布全新版本
</small>
 
<span
class=
"layui-badge-rim"
>
2018-10-13
</span>
</h3>
<ul>
<li>
侧导航栏折叠效果优化,PC端鼠标移入子菜单悬浮在右侧
</li>
<li>
增加可自由切换主题功能,默认自带多套主题风格可选
</li>
<li>
发布iframe版本、单标签版本,优化spa版本
</li>
<li>
上线官网并采用付费授权模式,不再提供开源版本
</li>
</ul>
</div>
</li>
<li
class=
"layui-timeline-item"
>
<i
class=
"layui-icon layui-timeline-axis"
>

</i>
<div
class=
"layui-timeline-content layui-text"
>
<h3
class=
"layui-timeline-title"
>
V2.0
<small>
多标签、全新风格
</small>
 
<span
class=
"layui-badge-rim"
>
2018-06-28
</span>
</h3>
<ul>
<li>
增加侧导航栏折叠效果,PC端折叠为图标,移动端抽屉风格
</li>
<li>
增加多标签选项卡的功能,且可自由配置是否开启多标签
</li>
<li>
界面优化,主框架借鉴layadmin的设计风格,清新简洁
</li>
<li>
使用SpringBoot、SpringSecurity、OAuth2.0重构后台部分
</li>
</ul>
</div>
</li>
<li
class=
"layui-timeline-item"
>
<i
class=
"layui-icon layui-timeline-axis"
>

</i>
<div
class=
"layui-timeline-content layui-text"
>
<h3
class=
"layui-timeline-title"
>
V1.0
<small>
第一个jQuery单页面框架
</small>
 
<span
class=
"layui-badge-rim"
>
2018-01-02
</span>
</h3>
<ul>
<li>
将公司基于Shiro、AdminLTE的框架改造成前后端分离模式
</li>
<li>
引入q.js作为前端路由框架,实现SPA单页面效果
</li>
<li>
去除Shiro,基于jjwt开发JwtPermission框架控制权限
</li>
<li>
1.x版本开源后让很多对vue、react不熟悉的后端程序员也能够实现前后端分离
</li>
</ul>
</div>
</li>
<li
class=
"layui-timeline-item"
>
<i
class=
"layui-icon layui-timeline-axis"
>

</i>
<div
class=
"layui-timeline-content layui-text"
>
<div
class=
"layui-timeline-title"
>
EasyWeb默默开发中...
 
<span
class=
"layui-badge-rim"
>
更早
</span>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
<div
class=
"layui-col-lg4 layui-col-md5"
>
<div
class=
"layui-card"
>
<div
class=
"layui-card-header"
>
前端框架
</div>
<div
class=
"layui-card-body"
>
<table
class=
"layui-table layui-text"
>
<colgroup>
<col
width=
"100"
>
<col>
</colgroup>
<tbody>
<tr>
<td>
基础框架
</td>
<td><a
href=
"http://www.layui.com/"
target=
"_blank"
>
layui-v2.4.5
</a></td>
</tr>
<tr>
<td>
路由框架
</td>
<td>
lay-Router(基于
<a
href=
"https://github.com/itorr/q.js"
target=
"_blank"
>
q.js
</a>
进行改进封装)
</td>
</tr>
<tr>
<td>
主要特色
</td>
<td>
单页面 / 响应式 / 简约 / 易上手
</td>
</tr>
<tr>
<td>
获取源码
</td>
<td>
<a
href=
"https://easyweb.vip"
target=
"_blank"
class=
"layui-btn layui-btn-sm"
>
前往官网
</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div
class=
"layui-card"
>
<div
class=
"layui-card-header"
>
后台框架
</div>
<div
class=
"layui-card-body"
>
<table
class=
"layui-table layui-text"
>
<colgroup>
<col
width=
"100"
>
<col>
</colgroup>
<tbody>
<tr>
<td>
核心框架
</td>
<td>
Spring、Spring MVC、Spring Boot
</td>
</tr>
<tr>
<td>
持久层
</td>
<td>
MyBatis、Druid、
<a
href=
"http://mp.baomidou.com"
target=
"_blank"
>
MyBatis-Plus
</a>
</td>
</tr>
<tr>
<td>
权限框架
</td>
<td>
Shiro、
<a
href=
"https://easyweb.vip"
target=
"_blank"
>
JwtPermission
</a>
(API接口权限)
</td>
</tr>
<tr>
<td>
其他
</td>
<td>
IDEA(开发工具)、MySQL(数据库)
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div
class=
"layui-card"
>
<div
class=
"layui-card-header"
>
友情链接
</div>
<div
class=
"layui-card-body"
>
<div
class=
"layui-carousel admin-carousel admin-news"
>
<div
carousel-item
>
<div>
<a
href=
"http://www.layui.com/"
target=
"_blank"
class=
"layui-bg-green"
>
layui - 经典模块化前端框架
</a>
</div>
<div>
<a
href=
"http://fly.layui.com/extend/"
target=
"_blank"
class=
"layui-bg-cyan"
>
layui第三方组件平台
</a>
</div>
<div>
<a
href=
"http://fly.layui.com/case/2018/"
target=
"_blank"
class=
"layui-bg-blue"
>
发现layui年度最佳案例
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- js部分 -->
<script
type=
"text/javascript"
src=
"../../assets/libs/layui/layui.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/js/common.js?v=311"
></script>
<script>
layui
.
use
([
'layer'
,
'carousel'
],
function
()
{
var
$
=
layui
.
jquery
;
var
layer
=
layui
.
layer
;
var
carousel
=
layui
.
carousel
;
var
device
=
layui
.
device
;
// 渲染轮播
carousel
.
render
({
elem
:
'.layui-carousel'
,
width
:
'100%'
,
height
:
'60px'
,
arrow
:
'none'
,
autoplay
:
true
,
trigger
:
device
.
ios
||
device
.
android
?
'click'
:
'hover'
,
anim
:
'fade'
});
});
</script>
</body>
</html>
\ No newline at end of file
src/main/webapp/pages/modular/frame/console2.html
0 → 100755
View file @
9bc60f6b
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1"
>
<title>
EasyWeb后台开发框架
</title>
<link
rel=
"stylesheet"
href=
"../../assets/libs/layui/css/layui.css"
/>
<link
rel=
"stylesheet"
href=
"../../assets/module/admin.css?v=311"
/>
<style>
.numberInfoSubTitle
{
color
:
rgba
(
0
,
0
,
0
,
.45
);
font-size
:
14px
;
height
:
22px
;
line-height
:
22px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
word-break
:
break-all
;
}
.numberInfoValue
{
color
:
rgba
(
0
,
0
,
0
,
.85
);
font-size
:
24px
;
margin-top
:
10px
;
height
:
32px
;
line-height
:
32px
;
}
.numberInfoSuffix
{
color
:
rgba
(
0
,
0
,
0
,
.65
);
font-size
:
16px
;
font-style
:
normal
;
margin-left
:
4px
;
line-height
:
32px
;
}
</style>
</head>
<body>
<!-- 加载动画,移除位置在common.js中 -->
<div
class=
"page-loading"
>
<div
class=
"ball-loader"
>
<span></span><span></span><span></span><span></span>
</div>
</div>
<!-- 正文开始 -->
<div
class=
"layui-fluid"
>
<div
class=
"layui-row layui-col-space15"
>
<div
class=
"layui-col-xs12 layui-col-md8"
>
<div
class=
"layui-card"
style=
""
>
<div
class=
"layui-card-header"
>
活动实时交易情况
</div>
<div
class=
"layui-card-body"
>
<div
class=
"layui-row"
>
<div
class=
"layui-col-xs12 layui-col-sm6 layui-col-lg3 text-center"
>
<div
class=
"numberInfoSubTitle"
>
今日交易总额
</div>
<div
class=
"numberInfoValue"
>
124,543,233
<em
class=
"numberInfoSuffix"
>
元
</em>
</div>
</div>
<div
class=
"layui-col-xs12 layui-col-sm6 layui-col-lg3 text-center"
>
<div
class=
"numberInfoSubTitle"
>
销售目标完成率
</div>
<div
class=
"numberInfoValue"
>
92%
</div>
</div>
<div
class=
"layui-col-xs12 layui-col-sm6 layui-col-lg3 text-center"
>
<div
class=
"numberInfoSubTitle"
>
活动剩余时间
</div>
<div
class=
"numberInfoValue"
>
00:57:10
</div>
</div>
<div
class=
"layui-col-xs12 layui-col-sm6 layui-col-lg3 text-center"
>
<div
class=
"numberInfoSubTitle"
>
每秒交易总额
</div>
<div
class=
"numberInfoValue"
>
234
<em
class=
"numberInfoSuffix"
>
元
</em>
</div>
</div>
</div>
<div
style=
"text-align: center;padding: 30px 0 10px 0;"
>
<img
src=
"https://gw.alipayobjects.com/zos/rmsportal/HBWnDEUXCnGnGrRfrpKa.png"
style=
"max-height: 437px; max-width: 100%;"
alt=
"map"
>
</div>
</div>
</div>
</div>
<div
class=
"layui-col-xs12 layui-col-md4"
>
<div
class=
"layui-card"
>
<div
class=
"layui-card-header"
>
活动情况预测
</div>
<div
class=
"layui-card-body"
style=
"height: 240px;overflow: hidden;"
>
<div
id=
"hdqkyc"
style=
"width: 100%;height: 260px;"
></div>
</div>
</div>
<div
class=
"layui-card"
>
<div
class=
"layui-card-header"
>
券核效率
</div>
<div
class=
"layui-card-body"
style=
"height: 222px;overflow: hidden;"
>
<div
id=
"hjxl"
style=
"width: 100%;height: 280px;margin-top: -20px;"
></div>
</div>
</div>
</div>
<div
class=
"layui-col-xs12"
>
<div
class=
"layui-card"
>
<div
class=
"layui-card-body"
>
<div
class=
"layui-tab layui-tab-brief"
lay-filter=
"tabZZT"
>
<ul
class=
"layui-tab-title"
>
<li
class=
"layui-this"
>
销售额
</li>
<li>
访问量
</li>
</ul>
<div
class=
"layui-tab-content"
>
<div
class=
"layui-tab-item layui-show"
>
<div
class=
"layui-row layui-col-space30"
>
<div
class=
"layui-col-xs12 layui-col-md8"
>
<div
id=
"xse"
style=
"height: 300px;margin-top: 20px;"
></div>
</div>
<div
class=
"layui-col-xs12 layui-col-md4"
>
<table
class=
"layui-table"
lay-skin=
"nob"
>
<colgroup>
<col
width=
"50"
>
<col>
<col
width=
"96"
>
</colgroup>
<thead>
<tr
style=
"background: none;color: #333;"
>
<th
colspan=
"3"
>
门店销售额排名
</th>
</tr>
</thead>
<tbody>
<tr>
<td><span
class=
"layui-badge layui-bg-cyan"
>
1
</span></td>
<td>
工专路 0 号店
</td>
<td>
323,234
</td>
</tr>
<tr>
<td><span
class=
"layui-badge layui-bg-cyan"
>
2
</span></td>
<td>
工专路 1 号店
</td>
<td>
323,234
</td>
</tr>
<tr>
<td><span
class=
"layui-badge layui-bg-cyan"
>
3
</span></td>
<td>
工专路 2 号店
</td>
<td>
323,234
</td>
</tr>
<tr>
<td><span
class=
"layui-badge layui-bg-gray"
>
4
</span></td>
<td>
工专路 4 号店
</td>
<td>
323,234
</td>
</tr>
<tr>
<td><span
class=
"layui-badge layui-bg-gray"
>
5
</span></td>
<td>
工专路 5 号店
</td>
<td>
323,234
</td>
</tr>
<tr>
<td><span
class=
"layui-badge layui-bg-gray"
>
6
</span></td>
<td>
工专路 6 号店
</td>
<td>
323,234
</td>
</tr>
<tr>
<td><span
class=
"layui-badge layui-bg-gray"
>
7
</span></td>
<td>
工专路 7 号店
</td>
<td>
323,234
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div
class=
"layui-tab-item"
>
<div
class=
"layui-row layui-col-space30"
>
<div
class=
"layui-col-xs12 layui-col-md8"
>
<div
id=
"fwl"
style=
"height: 300px;margin-top: 20px;"
></div>
</div>
<div
class=
"layui-col-xs12 layui-col-md4"
>
<table
class=
"layui-table"
lay-skin=
"nob"
>
<colgroup>
<col
width=
"50"
>
<col>
<col
width=
"96"
>
</colgroup>
<thead>
<tr
style=
"background: none;color: #333;"
>
<th
colspan=
"3"
>
门店访问量排名
</th>
</tr>
</thead>
<tbody>
<tr>
<td><span
class=
"layui-badge layui-bg-cyan"
>
1
</span></td>
<td>
工专路 0 号店
</td>
<td>
323,234
</td>
</tr>
<tr>
<td><span
class=
"layui-badge layui-bg-cyan"
>
2
</span></td>
<td>
工专路 1 号店
</td>
<td>
323,234
</td>
</tr>
<tr>
<td><span
class=
"layui-badge layui-bg-cyan"
>
3
</span></td>
<td>
工专路 2 号店
</td>
<td>
323,234
</td>
</tr>
<tr>
<td><span
class=
"layui-badge layui-bg-gray"
>
4
</span></td>
<td>
工专路 4 号店
</td>
<td>
323,234
</td>
</tr>
<tr>
<td><span
class=
"layui-badge layui-bg-gray"
>
5
</span></td>
<td>
工专路 5 号店
</td>
<td>
323,234
</td>
</tr>
<tr>
<td><span
class=
"layui-badge layui-bg-gray"
>
6
</span></td>
<td>
工专路 6 号店
</td>
<td>
323,234
</td>
</tr>
<tr>
<td><span
class=
"layui-badge layui-bg-gray"
>
7
</span></td>
<td>
工专路 7 号店
</td>
<td>
323,234
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- js部分 -->
<script
type=
"text/javascript"
src=
"../../assets/libs/layui/layui.js"
></script>
<script
type=
"text/javascript"
src=
"../../assets/js/common.js?v=311"
></script>
<script
src=
"../../assets/libs/echarts/echarts.min.js"
></script>
<script
src=
"../../assets/libs/echarts/echartsTheme.js"
></script>
<script>
layui
.
use
([
'layer'
,
'element'
],
function
()
{
var
$
=
layui
.
jquery
;
var
layer
=
layui
.
layer
;
var
element
=
layui
.
element
;
// 渲染活动情况预测
var
myCharts
=
echarts
.
init
(
document
.
getElementById
(
'hdqkyc'
),
myEchartsTheme
);
var
mData
=
[
50
,
100
,
150
,
80
,
120
,
150
,
200
,
250
,
220
,
250
,
300
,
350
,
400
,
380
,
440
,
450
,
500
,
550
,
500
];
var
option
=
{
title
:
{
text
:
'有望达到预期'
,
subtext
:
'目标评估'
,
textStyle
:
{
color
:
'#000'
}
},
tooltip
:
{
trigger
:
"axis"
},
xAxis
:
[{
type
:
"category"
,
boundaryGap
:
!
1
,
data
:
[
"06:00"
,
"06:30"
,
"07:00"
,
"07:30"
,
"08:00"
,
"08:30"
,
"09:00"
,
"09:30"
,
"10:00"
,
"11:30"
,
"12:00"
,
"12:30"
,
"13:00"
,
"13:30"
,
"14:00"
,
"14:30"
,
"15:00"
,
"15:30"
,
"16:00"
]
}],
yAxis
:
[{
type
:
"value"
}],
series
:
[{
name
:
"金额"
,
type
:
"line"
,
smooth
:
!
0
,
itemStyle
:
{
normal
:
{
areaStyle
:
{
type
:
"default"
}
}
},
data
:
mData
}]
};
myCharts
.
setOption
(
option
);
// 动态改变图表1数据
setInterval
(
function
()
{
for
(
var
i
=
0
;
i
<
mData
.
length
;
i
++
)
{
mData
[
i
]
+=
(
Math
.
random
()
*
50
-
25
);
if
(
mData
[
i
]
<
0
)
{
mData
[
i
]
=
0
;
}
}
myCharts
.
setOption
({
series
:
[{
data
:
mData
}]
});
},
1000
);
// 渲染券核效率图表
var
myCharts2
=
echarts
.
init
(
document
.
getElementById
(
'hjxl'
),
myEchartsTheme
);
var
option2
=
{
tooltip
:
{
formatter
:
"{a} <br/>{b} : {c}%"
},
series
:
[
{
name
:
'券核效率'
,
type
:
'gauge'
,
detail
:
{
formatter
:
'{value}%'
},
data
:
[{
value
:
80
,
name
:
'跳出率'
}]
}
]
};
myCharts2
.
setOption
(
option2
);
// 渲染销售额图表
var
myCharts3
=
echarts
.
init
(
document
.
getElementById
(
'xse'
),
myEchartsTheme
);
var
option3
=
{
title
:
{
text
:
'销售趋势'
,
textStyle
:
{
color
:
'#000'
,
fontSize
:
14
}
},
tooltip
:
{},
grid
:
{
left
:
'0'
,
right
:
'0'
,
bottom
:
'0'
,
containLabel
:
true
},
xAxis
:
{
data
:
[
'1月'
,
'2月'
,
'3月'
,
'4月'
,
'6月'
,
'6月'
,
'7月'
,
'8月'
,
'9月'
,
'10月'
,
'11月'
,
'12月'
]
},
yAxis
:
{},
series
:
[{
type
:
'bar'
,
data
:
[
726
,
1013
,
690
,
892
,
982
,
570
,
536
,
546
,
988
,
1002
,
206
,
506
],
barMaxWidth
:
45
}]
};
myCharts3
.
setOption
(
option3
);
// 渲染访问量图表
var
myCharts4
=
echarts
.
init
(
document
.
getElementById
(
'fwl'
),
myEchartsTheme
);
var
option4
=
{
title
:
{
text
:
'访问量趋势'
,
textStyle
:
{
color
:
'#000'
,
fontSize
:
14
}
},
tooltip
:
{},
grid
:
{
left
:
'0'
,
right
:
'0'
,
bottom
:
'0'
,
containLabel
:
true
},
xAxis
:
{
data
:
[
'1月'
,
'2月'
,
'3月'
,
'4月'
,
'6月'
,
'6月'
,
'7月'
,
'8月'
,
'9月'
,
'10月'
,
'11月'
,
'12月'
]
},
yAxis
:
{},
series
:
[{
type
:
'bar'
,
data
:
[
558
,
856
,
880
,
1325
,
982
,
856
,
655
,
546
,
988
,
985
,
568
,
302
],
barMaxWidth
:
45
}]
};
myCharts4
.
setOption
(
option4
);
// 切换选项卡重新渲染
element
.
on
(
'tab(tabZZT)'
,
function
(
data
)
{
if
(
data
.
index
==
0
)
{
myCharts3
.
resize
();
}
else
{
myCharts4
.
resize
();
}
});
// 窗口大小改变事件
window
.
onresize
=
function
()
{
myCharts
.
resize
();
myCharts2
.
resize
();
myCharts3
.
resize
();
myCharts4
.
resize
();
};
});
</script>
</body>
</html>
\ No newline at end of file
src/main/webapp/pages/modular/frame/user_info.html
View file @
9bc60f6b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"layui-body-header"
>
<div
class=
"layui-body-header"
>
<span
class=
"layui-body-header-title"
>
个人中心
</span>
<span
class=
"layui-body-header-title"
>
个人中心
</span>
<span
class=
"layui-breadcrumb pull-right"
>
<span
class=
"layui-breadcrumb pull-right"
>
<a
href=
"${ctxPath}/system/
welcom
e"
>
首页
</a>
<a
href=
"${ctxPath}/system/
consol
e"
>
首页
</a>
<a><cite>
个人中心
</cite></a>
<a><cite>
个人中心
</cite></a>
</span>
</span>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment