Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
exhibition_backstage
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
龙菲
exhibition_backstage
Commits
04c41f5c
提交
04c41f5c
authored
12月 04, 2023
作者:
龙菲
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复首页统计图颜色无法正常显示、分页问题
上级
2b9326cd
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
56 行增加
和
62 行删除
+56
-62
config.js
src/views/home/config.js
+32
-32
index.vue
src/views/home/index.vue
+24
-30
没有找到文件。
src/views/home/config.js
浏览文件 @
04c41f5c
export
const
title
=
[{
prop
:
"name"
,
label
:
"名称"
,
columnAlign
:
'center'
,
},
{
prop
:
"deptName"
,
label
:
"馆藏单位/展览单位"
,
columnAlign
:
'center'
,
},
{
prop
:
"regionName"
,
label
:
"所在地区"
,
columnAlign
:
'center'
,
},
{
prop
:
"browseCount"
,
label
:
"点击量"
,
columnAlign
:
'center'
,
sortable
:
true
},
{
prop
:
"collectCount"
,
label
:
"点赞
量"
,
columnAlign
:
'center'
,
sortable
:
true
},
prop
:
"name"
,
label
:
"名称"
,
columnAlign
:
'center'
,
},
{
prop
:
"deptName"
,
label
:
"馆藏单位/展览单位"
,
columnAlign
:
'center'
,
},
{
prop
:
"regionName"
,
label
:
"所在地区"
,
columnAlign
:
'center'
,
},
{
prop
:
"browseCount"
,
label
:
"点击量"
,
columnAlign
:
'center'
,
sortable
:
true
},
{
prop
:
"collectCount"
,
label
:
"收藏
量"
,
columnAlign
:
'center'
,
sortable
:
true
},
{
prop
:
"loveCount"
,
label
:
"收藏
量"
,
columnAlign
:
'center'
,
sortable
:
true
},
{
prop
:
"loveCount"
,
label
:
"点赞
量"
,
columnAlign
:
'center'
,
sortable
:
true
},
]
src/views/home/index.vue
浏览文件 @
04c41f5c
...
...
@@ -205,6 +205,7 @@ export default {
watch
:
{
currentSortPage
(
value
)
{
this
.
currentSortPage
=
value
;
this
.
list
.
current
=
1
;
this
.
loadListByPageSort
();
},
activeName
(
value
)
{
...
...
@@ -340,26 +341,6 @@ export default {
containLabel
:
true
,
},
],
// legend: {
// bottom: '4%',
// right: '10%',
// orient: 'vertical',
// width: 540,
// height: 240,
// padding: [14, 20],
// backgroundColor: 'rgba(236,246,255,0.30)',
// borderWidth: 1,
// borderColor: '#E7F2FB',
// borderRadius: 4,
// icon: 'circle',
// itemWidth: 8,
// itemHeight: 8,
// textStyle: {
// color: '#333333',
// fontSize: 12,
// },
// data: legendList,
// },
xAxis
:
[
{
type
:
"value"
,
...
...
@@ -442,16 +423,26 @@ export default {
color
:
function
(
params
)
{
// 定义一个颜色集合
let
colorList
=
[
"#52A8FF"
,
"#00B389"
,
"#FFA940"
,
"#FF5A57"
,
"#29EFC4"
,
"#F8AEA4"
,
"#FFC53D"
,
"#009982"
,
"#C099FC"
,
"#F5855F"
,
"#c065e7"
,
"#765deb"
,
"#3862d8"
,
"#6a89E2"
,
"#219CF9"
,
"#6efbbf"
,
"#40c057"
,
"#ffd351"
,
"#ff8e43"
,
"#f56b6d"
,
"#c065e7"
,
"#765deb"
,
"#3862d8"
,
"#6a89E2"
,
"#219CF9"
,
"#6efbbf"
,
"#40c057"
,
"#ffd351"
,
"#ff8e43"
,
"#f56b6d"
,
];
// 对每个bar显示一种颜色
return
colorList
[
params
.
dataIndex
];
...
...
@@ -662,6 +653,8 @@ export default {
async
loadListByPageSort
()
{
const
params
=
{
type
:
this
.
currentSortPage
,
page
:
this
.
list
.
current
,
limit
:
this
.
list
.
size
,
};
let
res
=
await
getListByPageSort
(
params
);
let
data
=
res
.
data
;
...
...
@@ -737,6 +730,7 @@ export default {
// 改变当前显示页
handleCurrentChange
(
value
)
{
// debugger;
this
.
list
.
current
=
value
;
this
.
loadListByPageSort
();
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论