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
431fd722
Commit
431fd722
authored
Mar 16, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
课程价格隐藏
parent
8fecbccf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
class-form.vue
src/components/course/class-form.vue
+18
-6
No files found.
src/components/course/class-form.vue
View file @
431fd722
...
...
@@ -87,7 +87,7 @@
<div
class=
"col-6"
>
<q-select
filled
stack-label
option-value=
"CourseId"
option-label=
"CourseName"
v-model=
"objOption.CouseId"
ref=
"CouseId"
:options=
"CourseList"
label=
"关联课程"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
map-options
@
input=
"changeCourse()"
/>
</div>
</div>
<div
class=
"row wrap"
>
...
...
@@ -150,7 +150,7 @@
emit-value
map-options
/>
</div>
</div>
<div
class=
"row wrap"
style=
"margin:20px 0;"
>
<div
class=
"row wrap"
style=
"margin:20px 0;
display:none;
"
>
<div
class=
"col-6"
>
阶梯定价
<q-toggle
size=
"md"
label=
""
color=
"primary"
:false-value=
"0"
:true-value=
"1"
...
...
@@ -159,7 +159,7 @@
color=
"primary"
icon=
"iconfont icon-img_haha"
/>
</div>
</div>
<
template
v-if=
"objOption.IsStepPrice==1"
>
<
template
v-if=
"objOption.IsStepPrice==1"
style=
"display:none;"
>
<div
class=
"row wrap"
v-for=
"(item,index) in ladderPriceList"
:key=
"index"
>
<div
class=
"col-6"
>
<q-input
filled
stack-label
maxlength=
"3"
v-model=
"item.PersionNum"
...
...
@@ -175,7 +175,7 @@
</div>
</div>
</
template
>
<div
class=
"row wrap"
>
<div
class=
"row wrap"
style=
"display:none;"
>
<div
class=
"col-6"
>
提成设置
<q-toggle
size=
"md"
label=
""
color=
"primary"
:false-value=
"0"
:true-value=
"1"
...
...
@@ -186,7 +186,7 @@
</div>
</div>
</div>
<div
class=
"row wrap"
style=
"margin:20px 0"
v-if=
"objOption.IsOpenCommission==1"
>
<div
class=
"row wrap"
style=
"margin:20px 0
;display:none;
"
v-if=
"objOption.IsOpenCommission==1"
>
<div
class=
"col-12"
>
<q-field
filled
class=
"col-6 q-pr-lg q-pb-lg"
>
<
template
v-slot:control
>
...
...
@@ -429,6 +429,16 @@
this
.
initObj
()
},
methods
:
{
//选择课程改变事件
changeCourse
()
{
if
(
this
.
objOption
.
CouseId
>
0
)
{
let
val
=
this
.
CourseList
.
find
(
x
=>
x
.
CourseId
==
this
.
objOption
.
CouseId
);
if
(
val
)
{
this
.
objOption
.
OriginalPrice
=
val
.
OriginalPrice
;
this
.
objOption
.
SellPrice
=
val
.
SellPrice
;
}
}
},
//初始化日期-天
initDayList
()
{
this
.
dayList
=
[];
...
...
@@ -547,7 +557,9 @@
},
//获取课程
getCourseList
()
{
queryCourseDropdownList
({}).
then
(
res
=>
{
queryCourseDropdownList
({
IsQPrice
:
1
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
CourseList
=
res
.
Data
;
var
obj
=
{
...
...
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