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
14e9e8a9
Commit
14e9e8a9
authored
Dec 27, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6821fe80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
reserveClass.vue
src/pages/sale/reserveClass.vue
+19
-4
No files found.
src/pages/sale/reserveClass.vue
View file @
14e9e8a9
...
...
@@ -13,12 +13,15 @@
<div
class=
"col-4 Sysuser_Date"
>
<q-field
filled
>
<template
v-slot:control
>
<el-date-picker
v-model=
"msg.StartClassDate"
value-format=
"yyyy-MM-dd"
type=
"date"
placeholder=
"开始时间"
<el-date-picker
v-model=
"dateList"
@
change=
"resetSearch()"
size=
"mini"
value-format=
"yyyy-MM-dd"
type=
"daterange"
style=
"border:none;"
range-separator=
"至"
start-placeholder=
"开始时间"
end-placeholder=
"结束时间"
>
</el-date-picker>
<!--
<el-date-picker
v-model=
"msg.StartClassDate"
value-format=
"yyyy-MM-dd"
type=
"date"
placeholder=
"开始时间"
size=
"small"
style=
"width:47%;"
@
change=
"resetSearch"
clear-icon=
"iconfont icon-guanbi"
>
</el-date-picker>
至
<el-date-picker
v-model=
"msg.EndClassDate"
value-format=
"yyyy-MM-dd"
type=
"date"
placeholder=
"结束时间"
size=
"small"
style=
"width:47%;"
@
change=
"resetSearch"
clear-icon=
"iconfont icon-guanbi"
>
</el-date-picker>
</el-date-picker>
-->
</
template
>
</q-field>
</div>
...
...
@@ -201,7 +204,8 @@
TeacherList
:
[],
ClassRoomList
:
[],
isShowReserve
:
false
,
reserveObj
:
{}
reserveObj
:
{},
dateList
:[],
}
},
mounted
()
{
...
...
@@ -209,7 +213,11 @@
var
year
=
nowDay
.
getFullYear
();
//年
var
month
=
nowDay
.
getMonth
()
+
1
;
//月
var
day
=
nowDay
.
getDate
();
//日
this
.
msg
.
StartClassDate
=
year
+
'-'
+
month
+
'-'
+
day
;
let
time1
=
year
+
'-'
+
month
+
'-'
+
day
this
.
dateList
[
0
]
=
time1
.
toString
();
this
.
dateList
[
1
]
=
''
;
console
.
log
(
this
.
dateList
,
'this.dateList'
);
this
.
fetchData
()
this
.
GetTeacherList
();
this
.
getClassRoomList
();
...
...
@@ -227,6 +235,13 @@
},
//获取课程系列分页列表
getList
()
{
if
(
this
.
dateList
&&
this
.
dateList
.
length
>
0
)
{
this
.
msg
.
StartClassDate
=
this
.
dateList
[
0
];
this
.
msg
.
EndClassDate
=
this
.
dateList
[
1
];
}
else
{
this
.
msg
.
StartClassDate
=
''
;
this
.
msg
.
EndClassDate
=
''
;
}
GetReserveClassPage
(
this
.
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
dataList
=
res
.
Data
.
PageData
;
...
...
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