Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
rs-admin
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
翟畅
rs-admin
Commits
9476d0c2
提交
9476d0c2
authored
12月 21, 2023
作者:
翟畅
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zc统计、资源添加所属目录
上级
244b97f2
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
222 行增加
和
34 行删除
+222
-34
traffic.js
src/api/statistics/traffic.js
+8
-0
top_common.scss
src/styles/top_common.scss
+7
-0
static.js
src/utils/static.js
+2
-1
index.vue
src/views/login/index.vue
+2
-1
index.vue
src/views/resource_manage/annex_module/index.vue
+45
-3
index.vue
src/views/resource_manage/audio_module/index.vue
+45
-3
index.vue
src/views/resource_manage/picture_module/index.vue
+45
-3
index.vue
src/views/resource_manage/video_module/index.vue
+44
-2
index.vue
src/views/statistics_manage/resource_module/index.vue
+22
-18
index.vue
src/views/statistics_manage/traffic_module/index.vue
+2
-3
没有找到文件。
src/api/statistics/traffic.js
浏览文件 @
9476d0c2
...
...
@@ -15,6 +15,14 @@ export function memberRelativeAPI() { //用户数据概览
})
}
export
function
bookQrListAPI
(
params
)
{
//一册一码列表
return
request
({
url
:
`
${
requestPath
.
resource
}
/statistics/page`
,
method
:
'get'
,
params
})
}
export
function
trendEchartsDataAPI
(
params
)
{
//用户趋势统计
return
request
({
url
:
`
${
requestPath
.
statistics
}
/api/sta/member/trendEchartsData`
,
...
...
src/styles/top_common.scss
浏览文件 @
9476d0c2
...
...
@@ -28,6 +28,13 @@
margin
:
0
30px
0
34px
;
float
:
left
;
}
.currentCataLogueBox
{
color
:
#222
;
line-height
:
66px
;
margin-left
:
10px
;
float
:
left
;
font-size
:
12px
;
}
.classify
{
// width: 90px;
padding
:
0
10px
;
...
...
src/utils/static.js
浏览文件 @
9476d0c2
...
...
@@ -153,7 +153,7 @@ export const resourcStaticList=[
{
label
:
'文章'
,
value
:
3
},
{
label
:
'视频'
,
value
:
5
},
{
label
:
'音频'
,
value
:
6
},
{
label
:
'专题'
,
value
:
7
},
//
{label:'专题',value:7},
{
label
:
'图片'
,
value
:
9
},
{
label
:
'附件'
,
value
:
12
},
]
\ No newline at end of file
src/views/login/index.vue
浏览文件 @
9476d0c2
...
...
@@ -294,7 +294,8 @@ export default {
}
this
.
$store
.
dispatch
(
'user/login'
,
this
.
loginForm
)
.
then
(()
=>
{
this
.
$router
.
push
({
path
:
this
.
redirect
||
'/'
,
query
:
this
.
otherQuery
})
// this.$router.push({ path: this.redirect || '/', query: this.otherQuery })
this
.
$router
.
push
({
path
:
'/dashboard'
,
query
:
this
.
otherQuery
})
getStoreStaff
()
this
.
loading
=
false
}).
catch
((
err
)
=>
{
...
...
src/views/resource_manage/annex_module/index.vue
浏览文件 @
9476d0c2
...
...
@@ -29,6 +29,7 @@
</el-tree>
</div>
</div>
<div
class=
"currentCataLogueBox"
v-if=
"currentCataLogueText"
>
所属分类目录:
{{
currentCataLogueText
}}
</div>
<div
class=
"top_tips"
@
click=
"searchDialog = true"
><i
class=
"el-icon-question"
></i></div>
<div
class=
"search_box"
>
...
...
@@ -100,12 +101,12 @@
<span
v-else
style=
"color:#999999"
><span
class=
"down_status"
></span>
已下架
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"createdTime"
label=
"关联图书"
min-width=
"10%"
show-overflow-tooltip
>
<el-table-column
align=
"center"
prop=
"createdTime"
label=
"关联图书
(资源码)
"
min-width=
"10%"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.nameList && scope.row.nameList.length > 0"
>
{{
scope
.
row
.
nameList
.
join
(
','
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"createdTime"
label=
"关联图书ISBN"
min-width=
"10%"
show-overflow-tooltip
>
<el-table-column
align=
"center"
prop=
"createdTime"
label=
"关联图书ISBN
(资源码)
"
min-width=
"10%"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.isbnList && scope.row.isbnList.length > 0"
>
{{
scope
.
row
.
isbnList
.
join
(
','
)
}}
</span>
</
template
>
...
...
@@ -230,7 +231,8 @@ import searchDia from "@/components/dialog/searchTips";
label
:
"typeName"
},
inResize
:
true
,
sending
:
null
sending
:
null
,
currentCataLogueText
:
''
,
}
},
mounted
()
{
...
...
@@ -454,6 +456,46 @@ import searchDia from "@/components/dialog/searchTips";
});
},
handleNodeClick
(
data
)
{
let
firstCode
=
data
.
code
.
substring
(
0
,
2
)
let
secondCode
=
data
.
code
.
substring
(
0
,
4
)
let
thirdCode
=
data
.
code
.
substring
(
0
,
6
)
let
forthCode
=
data
.
code
.
substring
(
0
,
8
)
let
txt
=
''
this
.
sortList
[
0
].
list
.
forEach
((
item
,
index
)
=>
{
if
(
firstCode
){
if
(
firstCode
==
item
.
code
){
txt
=
item
.
showName
}
}
if
(
item
.
list
&&
item
.
list
.
length
>
0
){
item
.
list
.
forEach
((
x
,
y
)
=>
{
if
(
secondCode
){
if
(
secondCode
==
x
.
code
){
txt
=
txt
+
' > '
+
x
.
showName
}
}
if
(
x
.
list
&&
x
.
list
.
length
>
0
){
x
.
list
.
forEach
((
a
,
b
)
=>
{
if
(
thirdCode
){
if
(
thirdCode
==
a
.
code
){
txt
=
txt
+
' > '
+
a
.
showName
}
}
if
(
a
.
list
&&
a
.
list
.
length
>
0
){
a
.
list
.
forEach
((
q
,
w
)
=>
{
if
(
forthCode
){
if
(
forthCode
==
q
.
code
){
txt
=
txt
+
' > '
+
q
.
showName
}
}
})
}
})
}
})
}
})
this
.
currentCataLogueText
=
txt
//点击分类--搜索
this
.
inResize
=
false
;
this
.
$nextTick
(
t
=>
{
...
...
src/views/resource_manage/audio_module/index.vue
浏览文件 @
9476d0c2
...
...
@@ -29,6 +29,7 @@
</el-tree>
</div>
</div>
<div
class=
"currentCataLogueBox"
v-if=
"currentCataLogueText"
>
所属分类目录:
{{
currentCataLogueText
}}
</div>
<div
class=
"container"
>
<el-form
inline
size=
"small"
:model=
"listQuery"
ref=
"listQuery"
:label-position=
"labelPosition"
label-width=
"100px"
>
<el-form-item
label=
"资源名称:"
>
...
...
@@ -79,12 +80,12 @@
<span
v-else
style=
"color:#999999"
><span
class=
"down_status"
></span>
已下架
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"createdTime"
label=
"关联图书"
min-width=
"10%"
show-overflow-tooltip
>
<el-table-column
align=
"center"
prop=
"createdTime"
label=
"关联图书
(资源码)
"
min-width=
"10%"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.nameList && scope.row.nameList.length > 0"
>
{{
scope
.
row
.
nameList
.
join
(
','
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"createdTime"
label=
"关联图书ISBN"
min-width=
"10%"
show-overflow-tooltip
>
<el-table-column
align=
"center"
prop=
"createdTime"
label=
"关联图书ISBN
(资源码)
"
min-width=
"10%"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.isbnList && scope.row.isbnList.length > 0"
>
{{
scope
.
row
.
isbnList
.
join
(
','
)
}}
</span>
</
template
>
...
...
@@ -176,7 +177,8 @@ export default {
dialogImport
:
false
,
importTitle
:
'导入音频'
,
action
:
'file/upload/info'
,
sending
:
null
sending
:
null
,
currentCataLogueText
:
''
,
}
},
mounted
()
{
...
...
@@ -360,6 +362,46 @@ export default {
})
},
handleNodeClick
(
data
)
{
//点击分类
let
firstCode
=
data
.
code
.
substring
(
0
,
2
)
let
secondCode
=
data
.
code
.
substring
(
0
,
4
)
let
thirdCode
=
data
.
code
.
substring
(
0
,
6
)
let
forthCode
=
data
.
code
.
substring
(
0
,
8
)
let
txt
=
''
this
.
sortList
[
0
].
list
.
forEach
((
item
,
index
)
=>
{
if
(
firstCode
){
if
(
firstCode
==
item
.
code
){
txt
=
item
.
showName
}
}
if
(
item
.
list
&&
item
.
list
.
length
>
0
){
item
.
list
.
forEach
((
x
,
y
)
=>
{
if
(
secondCode
){
if
(
secondCode
==
x
.
code
){
txt
=
txt
+
' > '
+
x
.
showName
}
}
if
(
x
.
list
&&
x
.
list
.
length
>
0
){
x
.
list
.
forEach
((
a
,
b
)
=>
{
if
(
thirdCode
){
if
(
thirdCode
==
a
.
code
){
txt
=
txt
+
' > '
+
a
.
showName
}
}
if
(
a
.
list
&&
a
.
list
.
length
>
0
){
a
.
list
.
forEach
((
q
,
w
)
=>
{
if
(
forthCode
){
if
(
forthCode
==
q
.
code
){
txt
=
txt
+
' > '
+
q
.
showName
}
}
})
}
})
}
})
}
})
this
.
currentCataLogueText
=
txt
this
.
inResize
=
false
;
this
.
$nextTick
(
t
=>
{
this
.
inResize
=
true
;
...
...
src/views/resource_manage/picture_module/index.vue
浏览文件 @
9476d0c2
...
...
@@ -29,6 +29,7 @@
</el-tree>
</div>
</div>
<div
class=
"currentCataLogueBox"
v-if=
"currentCataLogueText"
>
所属分类目录:
{{
currentCataLogueText
}}
</div>
<div
class=
"top_tips"
@
click=
"searchDialog = true"
><i
class=
"el-icon-question"
></i></div>
<div
class=
"search_box"
>
<el-input
class=
"search"
@
keyup
.
enter
.
native=
"getList(1)"
placeholder=
"请输入资源关键字模糊搜索,展开高级搜索可使用更多搜索条件"
v-model=
"listQuery.name"
>
...
...
@@ -89,12 +90,12 @@
<span
v-else
style=
"color:#999999"
><span
class=
"down_status"
></span>
已下架
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"createdTime"
label=
"关联图书"
min-width=
"10%"
show-overflow-tooltip
>
<el-table-column
align=
"center"
prop=
"createdTime"
label=
"关联图书
(资源码)
"
min-width=
"10%"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.nameList && scope.row.nameList.length > 0"
>
{{
scope
.
row
.
nameList
.
join
(
','
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"createdTime"
label=
"关联图书ISBN"
min-width=
"10%"
show-overflow-tooltip
>
<el-table-column
align=
"center"
prop=
"createdTime"
label=
"关联图书ISBN
(资源码)
"
min-width=
"10%"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.isbnList && scope.row.isbnList.length > 0"
>
{{
scope
.
row
.
isbnList
.
join
(
','
)
}}
</span>
</
template
>
...
...
@@ -212,7 +213,8 @@ import searchDia from "@/components/dialog/searchTips";
label
:
"typeName"
},
inResize
:
true
,
sending
:
null
sending
:
null
,
currentCataLogueText
:
''
,
}
},
mounted
()
{
...
...
@@ -437,6 +439,46 @@ import searchDia from "@/components/dialog/searchTips";
});
},
handleNodeClick
(
data
)
{
let
firstCode
=
data
.
code
.
substring
(
0
,
2
)
let
secondCode
=
data
.
code
.
substring
(
0
,
4
)
let
thirdCode
=
data
.
code
.
substring
(
0
,
6
)
let
forthCode
=
data
.
code
.
substring
(
0
,
8
)
let
txt
=
''
this
.
sortList
[
0
].
list
.
forEach
((
item
,
index
)
=>
{
if
(
firstCode
){
if
(
firstCode
==
item
.
code
){
txt
=
item
.
showName
}
}
if
(
item
.
list
&&
item
.
list
.
length
>
0
){
item
.
list
.
forEach
((
x
,
y
)
=>
{
if
(
secondCode
){
if
(
secondCode
==
x
.
code
){
txt
=
txt
+
' > '
+
x
.
showName
}
}
if
(
x
.
list
&&
x
.
list
.
length
>
0
){
x
.
list
.
forEach
((
a
,
b
)
=>
{
if
(
thirdCode
){
if
(
thirdCode
==
a
.
code
){
txt
=
txt
+
' > '
+
a
.
showName
}
}
if
(
a
.
list
&&
a
.
list
.
length
>
0
){
a
.
list
.
forEach
((
q
,
w
)
=>
{
if
(
forthCode
){
if
(
forthCode
==
q
.
code
){
txt
=
txt
+
' > '
+
q
.
showName
}
}
})
}
})
}
})
}
})
this
.
currentCataLogueText
=
txt
//点击分类--搜索
this
.
inResize
=
false
;
this
.
$nextTick
(
t
=>
{
...
...
src/views/resource_manage/video_module/index.vue
浏览文件 @
9476d0c2
...
...
@@ -29,6 +29,7 @@
</el-tree>
</div>
</div>
<div
class=
"currentCataLogueBox"
v-if=
"currentCataLogueText"
>
所属分类目录:
{{
currentCataLogueText
}}
</div>
<div
class=
"container"
>
<el-form
inline
size=
"small"
:model=
"listQuery"
ref=
"listQuery"
:label-position=
"labelPosition"
label-width=
"100px"
>
<el-form-item
label=
"资源名称:"
>
...
...
@@ -84,12 +85,12 @@
<span
v-else
style=
"color:#999999"
><span
class=
"down_status"
></span>
已下架
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"createdTime"
label=
"关联图书"
min-width=
"10%"
show-overflow-tooltip
>
<el-table-column
align=
"center"
prop=
"createdTime"
label=
"关联图书
(资源码)
"
min-width=
"10%"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.nameList && scope.row.nameList.length > 0"
>
{{
scope
.
row
.
nameList
.
join
(
','
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"createdTime"
label=
"关联图书ISBN"
min-width=
"10%"
show-overflow-tooltip
>
<el-table-column
align=
"center"
prop=
"createdTime"
label=
"关联图书ISBN
(资源码)
"
min-width=
"10%"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.isbnList && scope.row.isbnList.length > 0"
>
{{
scope
.
row
.
isbnList
.
join
(
','
)
}}
</span>
</
template
>
...
...
@@ -217,6 +218,7 @@ export default {
action
:
"file/upload/info"
,
sending
:
null
,
centerQRDialogVisible
:
false
,
currentCataLogueText
:
''
,
};
},
mounted
()
{
...
...
@@ -473,6 +475,46 @@ export default {
});
},
handleNodeClick
(
data
)
{
let
firstCode
=
data
.
code
.
substring
(
0
,
2
)
let
secondCode
=
data
.
code
.
substring
(
0
,
4
)
let
thirdCode
=
data
.
code
.
substring
(
0
,
6
)
let
forthCode
=
data
.
code
.
substring
(
0
,
8
)
let
txt
=
''
this
.
sortList
[
0
].
list
.
forEach
((
item
,
index
)
=>
{
if
(
firstCode
){
if
(
firstCode
==
item
.
code
){
txt
=
item
.
showName
}
}
if
(
item
.
list
&&
item
.
list
.
length
>
0
){
item
.
list
.
forEach
((
x
,
y
)
=>
{
if
(
secondCode
){
if
(
secondCode
==
x
.
code
){
txt
=
txt
+
' > '
+
x
.
showName
}
}
if
(
x
.
list
&&
x
.
list
.
length
>
0
){
x
.
list
.
forEach
((
a
,
b
)
=>
{
if
(
thirdCode
){
if
(
thirdCode
==
a
.
code
){
txt
=
txt
+
' > '
+
a
.
showName
}
}
if
(
a
.
list
&&
a
.
list
.
length
>
0
){
a
.
list
.
forEach
((
q
,
w
)
=>
{
if
(
forthCode
){
if
(
forthCode
==
q
.
code
){
txt
=
txt
+
' > '
+
q
.
showName
}
}
})
}
})
}
})
}
})
this
.
currentCataLogueText
=
txt
//点击分类--搜索
this
.
inResize
=
false
;
this
.
$nextTick
(
t
=>
{
...
...
src/views/statistics_manage/resource_module/index.vue
浏览文件 @
9476d0c2
...
...
@@ -61,7 +61,7 @@
<div
class=
"select_box"
>
<select-box
:list=
"resourceList"
@
change=
"resourceTypeChange"
></select-box>
<select-box
title=
"指标筛选"
:list=
"dimensionList"
class=
"dimension"
@
change=
"dimensionChange"
></select-box>
<
select-box
title=
"渠道"
:list=
"irrigationDitchList"
class=
"dimension"
@
change=
"irrigationDitchChange"
></select-box
>
<
!--
<select-box
title=
"渠道"
:list=
"irrigationDitchList"
class=
"dimension"
@
change=
"irrigationDitchChange"
></select-box>
--
>
</div>
<echarts1
ref=
"chart_three"
:height=
"400"
></echarts1>
</div>
...
...
@@ -153,7 +153,7 @@ export default {
tableRowStyle
:{
height
:
'50px'
},
dateValue
:[],
tabList
:[
{
name
:
'按时'
,
check
:
false
,
value
:
1
},
//
{name:'按时',check:false,value:1},
{
name
:
'按日'
,
check
:
true
,
value
:
2
},
{
name
:
'按周'
,
check
:
false
,
value
:
3
},
{
name
:
'按月'
,
check
:
false
,
value
:
4
},
...
...
@@ -317,7 +317,7 @@ export default {
getResourceStatistics
(){
getNumberAPI
().
then
(
res
=>
{
if
(
res
.
data
.
code
==
0
){
let
list
=
res
.
data
.
data
let
list
=
res
.
data
.
data
.
filter
((
item
)
=>
item
.
type
!=
7
)
let
xData
=
[]
let
list1
=
[]
let
list2
=
[]
...
...
@@ -380,7 +380,7 @@ export default {
getResourceType
(){
getNumberAllAPI
().
then
(
res
=>
{
if
(
res
.
data
.
code
==
0
){
let
list
=
res
.
data
.
data
let
list
=
res
.
data
.
data
.
filter
((
item
)
=>
item
.
type
!=
7
)
let
list1
=
[]
list
.
forEach
(
item
=>
{
let
arr
=
this
.
resourcStaticList
.
filter
(
e
=>
e
.
value
==
item
.
type
)
...
...
@@ -472,20 +472,24 @@ export default {
})
},
getResourceTrend
(){
this
.
trendObj
.
startTime
=
this
.
dateValue
?
this
.
dateValue
[
0
]
+
' 00:00:00'
:
null
this
.
trendObj
.
endTime
=
this
.
dateValue
?
this
.
dateValue
[
1
]
+
' 23:59:59'
:
null
getResourceTrendAPI
(
this
.
trendObj
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
0
){
let
list
=
res
.
data
.
data
let
list1
=
[]
let
list2
=
[]
list
.
forEach
(
item
=>
{
list1
.
push
(
item
.
date
)
list2
.
push
(
item
.
amount
)
})
this
.
getResourceChange
(
list1
,
list2
)
}
})
if
(
this
.
dateValue
){
this
.
trendObj
.
startTime
=
this
.
dateValue
?
this
.
dateValue
[
0
]
+
' 00:00:00'
:
null
this
.
trendObj
.
endTime
=
this
.
dateValue
?
this
.
dateValue
[
1
]
+
' 23:59:59'
:
null
getResourceTrendAPI
(
this
.
trendObj
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
0
){
let
list
=
res
.
data
.
data
let
list1
=
[]
let
list2
=
[]
list
.
forEach
(
item
=>
{
list1
.
push
(
item
.
date
)
list2
.
push
(
item
.
amount
)
})
this
.
getResourceChange
(
list1
,
list2
)
}
})
}
else
{
this
.
$message
.
warning
(
'请先选择统计日期'
)
}
},
getResourceChange
(
list1
,
list2
){
let
option
=
{
...
...
src/views/statistics_manage/traffic_module/index.vue
浏览文件 @
9476d0c2
...
...
@@ -64,8 +64,7 @@
</template>
<
script
>
import
{
getPhysicalCodeAPI
}
from
'@/api/statistics/traffic'
import
{
bookListAPI
}
from
"@/api/resource/paperbook"
;
import
{
getPhysicalCodeAPI
,
bookQrListAPI
}
from
'@/api/statistics/traffic'
import
echarts1
from
'@/components/echarts/echarts.vue'
export
default
{
name
:
'traffic_module'
,
...
...
@@ -96,7 +95,7 @@ export default {
methods
:
{
getList
()
{
bookListAPI
(
this
.
listQuery
).
then
(
res
=>
{
book
Qr
ListAPI
(
this
.
listQuery
).
then
(
res
=>
{
if
(
res
.
data
.
code
===
0
)
{
this
.
dataList
=
res
.
data
.
data
.
list
?
res
.
data
.
data
.
list
:[];
this
.
total
=
res
.
data
.
data
.
total
?
res
.
data
.
data
.
total
:
0
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论