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
ad5b35aa
Commit
ad5b35aa
authored
Sep 02, 2024
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
f65b4f51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
14 deletions
+20
-14
reserve-form.vue
src/components/schedul/reserve-form.vue
+18
-8
reservestudentlist.vue
src/components/schedul/reservestudentlist.vue
+2
-6
No files found.
src/components/schedul/reserve-form.vue
View file @
ad5b35aa
...
...
@@ -120,15 +120,23 @@
TrialList
:
[]
//试听课程下拉数据
}
},
mounted
()
{
let
nowDay
=
new
Date
();
var
year
=
nowDay
.
getFullYear
();
//年
var
month
=
nowDay
.
getMonth
()
+
1
;
//月
var
day
=
nowDay
.
getDate
();
//日
if
(
month
<
10
)
{
month
=
'0'
+
month
watch
:
{
saveObj
:{
handler
(
n
){
this
.
initObj
()
},
deep
:
true
}
this
.
objOption
.
ClassDate
=
year
+
'-'
+
month
+
'-'
+
day
;
},
mounted
()
{
// let nowDay = new Date();
// var year = nowDay.getFullYear(); //年
// var month = nowDay.getMonth() + 1; //月
// var day = nowDay.getDate(); //日
// if (month
<
10
)
{
// month = '0' + month
// }
// this.objOption.ClassDate = year + '-' + month + '-' + day;
this
.
GetTeacherList
();
this
.
getClassRoomList
();
this
.
GetTrialDrop
();
...
...
@@ -144,11 +152,13 @@
},
//初始化表单
initObj
()
{
this
.
objOption
.
ClassDate
=
this
.
saveObj
.
ReservationDate
if
(
this
.
saveObj
&&
this
.
saveObj
.
ReserveClassId
>
0
)
{
GetReserveClass
({
ReserveClassId
:
this
.
saveObj
.
ReserveClassId
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
objOption
.
ReserveClassId
=
res
.
Data
.
ReserveClassId
;
this
.
objOption
.
TeacherId
=
res
.
Data
.
TeacherId
;
this
.
objOption
.
ClassDate
=
res
.
Data
.
ClassDateStr
;
...
...
src/components/schedul/reservestudentlist.vue
View file @
ad5b35aa
...
...
@@ -73,7 +73,7 @@
</q-card>
</
template
>
<reserveForm
v-if=
"isShowReserve"
:save
-o
bj=
"reserveObj"
@
close=
"closeReserveForm"
@
success=
"refreshPage"
>
<reserveForm
v-if=
"isShowReserve"
:save
O
bj=
"reserveObj"
@
close=
"closeReserveForm"
@
success=
"refreshPage"
>
</reserveForm>
</div>
</template>
...
...
@@ -207,11 +207,7 @@ return timeStr;
},
//编辑试听
editVisitor
(
obj
)
{
if
(
obj
)
{
this
.
reserveObj
=
obj
}
else
{
this
.
reserveObj
=
null
}
this
.
reserveObj
=
obj
this
.
isShowReserve
=
true
;
},
//关闭弹窗
...
...
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