Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tea-resources-web
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
tea-resources-web
Commits
c0379768
Commit
c0379768
authored
May 15, 2024
by
WBY1026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成数据统计的全部部分
parent
568d16b5
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
414 additions
and
52 deletions
+414
-52
assessView.js
src/api/dataStatistics/assessView.js
+44
-0
userView.js
src/api/dataStatistics/userView.js
+65
-0
index.vue
src/views/dataStatistics/assessView/index.vue
+118
-27
index.vue
src/views/dataStatistics/userView/index.vue
+187
-25
No files found.
src/api/dataStatistics/assessView.js
0 → 100644
View file @
c0379768
import
request
from
'@/utils/request'
/**
* 查询列表
* @param params
* @returns {AxiosPromise}
*/
export
function
getExamineList
(
name
,
rows
,
page
)
{
return
request
({
url
:
'/blesson/getExamineList?rows='
+
rows
+
'&page='
+
page
+
'&lessonName='
+
name
,
method
:
'get'
})
}
// 查询侧拉列表
// 参与考核人数
export
function
getExamineParticipant
(
businessId
,
page
,
rows
)
{
return
request
({
url
:
'/blesson/getExamineParticipant?businessId='
+
businessId
+
'&page='
+
page
+
'&rows='
+
rows
,
method
:
'get'
})
}
// 满分人数
export
function
getFullMark
(
businessId
,
page
,
rows
)
{
return
request
({
url
:
'/blesson/getFullMark?businessId='
+
businessId
+
'&page='
+
page
+
'&rows='
+
rows
,
method
:
'get'
})
}
// 及格人数
export
function
getPassNumber
(
businessId
,
page
,
rows
)
{
return
request
({
url
:
'/blesson/getPassNumber?businessId='
+
businessId
+
'&page='
+
page
+
'&rows='
+
rows
,
method
:
'get'
})
}
// ===============================
src/api/dataStatistics/userView.js
0 → 100644
View file @
c0379768
import
request
from
'@/utils/request'
/**
* 查询列表
* @param params
* @returns {AxiosPromise}
*/
export
function
getUserView
(
name
,
rows
,
page
)
{
return
request
({
url
:
'/pc/sysuser/getUserView?rows='
+
rows
+
'&page='
+
page
+
'&name='
+
name
,
method
:
'get'
})
}
// 查询侧拉列表
// 计划课程总数
export
function
getTotal
(
businessId
,
page
,
rows
)
{
return
request
({
url
:
'/pc/sysuser/getTotal?businessId='
+
businessId
+
'&page='
+
page
+
'&rows='
+
rows
,
method
:
'get'
})
}
// 学习中课程数
export
function
getLearning
(
businessId
,
page
,
rows
)
{
return
request
({
url
:
'/pc/sysuser/getLearning?businessId='
+
businessId
+
'&page='
+
page
+
'&rows='
+
rows
,
method
:
'get'
})
}
// 已学完课程数
export
function
getFinish
(
businessId
,
page
,
rows
)
{
return
request
({
url
:
'/pc/sysuser/getFinish?businessId='
+
businessId
+
'&page='
+
page
+
'&rows='
+
rows
,
method
:
'get'
})
}
// 未开始课程数
export
function
getNotStart
(
businessId
,
page
,
rows
)
{
return
request
({
url
:
'/pc/sysuser/getNotStart?businessId='
+
businessId
+
'&page='
+
page
+
'&rows='
+
rows
,
method
:
'get'
})
}
// 参与考核课程数
export
function
getExamedNumber
(
businessId
,
page
,
rows
)
{
return
request
({
url
:
'/pc/sysuser/getExamedNumber?businessId='
+
businessId
+
'&page='
+
page
+
'&rows='
+
rows
,
method
:
'get'
})
}
// 未考核课程数
export
function
getNotExamedNumber
(
businessId
,
page
,
rows
)
{
return
request
({
url
:
'/pc/sysuser/getNotExamedNumber?businessId='
+
businessId
+
'&page='
+
page
+
'&rows='
+
rows
,
method
:
'get'
})
}
// ===============================
src/views/dataStatistics/assessView/index.vue
View file @
c0379768
...
...
@@ -9,8 +9,8 @@
<span
style=
"font-size: 16px;"
>
课程名称:
</span>
<span>
<el-input
v-model=
"input"
placeholder=
"请输入"
style=
"width: 140px; margin-left: 10px;"
></el-input>
<el-button
type=
"primary"
style=
"margin-left: 10px;"
>
查询
</el-button>
<el-button>
重置
</el-button>
<el-button
type=
"primary"
style=
"margin-left: 10px;"
@
click=
"searchByName"
>
查询
</el-button>
<el-button
@
click=
"reset"
>
重置
</el-button>
</span>
</div>
<el-table
...
...
@@ -22,9 +22,8 @@
:header-cell-style=
"
{background:'rgb(250,250,250)'}">
<el-table-column
type=
"index"
width=
"55"
label=
"序号"
align=
"center"
/>
<el-table-column
label=
"课程名称"
align=
"center"
prop=
"lessonName"
/>
<el-table-column
label=
"试题数量"
align=
"center"
prop=
"testNumber"
width=
"130"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"总分"
align=
"center"
prop=
"full"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"试题数量"
align=
"center"
prop=
"testNumber"
width=
"130"
/>
<el-table-column
label=
"总分"
align=
"center"
prop=
"full"
/>
<el-table-column
label=
"及格分数"
align=
"center"
prop=
"line"
></el-table-column>
<el-table-column
label=
"参与考核人数"
align=
"center"
prop=
"participant"
></el-table-column>
<el-table-column
label=
"平均分"
align=
"center"
prop=
"avg"
></el-table-column>
...
...
@@ -55,8 +54,8 @@
<!-- 内容 -->
<div
style=
"width: 90%; margin-left: 5%;"
>
<
div>
课程名称:
</div
>
<
div>
未开始人数:
</div
>
<
span
style=
"width: 50%;"
>
课程:
{{
this
.
detailQueryParams
.
lessonName
}}
</span
>
<
span
style=
"margin-left: 50%;"
>
{{
this
.
detailQueryParams
.
label
}}
:
{{
this
.
detailQueryParams
.
labelInfo
}}
</span
>
<el-table
v-loading=
"loading"
border
:data=
"detailList"
>
<el-table-column
type=
"index"
width=
"55"
label=
"序号"
align=
"center"
/>
<el-table-column
v-for=
"(column, index) in drawerHead"
:key=
"index"
...
...
@@ -80,6 +79,7 @@
<
script
>
import
{
getDataCache
,
setDataCache
}
from
'@/assets/js/filterData'
import
{
getExamineList
,
getExamineParticipant
,
getFullMark
,
getPassNumber
}
from
'@/api/dataStatistics/assessView'
export
default
{
name
:
'assessView'
,
...
...
@@ -192,6 +192,9 @@ export default {
detailQueryParams
:
{
page
:
1
,
rows
:
10
,
lessonName
:
''
,
label
:
''
,
labelInfo
:
''
,
username
:
''
,
loginTime
:
''
},
...
...
@@ -209,25 +212,106 @@ export default {
},
created
()
{
},
mounted
()
{
this
.
init
()
},
methods
:
{
init
()
{
this
.
list
=
[]
this
.
getList
()
},
searchByName
()
{
this
.
queryParams
.
page
=
1
this
.
queryParams
.
rows
=
10
this
.
getList
()
},
reset
(){
this
.
input
=
''
this
.
queryParams
.
page
=
1
this
.
queryParams
.
rows
=
10
this
.
getList
()
},
/** 查询分页 */
getList
()
{
// this.loading = true
// list(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
// this.list = response.rows
// this.total = response.total
// this.loading = false
// })
getExamineList
(
this
.
input
,
this
.
queryParams
.
rows
,
this
.
queryParams
.
page
)
.
then
((
res
)
=>
{
let
data
=
res
.
data
this
.
list
=
data
.
records
this
.
total
=
data
.
total
})
.
catch
((
err
)
=>
{
console
.
log
(
err
);
})
},
/** 查询分页 */
detailGetList
()
{
// this.loading = true
// list(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
// this.list = response.rows
// this.total = response.total
// this.loading = false
// })
switch
(
this
.
detailQueryParams
.
column
)
{
case
'participant'
:
this
.
drawer
=
true
getExamineParticipant
(
this
.
detailQueryParams
.
id
,
this
.
detailQueryParams
.
page
,
this
.
detailQueryParams
.
rows
)
.
then
((
res
)
=>
{
let
data
=
res
.
data
this
.
detailList
=
data
.
records
this
.
drawerHead
=
[
{
label
:
'单位类型'
,
prop
:
'unitType'
},
{
label
:
'所属单位'
,
prop
:
'unitName'
},
{
label
:
'登录名'
,
prop
:
'userName'
},
{
label
:
'用户姓名'
,
prop
:
'name'
},
{
label
:
'考核成绩(分)'
,
prop
:
'score'
},
]
this
.
detailTotal
=
data
.
total
})
.
catch
((
err
)
=>
{
console
.
log
(
err
);
})
break
;
case
'fullNumber'
:
this
.
drawer
=
true
getFullMark
(
this
.
detailQueryParams
.
id
,
this
.
detailQueryParams
.
page
,
this
.
detailQueryParams
.
rows
)
.
then
((
res
)
=>
{
let
data
=
res
.
data
this
.
detailList
=
data
.
records
this
.
drawerHead
=
[
{
label
:
'单位类型'
,
prop
:
'unitType'
},
{
label
:
'所属单位'
,
prop
:
'unitName'
},
{
label
:
'登录名'
,
prop
:
'userName'
},
{
label
:
'用户姓名'
,
prop
:
'name'
},
{
label
:
'考核成绩(分)'
,
prop
:
'score'
},
]
this
.
detailTotal
=
data
.
total
})
.
catch
((
err
)
=>
{
console
.
log
(
err
);
})
break
;
case
'passNumber'
:
this
.
drawer
=
true
getPassNumber
(
this
.
detailQueryParams
.
id
,
this
.
detailQueryParams
.
page
,
this
.
detailQueryParams
.
rows
)
.
then
((
res
)
=>
{
let
data
=
res
.
data
this
.
detailList
=
data
.
records
this
.
drawerHead
=
[
{
label
:
'单位类型'
,
prop
:
'unitType'
},
{
label
:
'所属单位'
,
prop
:
'unitName'
},
{
label
:
'登录名'
,
prop
:
'userName'
},
{
label
:
'用户姓名'
,
prop
:
'name'
},
{
label
:
'考核成绩(分)'
,
prop
:
'score'
},
]
this
.
detailTotal
=
data
.
total
})
.
catch
((
err
)
=>
{
console
.
log
(
err
);
})
break
;
default
:
// console.log('Unknown fruit.');
}
},
// 右侧弹窗关闭逻辑
handleClose
(
done
)
{
...
...
@@ -235,13 +319,21 @@ export default {
},
// 获取被点击的格的信息
clickTable
(
row
,
column
,
event
,
cell
)
{
this
.
drawer
=
true
// 行信息
console
.
log
(
row
)
// 列信息
console
.
log
(
column
)
console
.
log
(
event
)
console
.
log
(
cell
)
this
.
detailList
=
[]
this
.
detailQueryParams
.
page
=
1
this
.
detailQueryParams
.
rows
=
10
// // 行的信息
// console.log(row.businessId);
// // 列的信息
// console.log(column.property);
this
.
detailQueryParams
.
id
=
row
.
businessId
this
.
detailQueryParams
.
column
=
column
.
property
this
.
detailQueryParams
.
lessonName
=
row
.
lessonName
this
.
detailQueryParams
.
label
=
column
.
label
this
.
detailQueryParams
.
labelInfo
=
row
[
column
.
property
]
this
.
detailGetList
(
this
.
detailQueryParams
.
rows
,
this
.
detailQueryParams
.
page
)
},
}
}
...
...
@@ -252,7 +344,6 @@ export default {
margin-left
:
1%
;
margin-top
:
20px
;
width
:
98%
;
height
:
500px
;
border-radius
:
4px
;
// box-shadow: 0 0 5px rgba(63, 63, 63, 0.4);
...
...
src/views/dataStatistics/userView/index.vue
View file @
c0379768
This diff is collapsed.
Click to expand it.
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