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
fcd60c92
Commit
fcd60c92
authored
Apr 07, 2022
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4f782181
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
course-form.vue
src/components/course/course-form.vue
+17
-1
No files found.
src/components/course/course-form.vue
View file @
fcd60c92
...
...
@@ -124,6 +124,12 @@
<q-input
filled
stack-label
v-model=
"objOption.ScrollMaxNum"
ref=
"ScrollMaxNum"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"最大上课人数"
:rules=
"[val => !!val || '请填写最大上课人数']"
/>
</div>
<div
class=
"row"
>
<q-input
filled
stack-label
v-model=
"objOption.FreeCoffeeNum"
ref=
"FreeCoffeeNum"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"赠送咖啡杯数"
:rules=
"[val => val >=0 || '请填写赠送咖啡杯数']"
/>
<q-input
filled
stack-label
v-model=
"objOption.AddHoursMoney"
ref=
"AddHoursMoney"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"课程增加课时费"
:rules=
"[val => val >=0 || '请填写课程增加课时费']"
/>
</div>
<div
class=
"row wrap"
>
<div
class=
"col-6"
>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"CourseEmphasis"
multiple
...
...
@@ -258,6 +264,8 @@
IsScrollClass
:
0
,
// 是否开启滚动开班 1是 0否(默认)
ScrollMinNum
:
0
,
// 最小上课人数
ScrollMaxNum
:
0
,
// 最大上课人数
FreeCoffeeNum
:
0
,
// 赠送咖啡
AddHoursMoney
:
0
,
// 课程增加课时费
CourseTimeId
:
0
,
// 关联上课时段
ContractInfo
:
""
,
//合同补充协议
OpenBankLevelList
:
[]
...
...
@@ -498,6 +506,8 @@
this
.
objOption
.
IsScrollClass
=
res
.
Data
.
IsScrollClass
;
this
.
objOption
.
ScrollMinNum
=
res
.
Data
.
ScrollMinNum
;
this
.
objOption
.
ScrollMaxNum
=
res
.
Data
.
ScrollMaxNum
;
this
.
objOption
.
FreeCoffeeNum
=
res
.
Data
.
FreeCoffeeNum
;
this
.
objOption
.
AddHoursMoney
=
res
.
Data
.
AddHoursMoney
;
this
.
objOption
.
CourseTimeId
=
res
.
Data
.
CourseTimeId
;
this
.
objOption
.
OpenBankLevelList
=
res
.
Data
.
OpenBankLevelList
;
this
.
CourseEmphasis
=
[];
...
...
@@ -556,6 +566,8 @@
this
.
objOption
.
IsScrollClass
=
0
;
this
.
objOption
.
ScrollMinNum
=
0
;
this
.
objOption
.
ScrollMaxNum
=
0
;
this
.
objOption
.
FreeCoffeeNum
=
0
;
this
.
objOption
.
AddHoursMoney
=
0
;
this
.
objOption
.
CourseTimeId
=
0
;
this
.
objOption
.
OpenBankLevelList
=
[];
}
...
...
@@ -570,10 +582,14 @@
this
.
$refs
.
CourseName
.
validate
();
this
.
$refs
.
ClassHours
.
validate
();
this
.
$refs
.
CateId
.
validate
();
this
.
$refs
.
FreeCoffeeNum
.
validate
();
this
.
$refs
.
AddHoursMoney
.
validate
();
if
(
!
this
.
$refs
.
CourseName
.
hasError
&&
!
this
.
$refs
.
ClassHours
.
hasError
&&
!
this
.
$refs
.
CateId
.
hasError
!
this
.
$refs
.
CateId
.
hasError
&&
!
this
.
$refs
.
FreeCoffeeNum
.
hasError
&&
!
this
.
$refs
.
AddHoursMoney
.
hasError
)
{
this
.
saveCourseLoading
=
true
;
var
Teacher_Ids
=
""
;
...
...
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