Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
FLIPPED-AURORA
gin-vue-admin
提交
1f6e35ee
G
gin-vue-admin
项目概览
FLIPPED-AURORA
/
gin-vue-admin
大约 1 年 前同步成功
通知
333
Star
18155
Fork
5506
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gin-vue-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1f6e35ee
编写于
9月 02, 2021
作者:
P
piexlmax
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
首页优化
上级
69c485cc
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
329 addition
and
280 deletion
+329
-280
web/package-lock.json
web/package-lock.json
+35
-6
web/src/components/dashbordCharts/echartsLine.vue
web/src/components/dashbordCharts/echartsLine.vue
+125
-101
web/src/components/dashbordTable/dashbordTable.vue
web/src/components/dashbordTable/dashbordTable.vue
+33
-36
web/src/view/dashboard/index.vue
web/src/view/dashboard/index.vue
+136
-137
未找到文件。
web/package-lock.json
浏览文件 @
1f6e35ee
{
"name"
:
"gin-vue-admin"
,
"version"
:
"
0.1.0
"
,
"version"
:
"
2.3.5
"
,
"lockfileVersion"
:
1
,
"requires"
:
true
,
"dependencies"
:
{
...
...
@@ -2381,6 +2381,7 @@
"version"
:
"3.1.2"
,
"resolved"
:
"https://registry.npm.taobao.org/anymatch/download/anymatch-3.1.2.tgz?cache=0&sync_timestamp=1617747806715&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fanymatch%2Fdownload%2Fanymatch-3.1.2.tgz"
,
"integrity"
:
"sha1-wFV8CWrzLxBhmPT04qODU343hxY="
,
"dev"
:
true
,
"requires"
:
{
"normalize-path"
:
"^3.0.0"
,
"picomatch"
:
"^2.0.4"
...
...
@@ -2800,7 +2801,8 @@
"binary-extensions"
:
{
"version"
:
"2.2.0"
,
"resolved"
:
"https://registry.npm.taobao.org/binary-extensions/download/binary-extensions-2.2.0.tgz"
,
"integrity"
:
"sha1-dfUC7q+f/eQvyYgpZFvk6na9ni0="
"integrity"
:
"sha1-dfUC7q+f/eQvyYgpZFvk6na9ni0="
,
"dev"
:
true
},
"bindings"
:
{
"version"
:
"1.5.0"
,
...
...
@@ -3256,6 +3258,7 @@
"version"
:
"3.5.2"
,
"resolved"
:
"https://registry.nlark.com/chokidar/download/chokidar-3.5.2.tgz"
,
"integrity"
:
"sha1-26OXb8rbAW9m/TZQIdkWANAcHnU="
,
"dev"
:
true
,
"requires"
:
{
"anymatch"
:
"~3.1.2"
,
"braces"
:
"~3.0.2"
,
...
...
@@ -3271,6 +3274,7 @@
"version"
:
"3.0.2"
,
"resolved"
:
"https://registry.npm.taobao.org/braces/download/braces-3.0.2.tgz"
,
"integrity"
:
"sha1-NFThpGLujVmeI23zNs2epPiv4Qc="
,
"dev"
:
true
,
"requires"
:
{
"fill-range"
:
"^7.0.1"
}
...
...
@@ -3279,6 +3283,7 @@
"version"
:
"7.0.1"
,
"resolved"
:
"https://registry.npm.taobao.org/fill-range/download/fill-range-7.0.1.tgz"
,
"integrity"
:
"sha1-GRmmp8df44ssfHflGYU12prN2kA="
,
"dev"
:
true
,
"requires"
:
{
"to-regex-range"
:
"^5.0.1"
}
...
...
@@ -3286,12 +3291,14 @@
"is-number"
:
{
"version"
:
"7.0.0"
,
"resolved"
:
"https://registry.npm.taobao.org/is-number/download/is-number-7.0.0.tgz"
,
"integrity"
:
"sha1-dTU0W4lnNNX4DE0GxQlVUnoU8Ss="
"integrity"
:
"sha1-dTU0W4lnNNX4DE0GxQlVUnoU8Ss="
,
"dev"
:
true
},
"to-regex-range"
:
{
"version"
:
"5.0.1"
,
"resolved"
:
"https://registry.npm.taobao.org/to-regex-range/download/to-regex-range-5.0.1.tgz"
,
"integrity"
:
"sha1-FkjESq58jZiKMmAY7XL1tN0DkuQ="
,
"dev"
:
true
,
"requires"
:
{
"is-number"
:
"^7.0.0"
}
...
...
@@ -4773,6 +4780,14 @@
"safer-buffer"
:
"^2.1.0"
}
},
"echarts"
:
{
"version"
:
"4.9.0"
,
"resolved"
:
"https://registry.npmjs.org/echarts/-/echarts-4.9.0.tgz"
,
"integrity"
:
"sha512-+ugizgtJ+KmsJyyDPxaw2Br5FqzuBnyOWwcxPKO6y0gc5caYcfnEUIlNStx02necw8jmKmTafmpHhGo4XDtEIA=="
,
"requires"
:
{
"zrender"
:
"4.3.2"
}
},
"ee-first"
:
{
"version"
:
"1.1.1"
,
"resolved"
:
"https://registry.npm.taobao.org/ee-first/download/ee-first-1.1.1.tgz"
,
...
...
@@ -5806,6 +5821,7 @@
"version"
:
"2.3.2"
,
"resolved"
:
"https://registry.npm.taobao.org/fsevents/download/fsevents-2.3.2.tgz?cache=0&sync_timestamp=1612536546156&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffsevents%2Fdownload%2Ffsevents-2.3.2.tgz"
,
"integrity"
:
"sha1-ilJveLj99GI7cJ4Ll1xSwkwC/Ro="
,
"dev"
:
true
,
"optional"
:
true
},
"function-bind"
:
{
...
...
@@ -5892,6 +5908,7 @@
"version"
:
"5.1.2"
,
"resolved"
:
"https://registry.nlark.com/glob-parent/download/glob-parent-5.1.2.tgz?cache=0&sync_timestamp=1626760200164&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fglob-parent%2Fdownload%2Fglob-parent-5.1.2.tgz"
,
"integrity"
:
"sha1-hpgyxYA0/mikCTwX3BXoNA2EAcQ="
,
"dev"
:
true
,
"requires"
:
{
"is-glob"
:
"^4.0.1"
}
...
...
@@ -6766,6 +6783,7 @@
"version"
:
"2.1.0"
,
"resolved"
:
"https://registry.npm.taobao.org/is-binary-path/download/is-binary-path-2.1.0.tgz"
,
"integrity"
:
"sha1-6h9/O4DwZCNug0cPhsCcJU+0Wwk="
,
"dev"
:
true
,
"requires"
:
{
"binary-extensions"
:
"^2.0.0"
}
...
...
@@ -6892,7 +6910,8 @@
"is-extglob"
:
{
"version"
:
"2.1.1"
,
"resolved"
:
"https://registry.npm.taobao.org/is-extglob/download/is-extglob-2.1.1.tgz"
,
"integrity"
:
"sha1-qIwCU1eR8C7TfHahueqXc8gz+MI="
"integrity"
:
"sha1-qIwCU1eR8C7TfHahueqXc8gz+MI="
,
"dev"
:
true
},
"is-fullwidth-code-point"
:
{
"version"
:
"3.0.0"
,
...
...
@@ -6904,6 +6923,7 @@
"version"
:
"4.0.1"
,
"resolved"
:
"https://registry.npm.taobao.org/is-glob/download/is-glob-4.0.1.tgz"
,
"integrity"
:
"sha1-dWfb6fL14kZ7x3q4PEopSCQHpdw="
,
"dev"
:
true
,
"requires"
:
{
"is-extglob"
:
"^2.1.1"
}
...
...
@@ -7922,7 +7942,8 @@
"normalize-path"
:
{
"version"
:
"3.0.0"
,
"resolved"
:
"https://registry.npm.taobao.org/normalize-path/download/normalize-path-3.0.0.tgz"
,
"integrity"
:
"sha1-Dc1p/yOhybEf0JeDFmRKA4ghamU="
"integrity"
:
"sha1-Dc1p/yOhybEf0JeDFmRKA4ghamU="
,
"dev"
:
true
},
"normalize-range"
:
{
"version"
:
"0.1.2"
,
...
...
@@ -8472,7 +8493,8 @@
"picomatch"
:
{
"version"
:
"2.3.0"
,
"resolved"
:
"https://registry.nlark.com/picomatch/download/picomatch-2.3.0.tgz"
,
"integrity"
:
"sha1-8fBh3o9qS/AiiS4tEoI0+5gwKXI="
"integrity"
:
"sha1-8fBh3o9qS/AiiS4tEoI0+5gwKXI="
,
"dev"
:
true
},
"pify"
:
{
"version"
:
"4.0.1"
,
...
...
@@ -9468,6 +9490,7 @@
"version"
:
"3.6.0"
,
"resolved"
:
"https://registry.nlark.com/readdirp/download/readdirp-3.6.0.tgz"
,
"integrity"
:
"sha1-dKNwvYVxFuJFspzJc0DNQxoCpsc="
,
"dev"
:
true
,
"requires"
:
{
"picomatch"
:
"^2.2.1"
}
...
...
@@ -9866,6 +9889,7 @@
"version"
:
"1.38.1"
,
"resolved"
:
"https://registry.nlark.com/sass/download/sass-1.38.1.tgz?cache=0&sync_timestamp=1629764768435&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fsass%2Fdownload%2Fsass-1.38.1.tgz"
,
"integrity"
:
"sha1-VN+xf7FohGtYUDJLgvxi3Gj1G60="
,
"dev"
:
true
,
"requires"
:
{
"chokidar"
:
">=3.0.0 <4.0.0"
}
...
...
@@ -12539,6 +12563,11 @@
"dev"
:
true
}
}
},
"zrender"
:
{
"version"
:
"4.3.2"
,
"resolved"
:
"https://registry.npmjs.org/zrender/-/zrender-4.3.2.tgz"
,
"integrity"
:
"sha512-bIusJLS8c4DkIcdiK+s13HiQ/zjQQVgpNohtd8d94Y2DnJqgM1yjh/jpDb8DoL6hd7r8Awagw8e3qK/oLaWr3g=="
}
}
}
web/src/components/dashbordCharts/echartsLine.vue
浏览文件 @
1f6e35ee
<
template
>
<div
class=
"dashbord-line"
style=
"height: 400px;width: 100%;"
></div>
<div
class=
"dashbord-line-box"
>
<div
class=
"dashbord-line-title"
>
Gva 仓库commit 记录
</div>
<div
ref=
"echart"
class=
"dashbord-line"
/>
</div>
</
template
>
<
script
>
import
echarts
from
"
echarts
"
;
require
(
"
echarts/theme/macarons
"
);
import
echarts
from
'
echarts
'
require
(
'
echarts/theme/macarons
'
)
var
dataAxis
=
[];
for
(
var
i
=
1
;
i
<
21
;
i
++
){
var
dataAxis
=
[]
for
(
var
i
=
1
;
i
<
21
;
i
++
)
{
dataAxis
.
push
(
`
${
i
}
号`
)
}
var
data
=
[
220
,
182
,
191
,
234
,
290
,
330
,
310
,
123
,
442
,
321
,
90
,
149
,
210
,
122
,
133
,
334
,
198
,
123
,
125
,
220
];
var
yMax
=
500
;
var
dataShadow
=
[];
var
data
=
[
220
,
182
,
191
,
234
,
290
,
330
,
310
,
123
,
442
,
321
,
90
,
149
,
210
,
122
,
133
,
334
,
198
,
123
,
125
,
220
,
]
var
yMax
=
500
var
dataShadow
=
[]
// eslint-disable-next-line no-redeclare
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
dataShadow
.
push
(
yMax
);
dataShadow
.
push
(
yMax
)
}
export
default
{
name
:
"
line
"
,
name
:
'
Line
'
,
data
()
{
return
{
chart
:
null
,
};
}
},
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
initChart
();
});
this
.
initChart
()
})
},
beforeDestroy
()
{
if
(
!
this
.
chart
)
{
return
;
return
}
this
.
chart
.
dispose
();
this
.
chart
=
null
;
this
.
chart
.
dispose
()
this
.
chart
=
null
},
methods
:
{
initChart
()
{
this
.
chart
=
echarts
.
init
(
this
.
$el
,
"
macarons
"
);
this
.
setOptions
();
this
.
chart
=
echarts
.
init
(
this
.
$refs
.
echart
,
'
macarons
'
)
this
.
setOptions
()
},
setOptions
()
{
this
.
chart
.
setOption
({
title
:
{
text
:
'
GVA 图标示例
'
,
},
xAxis
:
{
data
:
dataAxis
,
axisTick
:
{
show
:
false
show
:
false
,
},
axisLine
:
{
show
:
false
show
:
false
,
},
z
:
10
z
:
10
,
},
yAxis
:
{
axisLine
:
{
show
:
false
show
:
false
,
},
axisTick
:
{
show
:
false
show
:
false
,
},
axisLabel
:
{
textStyle
:
{
color
:
'
#999
'
}
}
color
:
'
#999
'
,
},
},
},
dataZoom
:
[
{
type
:
'
inside
'
}
type
:
'
inside
'
,
},
],
series
:
[
{
type
:
'
bar
'
,
itemStyle
:
{
borderRadius
:
[
5
,
5
,
0
,
0
],
color
:
new
echarts
.
graphic
.
LinearGradient
(
0
,
0
,
0
,
1
,
[
color
:
new
echarts
.
graphic
.
LinearGradient
(
0
,
0
,
0
,
1
,
[
{
offset
:
0
,
color
:
'
#83bff6
'
},
{
offset
:
0.5
,
color
:
'
#188df0
'
},
{
offset
:
1
,
color
:
'
#188df0
'
}
]
),
{
offset
:
1
,
color
:
'
#188df0
'
},
]),
},
emphasis
:
{
itemStyle
:
{
color
:
new
echarts
.
graphic
.
LinearGradient
(
0
,
0
,
0
,
1
,
[
color
:
new
echarts
.
graphic
.
LinearGradient
(
0
,
0
,
0
,
1
,
[
{
offset
:
0
,
color
:
'
#2378f7
'
},
{
offset
:
0.7
,
color
:
'
#2378f7
'
},
{
offset
:
1
,
color
:
'
#83bff6
'
}
]
)
}
{
offset
:
1
,
color
:
'
#83bff6
'
},
]),
},
data
:
data
}
]
});
},
data
:
data
,
},
],
})
},
};
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
.dashbord-line
{
margin
:
20px
0
;
.dashbord-line-box
{
padding
:
20px
;
.dashbord-line
{
background-color
:
#fff
;
height
:
360px
;
width
:
calc
(
100%
-
40px
);
}
.dashbord-line-title
{
color
:
rgb
(
56
,
137
,
206
);
font-size
:
18px
;
}
}
</
style
>
web/src/components/dashbordTable/dashbordTable.vue
浏览文件 @
1f6e35ee
<
template
>
<div
class=
"commit-table"
>
<div
class=
"commit-table-title"
>
Gva 仓库commit 记录
</div>
<el-table
:data=
"dataTimeline"
style=
"width: 100%"
v-loading=
"loading
"
>
<el-table-column
prop=
"from"
show-overflow-tooltip
label=
"日期"
width=
"180"
></el-table-column
>
<el-table-column
prop=
"title"
show-overflow-tooltip
label=
"推送者"
width=
"120"
></el-table-column
>
<el-table-column
prop=
"message"
show-overflow-tooltip
label=
"commit 信息"
></el-table-column
>
<el-table
v-loading=
"loading"
:data=
"dataTimeline"
style=
"width: 100%
"
>
<el-table-column
prop=
"from"
show-overflow-tooltip
label=
"日期"
width=
"180"
/
>
<el-table-column
prop=
"title"
show-overflow-tooltip
label=
"推送者"
width=
"120"
/
>
<el-table-column
prop=
"message"
show-overflow-tooltip
label=
"commit 信息"
/
>
</el-table>
</div>
</
template
>
...
...
@@ -25,7 +25,7 @@ export default {
loadCommits
()
{
Commits
(
0
).
then
(({
data
})
=>
{
this
.
loading
=
false
data
.
forEach
((
element
,
index
)
=>
{
data
.
forEach
((
element
,
index
)
=>
{
if
(
element
.
commit
.
message
&&
index
<
6
)
{
this
.
dataTimeline
.
push
({
from
:
new
Date
(
element
.
commit
.
author
.
date
),
...
...
@@ -42,15 +42,12 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.commit-table
{
margin
:
20px
0
;
padding
:
20px
;
background-color
:
#fff
;
height
:
400px
;
&
-title
{
color
:
rgb
(
56
,
137
,
206
);
font-size
:
18px
;
margin
:
20px
0
;
}
}
</
style
>
web/src/view/dashboard/index.vue
浏览文件 @
1f6e35ee
...
...
@@ -8,23 +8,23 @@
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
:xs=
"24"
:sm=
"8"
>
<div
class=
"flex-center"
>
<i
class=
"el-icon-sort icon"
></i
>
今日流量 (1231231)
<i
class=
"el-icon-sort icon"
/
>
今日流量 (1231231)
</div>
</el-col>
<el-col
:span=
"8"
:xs=
"24"
:sm=
"8"
>
<div
class=
"flex-center"
>
<i
class=
"el-icon-s-custom icon"
></i
>
总用户数 (24001)
<i
class=
"el-icon-s-custom icon"
/
>
总用户数 (24001)
</div>
</el-col>
<el-col
:span=
"8"
:xs=
"24"
:sm=
"8"
>
<div
class=
"flex-center"
>
<i
class=
"el-icon-s-comment icon"
></i
>
好评率 (99%)
<i
class=
"el-icon-s-comment icon"
/
>
好评率 (99%)
</div>
</el-col>
</el-row>
</div>
</div>
<img
src=
"@/assets/dashbord.png"
class=
"dashbord1-right"
alt
/
>
<img
src=
"@/assets/dashbord.png"
class=
"dashbord1-right"
alt
>
</div>
<div
class=
"mycard dashbord2"
>
<div>
...
...
@@ -59,8 +59,8 @@
:key=
"key"
:span=
"4"
:xs=
"8"
@
click=
"toTarget(card.name)"
class=
"quick-entrance-items"
@
click=
"toTarget(card.name)"
>
<div
class=
"quick-entrance-item"
>
<div
class=
"quick-entrance-item-icon"
:style=
"{ backgroundColor: card.bg }"
>
...
...
@@ -73,14 +73,13 @@
</el-card>
<!-- <div class="quick-entrance-title"></div> -->
<div
class=
"mycard"
>
<el-row
:gutter=
"0"
>
<el-col
:xs=
"24"
:sm=
"16"
>
<echarts-line></echarts-line
>
<echarts-line
/
>
</el-col>
<el-col
:xs=
"24"
:sm=
"8"
>
<dashbord-table></dashbord-table
>
<dashbord-table
/
>
</el-col>
</el-row>
</div>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录