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
036c178e
Commit
036c178e
authored
Jun 16, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
b45d3977
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
12 deletions
+21
-12
classHourStatistic.vue
src/pages/course/classHourStatistic.vue
+21
-12
No files found.
src/pages/course/classHourStatistic.vue
View file @
036c178e
...
@@ -16,11 +16,11 @@
...
@@ -16,11 +16,11 @@
<div
class=
"col-4 Sysuser_Date"
>
<div
class=
"col-4 Sysuser_Date"
>
<q-field
filled
>
<q-field
filled
>
<template
v-slot:control
>
<template
v-slot:control
>
<el-date-picker
v-model=
"msg.StartTime"
type=
"date"
placeholder=
"开
学日期"
value-format=
"yyyy-MM-dd"
size=
"small"
style=
"width:47%;
"
<el-date-picker
v-model=
"msg.StartTime"
type=
"date"
placeholder=
"开
始日期"
value-format=
"yyyy-MM-dd
"
@
change=
"getList"
clear-icon=
"iconfont icon-guanbi"
>
size=
"small"
style=
"width:47%;"
@
change=
"getList"
clear-icon=
"iconfont icon-guanbi"
>
</el-date-picker>
至
</el-date-picker>
至
<el-date-picker
v-model=
"msg.EndTime"
type=
"date"
placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
size=
"small"
style=
"width:47%;"
<el-date-picker
v-model=
"msg.EndTime"
type=
"date"
placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
@
change=
"getList"
clear-icon=
"iconfont icon-guanbi"
>
size=
"small"
style=
"width:47%;"
@
change=
"getList"
clear-icon=
"iconfont icon-guanbi"
>
</el-date-picker>
</el-date-picker>
</
template
>
</
template
>
</q-field>
</q-field>
...
@@ -28,8 +28,9 @@
...
@@ -28,8 +28,9 @@
</div>
</div>
</div>
</div>
<div
class=
"page-content"
>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table no-bottom-table"
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
separator=
"none"
title=
""
:data=
"dataList"
:columns=
"columns"
row-key=
"name"
>
class=
"sticky-column-table no-bottom-table"
separator=
"none"
title=
""
:data=
"dataList"
:columns=
"columns"
row-key=
"name"
>
<
template
v-slot:top=
"props"
>
<
template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
课时统计
</div>
<div
class=
"col-2 q-table__title"
>
课时统计
</div>
<q-space
/>
<q-space
/>
...
@@ -37,7 +38,7 @@
...
@@ -37,7 +38,7 @@
<
template
v-slot:body-cell-TeacherId=
"props"
>
<
template
v-slot:body-cell-TeacherId=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
>
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-View"
color=
"accent"
@
click=
"goStatic(props.row)"
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-View"
color=
"accent"
@
click=
"goStatic(props.row)"
style=
"font-weight:400"
label=
"查看"
/>
style=
"font-weight:400"
label=
"查看"
/>
</q-td>
</q-td>
</
template
>
</
template
>
<
template
v-slot:bottom
>
<
template
v-slot:bottom
>
...
@@ -82,7 +83,7 @@
...
@@ -82,7 +83,7 @@
label
:
'课时'
,
label
:
'课时'
,
align
:
'left'
,
align
:
'left'
,
},
},
{
{
name
:
'TeacherId'
,
name
:
'TeacherId'
,
label
:
'操作'
,
label
:
'操作'
,
field
:
'TeacherId'
field
:
'TeacherId'
...
@@ -92,6 +93,15 @@
...
@@ -92,6 +93,15 @@
}
}
},
},
created
()
{
created
()
{
var
now
=
new
Date
();
//当前日期
var
nowMonth
=
now
.
getMonth
()
+
1
;
//当前月
var
nowYear
=
now
.
getFullYear
();
//当前年
var
StartTime
=
nowYear
+
'-'
+
nowMonth
+
'-01'
;
var
day
=
new
Date
(
nowYear
,
nowMonth
,
0
);
var
EndTime
=
nowYear
+
'-'
+
nowMonth
+
'-'
+
day
.
getDate
();
//获取当月最后一天日期
this
.
msg
.
StartTime
=
StartTime
;
this
.
msg
.
EndTime
=
EndTime
;
this
.
getList
();
this
.
getList
();
this
.
GetTeacherList
()
this
.
GetTeacherList
()
},
},
...
@@ -103,7 +113,6 @@
...
@@ -103,7 +113,6 @@
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
dataList
=
res
.
Data
;
this
.
dataList
=
res
.
Data
;
}
}
console
.
log
(
res
,
'数据'
);
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
})
})
...
@@ -122,7 +131,7 @@
...
@@ -122,7 +131,7 @@
})
})
},
},
//去查看哈
//去查看哈
goStatic
(
item
){
goStatic
(
item
)
{
// let obj = {
// let obj = {
// StartTime: this.msg.StartTime,
// StartTime: this.msg.StartTime,
// EndTime: this.msg.EndTime,
// EndTime: this.msg.EndTime,
...
@@ -132,8 +141,8 @@
...
@@ -132,8 +141,8 @@
path
:
"/course/classPlan"
,
path
:
"/course/classPlan"
,
query
:
{
query
:
{
StartTime
:
this
.
msg
.
StartTime
,
StartTime
:
this
.
msg
.
StartTime
,
EndTime
:
this
.
msg
.
EndTime
,
EndTime
:
this
.
msg
.
EndTime
,
TeacherId
:
item
.
TeacherId
TeacherId
:
item
.
TeacherId
}
}
});
});
window
.
open
(
routeUrl
.
href
,
'_blank'
);
window
.
open
(
routeUrl
.
href
,
'_blank'
);
...
...
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