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
0b6f413e
You need to sign in or sign up before continuing.
Commit
0b6f413e
authored
Dec 28, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6c20505f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
reserve-form.vue
src/components/schedul/reserve-form.vue
+20
-3
No files found.
src/components/schedul/reserve-form.vue
View file @
0b6f413e
...
...
@@ -48,6 +48,11 @@
<q-select
filled
stack-label
option-value=
"RoomId"
option-label=
"RoomName"
v-model=
"objOption.ClassRoomId"
ref=
"ClassRoomId"
:options=
"ClassRoomList"
label=
"关联教室"
:dense=
"false"
class=
"col-6 q-pb-lg"
emit-value
map-options
/>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"LessonName"
v-model=
"objOption.TrialLessonId"
:options=
"TrialList"
label=
"试听课程"
:dense=
"false"
class=
"col-6 q-pb-lg q-pr-lg"
emit-value
map-options
/>
<q-select
filled
stack-label
option-value=
"Name"
option-label=
"Name"
v-model=
"objOption.ClassContent"
ref=
"ClassContent"
:options=
"ContentList"
label=
"主讲内容"
:dense=
"false"
class=
"col-12 q-pb-lg"
emit-value
map-options
/>
...
...
@@ -66,7 +71,8 @@
<
script
>
import
{
getTeacherDropDownList
,
queryClassRoomList
queryClassRoomList
,
GetTrialLessonList
}
from
"../../api/school/index"
;
import
{
GetReserveClass
,
...
...
@@ -89,7 +95,8 @@
ClassTime
:
""
,
EndTime
:
""
,
ClassRoomId
:
""
,
ClassContent
:
''
ClassContent
:
''
,
TrialLessonId
:
''
},
saveLoading
:
false
,
TeacherList
:
[],
...
...
@@ -106,7 +113,8 @@
},
{
Id
:
4
,
Name
:
'留学类:打算去往日本留学(本科、硕士、语言学校、私塾等)'
}]
}],
TrialList
:[]
//试听课程下拉数据
}
},
mounted
()
{
...
...
@@ -120,9 +128,17 @@
this
.
objOption
.
ClassDate
=
year
+
'-'
+
month
+
'-'
+
day
;
this
.
GetTeacherList
();
this
.
getClassRoomList
();
this
.
GetTrialDrop
();
this
.
initObj
()
},
methods
:
{
GetTrialDrop
(){
GetTrialLessonList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
TrialList
=
res
.
Data
;
}
});
},
//初始化表单
initObj
()
{
if
(
this
.
saveObj
&&
this
.
saveObj
.
ReserveClassId
>
0
)
{
...
...
@@ -136,6 +152,7 @@
this
.
objOption
.
ClassTime
=
res
.
Data
.
ClassTime
;
this
.
objOption
.
EndTime
=
res
.
Data
.
EndTime
;
this
.
objOption
.
ClassRoomId
=
res
.
Data
.
ClassRoomId
;
this
.
objOption
.
TrialLessonId
=
res
.
Data
.
TrialLessonId
;
this
.
objOption
.
ClassContent
=
res
.
Data
.
ClassContent
;
}
else
{
let
nowDay
=
new
Date
();
...
...
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