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
7a63fd22
Commit
7a63fd22
authored
Dec 04, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
453c2990
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
4 deletions
+55
-4
class-form.vue
src/components/course/class-form.vue
+55
-4
No files found.
src/components/course/class-form.vue
View file @
7a63fd22
...
...
@@ -55,7 +55,7 @@
</
style
>
<
template
>
<q-dialog
v-model=
"persistent"
persistent
transition-show=
"scale"
transition-hide
=
"scale"
>
<q-dialog
v-model=
"persistent"
content-class=
"bg-grey-1"
persistent
transition-show
=
"scale"
>
<q-card
style=
"width: 800px;max-width:900px;"
class=
"CLM-Form"
>
<q-card-section>
<div
class=
"text-h6"
>
{{
optionTitle
}}
</div>
...
...
@@ -148,7 +148,7 @@
<div
class=
"col-6"
style=
"position:relative;"
>
<q-input
filled
stack-label
maxlength=
"20"
v-model=
"item.PersionPrice"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"价格"
/>
<q-btn
style=
"position:absolute;right:-
8px;top:14
px;"
size=
"6px"
@
click=
"delStepPrice(index)"
round
<q-btn
style=
"position:absolute;right:-
5px;top:20
px;"
size=
"6px"
@
click=
"delStepPrice(index)"
round
color=
"red"
icon=
"iconfont icon-guanbi1"
/>
</div>
</div>
...
...
@@ -175,7 +175,7 @@
</
template
>
</el-input>
</template>
</q-field>
</q-field>
</div>
</div>
<div
class=
"text-caption q-mb-lg q-px-md text-grey-6"
>
上课设置
</div>
...
...
@@ -218,7 +218,7 @@
<q-date
v-model=
"checkedDays"
minimal
range
multiple
style=
"width:100%"
/>
</div>
</div>
<div
class=
"row wrap"
style=
"margin-top:30px;"
v-if=
"objOption.ClassStyle==3"
>
<div
class=
"row wrap"
style=
"margin-top:30px;"
>
<div
class=
"col-6"
>
<q-input
filled
stack-label
maxlength=
"20"
v-model=
"objOption.ClassHours"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"学习课时"
/>
...
...
@@ -405,6 +405,57 @@
saveCourse
()
{
this
.
saveCourseLoading
=
true
this
.
objOption
.
ClassStepPriceList
=
this
.
ladderPriceList
;
if
(
this
.
objOption
.
ClassName
==
''
){
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请填写班级名称`
})
return
;
}
if
(
this
.
objOption
.
ClassPersion
==
''
){
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请填写招生人数`
})
return
;
}
if
(
this
.
objOption
.
OriginalPrice
==
''
){
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请填写原价`
})
return
;
}
if
(
this
.
objOption
.
SellPrice
==
''
){
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请填写卖价`
})
return
;
}
if
(
this
.
objOption
.
IsOpenCommission
==
1
){
if
(
this
.
objOption
.
CommissionValue
==
''
){
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请填写数值`
})
return
;
}
}
if
(
this
.
objOption
.
ClassHours
==
''
){
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请填写学习课时`
})
return
;
}
saveClass
(
this
.
objOption
).
then
(
res
=>
{
this
.
saveCourseLoading
=
false
this
.
$q
.
notify
({
...
...
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