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
60fc11bc
Commit
60fc11bc
authored
Jun 16, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
c1246b6a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
436 additions
and
110 deletions
+436
-110
App.vue
src/App.vue
+1
-1
class.js
src/api/course/class.js
+13
-0
classHourStatistic.vue
src/pages/course/classHourStatistic.vue
+148
-0
classPlan.vue
src/pages/course/classPlan.vue
+269
-109
routes.js
src/router/routes.js
+5
-0
No files found.
src/App.vue
View file @
60fc11bc
...
...
@@ -12,7 +12,7 @@ export default {
<
style
>
@import
url('~assets/css/font.css')
;
@import
url('//at.alicdn.com/t/font_2077629_
xijn75rrmj
.css')
;
@import
url('//at.alicdn.com/t/font_2077629_
6atqorrshm8
.css')
;
html
,
body
,
...
...
src/api/course/class.js
View file @
60fc11bc
...
...
@@ -381,3 +381,16 @@ export function saveMakeUpStatus(data) {
data
})
}
/**
* 获取课时统计列表
* @param {JSON参数} data
*/
export
function
GetTeacherClassHours
(
data
)
{
return
request
({
url
:
'/Class/GetTeacherClassHoursStatistical'
,
method
:
'post'
,
data
})
}
src/pages/course/classHourStatistic.vue
0 → 100644
View file @
60fc11bc
<
style
>
.classHourReward
.el-input__inner
{
border
:
none
!important
;
background
:
transparent
!important
;
}
</
style
>
<
template
>
<div
class=
"classHourReward page-body"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
<q-select
@
input=
"getList"
standout=
"bg-primary text-white"
option-value=
"TId"
option-label=
"TeacherName"
v-model=
"msg.TeacherId"
:options=
"TeacherList"
emit-value
map-options
label=
"带班老师"
/>
</div>
<div
class=
"col-4 Sysuser_Date"
>
<q-field
filled
>
<template
v-slot:control
>
<el-date-picker
v-model=
"msg.StartTime"
type=
"date"
placeholder=
"开学日期"
value-format=
"yyyy-MM-dd"
size=
"small"
style=
"width:47%;"
@
change=
"getList"
clear-icon=
"iconfont icon-guanbi"
>
</el-date-picker>
至
<el-date-picker
v-model=
"msg.EndTime"
type=
"date"
placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
size=
"small"
style=
"width:47%;"
@
change=
"getList"
clear-icon=
"iconfont icon-guanbi"
>
</el-date-picker>
</
template
>
</q-field>
</div>
</div>
</div>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table no-bottom-table"
separator=
"none"
title=
""
:data=
"dataList"
:columns=
"columns"
row-key=
"name"
>
<
template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
课时统计
</div>
<q-space
/>
</
template
>
<
template
v-slot:body-cell-TeacherId=
"props"
>
<q-td
:props=
"props"
>
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-View"
color=
"accent"
@
click=
"goStatic(props.row)"
style=
"font-weight:400"
label=
"查看"
/>
</q-td>
</
template
>
<
template
v-slot:bottom
>
<div>
</div>
</
template
>
</q-table>
</div>
</div>
</template>
<
script
>
import
{
GetTeacherClassHours
//课时统计
}
from
'../../api/course/class'
import
{
getTeacherDropDownList
,
}
from
'../../api/school/index'
;
export
default
{
meta
:
{
title
:
"课时统计"
},
name
:
"classHourStatistic"
,
data
()
{
return
{
dataList
:
[],
loading
:
false
,
msg
:
{
StartTime
:
""
,
EndTime
:
''
,
TeacherId
:
0
,
},
//公告column
columns
:
[{
name
:
'TeacherName'
,
field
:
'TeacherName'
,
label
:
'教师'
,
align
:
'left'
},
{
name
:
'ClassHours'
,
field
:
'ClassHours'
,
label
:
'课时'
,
align
:
'left'
,
},
{
name
:
'TeacherId'
,
label
:
'操作'
,
field
:
'TeacherId'
}
],
TeacherList
:
[],
//关联教师下拉数据
}
},
created
()
{
this
.
getList
();
this
.
GetTeacherList
()
},
methods
:
{
getList
()
{
this
.
loading
=
true
;
GetTeacherClassHours
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
if
(
res
.
Code
==
1
)
{
this
.
dataList
=
res
.
Data
;
}
console
.
log
(
res
,
'数据'
);
}).
catch
(()
=>
{
this
.
loading
=
false
})
},
//获取教师下拉
GetTeacherList
()
{
getTeacherDropDownList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
TeacherList
=
res
.
Data
;
this
.
TeacherList
.
unshift
({
TId
:
0
,
TeacherName
:
"不限"
})
this
.
AllTeacherList
=
this
.
TeacherList
}
})
},
//去查看哈
goStatic
(
item
){
// let obj = {
// StartTime: this.msg.StartTime,
// EndTime: this.msg.EndTime,
// TeacherId: item.TeacherId
// }
let
routeUrl
=
this
.
$router
.
resolve
({
path
:
"/course/classPlan"
,
query
:
{
StartTime
:
this
.
msg
.
StartTime
,
EndTime
:
this
.
msg
.
EndTime
,
TeacherId
:
item
.
TeacherId
}
});
window
.
open
(
routeUrl
.
href
,
'_blank'
);
}
}
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
src/pages/course/classPlan.vue
View file @
60fc11bc
This diff is collapsed.
Click to expand it.
src/router/routes.js
View file @
60fc11bc
...
...
@@ -628,6 +628,11 @@ const routes = [{
component
:
()
=>
import
(
"pages/course/classHourReward.vue"
)
},
{
path
:
"/course/classHourStatistic"
,
//教学奖励 课时统计
component
:
()
=>
import
(
"pages/course/classHourStatistic.vue"
)
},
{
path
:
"/course/rewardDetailed"
,
//教学奖励 奖励明细
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