Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-resource
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-resource
Commits
e13978e5
提交
e13978e5
authored
5月 27, 2025
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改资源统计为固定值
上级
9e6ace2f
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
14 行增加
和
14 行删除
+14
-14
Statistics.vue
src/modules/resource/dashboard/components/Statistics.vue
+3
-2
Index.vue
src/modules/resource/dashboard/views/Index.vue
+11
-12
没有找到文件。
src/modules/resource/dashboard/components/Statistics.vue
浏览文件 @
e13978e5
...
@@ -43,6 +43,7 @@ const bytesToSize = (bytes: number) => {
...
@@ -43,6 +43,7 @@ const bytesToSize = (bytes: number) => {
// flex-wrap: wrap;
// flex-wrap: wrap;
margin
-
top
:
-
20
px
;
margin
-
top
:
-
20
px
;
.
item
{
.
item
{
flex
:
1
;
padding
-
top
:
15
px
;
padding
-
top
:
15
px
;
min
-
width
:
10
%
;
min
-
width
:
10
%
;
height
:
140
px
;
height
:
140
px
;
...
@@ -53,7 +54,7 @@ const bytesToSize = (bytes: number) => {
...
@@ -53,7 +54,7 @@ const bytesToSize = (bytes: number) => {
margin
-
top
:
20
px
;
margin
-
top
:
20
px
;
&
:
nth
-
child
(
1
)
{
&
:
nth
-
child
(
1
)
{
.
icon
{
.
icon
{
background
-
image
:
url
(
/center_resource/
home
-
icon
1
.
png
);
background
-
image
:
url
(
/center_resource/
home
-
icon
5
.
png
);
}
}
}
}
&
:
nth
-
child
(
2
)
{
&
:
nth
-
child
(
2
)
{
...
@@ -73,7 +74,7 @@ const bytesToSize = (bytes: number) => {
...
@@ -73,7 +74,7 @@ const bytesToSize = (bytes: number) => {
}
}
&
:
nth
-
child
(
5
)
{
&
:
nth
-
child
(
5
)
{
.
icon
{
.
icon
{
background
-
image
:
url
(
/center_resource/
home
-
icon
5
.
png
);
background
-
image
:
url
(
/center_resource/
home
-
icon
1
.
png
);
}
}
}
}
&
:
nth
-
child
(
6
)
{
&
:
nth
-
child
(
6
)
{
...
...
src/modules/resource/dashboard/views/Index.vue
浏览文件 @
e13978e5
...
@@ -9,28 +9,27 @@ const data = reactive<{ statistics: object[]; latest: object[]; hot: object[]; l
...
@@ -9,28 +9,27 @@ const data = reactive<{ statistics: object[]; latest: object[]; hot: object[]; l
statistics
:
[],
statistics
:
[],
latest
:
[],
latest
:
[],
hot
:
[],
hot
:
[],
learn
:
[]
learn
:
[]
,
})
})
// 所有数据
// 所有数据
getUtilData
().
then
(
res
=>
{
getUtilData
().
then
(
(
res
)
=>
{
flag
=
true
flag
=
true
let
{
latest
=
[],
hot
=
[],
learn
=
[]
}:
{
latest
:
object
[];
hot
:
object
[];
learn
:
object
[]
}
=
res
.
data
let
{
latest
=
[],
hot
=
[],
learn
=
[]
}:
{
latest
:
object
[];
hot
:
object
[];
learn
:
object
[]
}
=
res
.
data
if
(
learn
===
null
)
learn
=
[]
if
(
learn
===
null
)
learn
=
[]
// 统计资源数据整合
// 统计资源数据整合
const
statisticsData
=
[
const
statisticsData
=
[
{
key
:
'video_count'
,
unit
:
'个'
,
number
:
0
,
text
:
'视频资源'
},
{
key
:
'1'
,
unit
:
'个'
,
number
:
10
,
text
:
'案例数量'
},
{
key
:
'courseware_count'
,
unit
:
'个'
,
number
:
0
,
text
:
'课件资源'
},
{
key
:
'2'
,
unit
:
'个'
,
number
:
79
,
text
:
'案例PPT资源数量'
},
{
key
:
'other_information_count'
,
unit
:
'个'
,
number
:
0
,
text
:
'其他资料'
},
{
key
:
'3'
,
unit
:
'个'
,
number
:
87
,
text
:
'案例指导书数量'
},
{
key
:
'question_count'
,
unit
:
'个'
,
number
:
0
,
text
:
'题库资源'
},
{
key
:
'4'
,
unit
:
'个'
,
number
:
19
,
text
:
'案例数据集'
},
{
key
:
'paper_count'
,
unit
:
'套'
,
number
:
0
,
text
:
'试卷资源'
},
{
key
:
'5'
,
unit
:
'个'
,
number
:
149
,
text
:
'案例操作视频'
},
{
key
:
'memory_size'
,
unit
:
''
,
number
:
0
,
text
:
'资源总体量'
},
{
key
:
'6'
,
unit
:
'个'
,
number
:
84
,
text
:
'行业数据集'
},
{
key
:
'length'
,
unit
:
'小时'
,
number
:
0
,
text
:
'资源总时长'
},
{
key
:
'7'
,
unit
:
'GB'
,
number
:
15.7
,
text
:
'资源总体量'
},
{
key
:
'learn_times'
,
unit
:
'人次'
,
number
:
0
,
text
:
'总学习人次'
},
{
key
:
'8'
,
unit
:
'小时'
,
number
:
22.63
,
text
:
'资源总时长'
},
{
key
:
'learn_time_length'
,
unit
:
'小时'
,
number
:
0
,
text
:
'总学习时长'
}
]
]
data
.
statistics
=
statisticsData
.
map
((
item
:
any
)
=>
{
data
.
statistics
=
statisticsData
.
map
((
item
:
any
)
=>
{
item
.
number
=
res
.
data
[
item
.
key
]
||
0
//
item.number = res.data[item.key] || 0
return
item
return
item
})
})
// 最近数据
// 最近数据
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论