Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
8b48fdbd
Commit
8b48fdbd
authored
Apr 08, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
86675673
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
435 additions
and
20 deletions
+435
-20
index.js
src/api/teacher/index.js
+13
-0
dayStatic.vue
src/pages/teacher/dayStatic.vue
+51
-20
teacherMonth.vue
src/pages/teacher/teacherMonth.vue
+366
-0
routes.js
src/router/routes.js
+5
-0
No files found.
src/api/teacher/index.js
View file @
8b48fdbd
...
@@ -398,6 +398,19 @@ export function GetTeacherDay(data) {
...
@@ -398,6 +398,19 @@ export function GetTeacherDay(data) {
})
})
}
}
/**
* 教师月度汇总
* @param {*} data
*/
export
function
GetTeacherMonthStatic
(
data
)
{
return
request
({
url
:
'/TeacherStatic/GetTeacherMonthStatic'
,
method
:
'post'
,
data
})
}
/**
/**
* 获取教师端每月统计
* 获取教师端每月统计
* @param {*} data
* @param {*} data
...
...
src/pages/teacher/dayStatic.vue
View file @
8b48fdbd
...
@@ -27,9 +27,14 @@
...
@@ -27,9 +27,14 @@
</q-field>
</q-field>
</div>
</div>
<div
class=
"col-2"
>
<div
class=
"col-2"
>
<q-select
filled
dense
stack-label
@
input=
"getList"
option-value=
"TId"
@
filter=
"filterTeacherFn"
use-input
option-label=
"TeacherName"
v-model=
"msg.TeacherId"
<q-select
filled
dense
stack-label
@
input=
"GetTeacherList(),getList()"
option-value=
"Id"
ref=
"Teacher_Id"
:options=
"TeacherList"
label=
"教师"
clearable
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
option-label=
"Name"
v-model=
"msg.DeptId"
ref=
"Teacher_Id"
:options=
"deptList"
label=
"语种"
clearable
map-options
/>
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
</div>
<div
class=
"col-2"
>
<q-select
filled
dense
stack-label
@
input=
"getList"
option-value=
"TId"
@
filter=
"filterTeacherFn"
use-input
option-label=
"TeacherName"
v-model=
"msg.TeacherId"
ref=
"Teacher_Id"
:options=
"TeacherList"
label=
"教师"
clearable
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
</div>
</div>
</div>
</div>
<div
style=
"float:right;"
>
<div
style=
"float:right;"
>
...
@@ -64,42 +69,50 @@
...
@@ -64,42 +69,50 @@
</q-th>
</q-th>
</
template
>
</
template
>
<
template
v-else-if=
"col.label=='老师迟到早退'"
>
<
template
v-else-if=
"col.label=='老师迟到早退'"
>
<q-th
:key=
"col.name"
:props=
"props"
style=
"max-width:60px;text-align:center;background-color:#FF66CC;color:#000;"
>
<q-th
:key=
"col.name"
:props=
"props"
style=
"max-width:60px;text-align:center;background-color:#FF66CC;color:#000;"
>
老师
<br
/>
迟到早退
老师
<br
/>
迟到早退
</q-th>
</q-th>
</
template
>
</
template
>
<
template
v-else-if=
"col.label=='N5课程时数'"
>
<
template
v-else-if=
"col.label=='N5课程时数'"
>
<q-th
:key=
"col.name"
:props=
"props"
style=
"max-width:60px;text-align:center;background-color:#E2EFDA;color:#000;"
>
<q-th
:key=
"col.name"
:props=
"props"
style=
"max-width:60px;text-align:center;background-color:#E2EFDA;color:#000;"
>
N5
<br
/>
课程时数
N5
<br
/>
课程时数
</q-th>
</q-th>
</
template
>
</
template
>
<
template
v-else-if=
"col.label=='N4课程时数'"
>
<
template
v-else-if=
"col.label=='N4课程时数'"
>
<q-th
:key=
"col.name"
:props=
"props"
style=
"max-width:60px;text-align:center;background-color:#E2EFDA;color:#000;"
>
<q-th
:key=
"col.name"
:props=
"props"
style=
"max-width:60px;text-align:center;background-color:#E2EFDA;color:#000;"
>
N4
<br
/>
课程时数
N4
<br
/>
课程时数
</q-th>
</q-th>
</
template
>
</
template
>
<
template
v-else-if=
"col.label=='N3课程时数'"
>
<
template
v-else-if=
"col.label=='N3课程时数'"
>
<q-th
:key=
"col.name"
:props=
"props"
style=
"max-width:60px;text-align:center;background-color:#E2EFDA;color:#000;"
>
<q-th
:key=
"col.name"
:props=
"props"
style=
"max-width:60px;text-align:center;background-color:#E2EFDA;color:#000;"
>
N3
<br
/>
课程时数
N3
<br
/>
课程时数
</q-th>
</q-th>
</
template
>
</
template
>
<
template
v-else-if=
"col.label=='N2课程时数'"
>
<
template
v-else-if=
"col.label=='N2课程时数'"
>
<q-th
:key=
"col.name"
:props=
"props"
style=
"max-width:60px;text-align:center;background-color:#B4C6E7;color:#000;"
>
<q-th
:key=
"col.name"
:props=
"props"
style=
"max-width:60px;text-align:center;background-color:#B4C6E7;color:#000;"
>
N2
<br
/>
课程时数
N2
<br
/>
课程时数
</q-th>
</q-th>
</
template
>
</
template
>
<
template
v-else-if=
"col.label=='N1课程时数'"
>
<
template
v-else-if=
"col.label=='N1课程时数'"
>
<q-th
:key=
"col.name"
:props=
"props"
style=
"max-width:60px;text-align:center;background-color:#B4C6E7;color:#000;"
>
<q-th
:key=
"col.name"
:props=
"props"
style=
"max-width:60px;text-align:center;background-color:#B4C6E7;color:#000;"
>
N1
<br
/>
课程时数
N1
<br
/>
课程时数
</q-th>
</q-th>
</
template
>
</
template
>
<
template
v-else-if=
"col.label=='学生小程序刷题次数'"
>
<
template
v-else-if=
"col.label=='学生小程序刷题次数'"
>
<q-th
:key=
"col.name"
:props=
"props"
style=
"max-width:75px;text-align:center;background-color:#B4C6E7;color:#000;"
>
<q-th
:key=
"col.name"
:props=
"props"
style=
"max-width:75px;text-align:center;background-color:#B4C6E7;color:#000;"
>
学生小程序
<br
/>
刷题次数
学生小程序
<br
/>
刷题次数
</q-th>
</q-th>
</
template
>
</
template
>
<
template
v-else-if=
"col.label=='学生小程序刷题时间'"
>
<
template
v-else-if=
"col.label=='学生小程序刷题时间'"
>
<q-th
:key=
"col.name"
:props=
"props"
style=
"max-width:75px;text-align:center;background-color:#B4C6E7;color:#000;"
>
<q-th
:key=
"col.name"
:props=
"props"
style=
"max-width:75px;text-align:center;background-color:#B4C6E7;color:#000;"
>
学生小程序
<br
/>
刷题时间
学生小程序
<br
/>
刷题时间
</q-th>
</q-th>
</
template
>
</
template
>
...
@@ -109,17 +122,20 @@
...
@@ -109,17 +122,20 @@
</q-th>
</q-th>
</
template
>
</
template
>
<
template
v-else-if=
"col.label=='所有老师平均分数'"
>
<
template
v-else-if=
"col.label=='所有老师平均分数'"
>
<q-th
:key=
"col.name"
:props=
"props"
style=
"max-width:70px;text-align:center;background-color:#FFC000;color:#000;"
>
<q-th
:key=
"col.name"
:props=
"props"
style=
"max-width:70px;text-align:center;background-color:#FFC000;color:#000;"
>
所有老师
<br
/>
平均分数
所有老师
<br
/>
平均分数
</q-th>
</q-th>
</
template
>
</
template
>
<
template
v-else-if=
"col.label=='总分数'"
>
<
template
v-else-if=
"col.label=='总分数'"
>
<q-th
:key=
"col.name"
:props=
"props"
style=
"max-width:70px;text-align:center;background-color:#FFC000;color:#000;"
>
<q-th
:key=
"col.name"
:props=
"props"
style=
"max-width:70px;text-align:center;background-color:#FFC000;color:#000;"
>
总分数
总分数
</q-th>
</q-th>
</
template
>
</
template
>
<
template
v-else-if=
"col.label=='分数差距'"
>
<
template
v-else-if=
"col.label=='分数差距'"
>
<q-th
:key=
"col.name"
:props=
"props"
style=
"max-width:70px;text-align:center;background-color:#FFC000;color:#000;"
>
<q-th
:key=
"col.name"
:props=
"props"
style=
"max-width:70px;text-align:center;background-color:#FFC000;color:#000;"
>
分数差距
分数差距
</q-th>
</q-th>
</
template
>
</
template
>
...
@@ -302,12 +318,22 @@
...
@@ -302,12 +318,22 @@
msg
:
{
msg
:
{
YearStr
:
''
,
YearStr
:
''
,
MonthStr
:
''
,
MonthStr
:
''
,
TeacherId
:
''
,
TeacherId
:
''
,
rowsPerPage
:
0
rowsPerPage
:
0
,
DeptId
:
8
,
},
},
teacher
:
0
,
deptList
:
[{
AllTeacherList
:[],
Id
:
8
,
TeacherList
:[]
//教师数据
Name
:
"日语"
},
{
Id
:
14
,
Name
:
"韩语"
},
],
teacher
:
0
,
AllTeacherList
:
[],
TeacherList
:
[]
//教师数据
}
}
},
},
created
()
{
created
()
{
...
@@ -326,7 +352,12 @@
...
@@ -326,7 +352,12 @@
methods
:
{
methods
:
{
//获取教师下拉
//获取教师下拉
GetTeacherList
()
{
GetTeacherList
()
{
getTeacherDropDownList
({}).
then
(
res
=>
{
this
.
msg
.
TeacherId
=
""
;
var
qMsg
=
{
NotQueryTIds
:
"5,10,15,20"
,
Dept_Id
:
this
.
msg
.
DeptId
,
}
getTeacherDropDownList
(
qMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
TeacherList
=
res
.
Data
;
this
.
TeacherList
=
res
.
Data
;
this
.
AllTeacherList
=
res
.
Data
;
this
.
AllTeacherList
=
res
.
Data
;
...
...
src/pages/teacher/teacherMonth.vue
0 → 100644
View file @
8b48fdbd
This diff is collapsed.
Click to expand it.
src/router/routes.js
View file @
8b48fdbd
...
@@ -1421,6 +1421,11 @@ const routes = [{
...
@@ -1421,6 +1421,11 @@ const routes = [{
component
:
()
=>
component
:
()
=>
import
(
"pages/teacher/dayStatic"
)
import
(
"pages/teacher/dayStatic"
)
},
},
{
path
:
"/teacher/teacherMonth"
,
//教师月度统计排名
component
:
()
=>
import
(
"pages/teacher/teacherMonth"
)
},
{
{
path
:
"/teacher/monthStatic"
,
//教师月度统计
path
:
"/teacher/monthStatic"
,
//教师月度统计
component
:
()
=>
component
:
()
=>
...
...
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