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
5956b9bc
Commit
5956b9bc
authored
Dec 04, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面西修改
parent
5e9ee6c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
22 deletions
+20
-22
class-form.vue
src/components/course/class-form.vue
+20
-22
No files found.
src/components/course/class-form.vue
View file @
5956b9bc
...
@@ -135,18 +135,18 @@
...
@@ -135,18 +135,18 @@
阶梯定价
阶梯定价
<q-toggle
size=
"md"
label=
""
color=
"primary"
:false-value=
"0"
:true-value=
"1"
<q-toggle
size=
"md"
label=
""
color=
"primary"
:false-value=
"0"
:true-value=
"1"
v-model=
"objOption.IsStepPrice"
/>
v-model=
"objOption.IsStepPrice"
/>
<q-btn
style=
"margin-left:30px;"
size=
"10px"
@
click=
"addStepPrice()"
round
color=
"primary"
<q-btn
v-if=
"objOption.IsStepPrice==1"
style=
"margin-left:30px;"
size=
"10px"
@
click=
"addStepPrice()"
round
icon=
"iconfont icon-img_haha"
/>
color=
"primary"
icon=
"iconfont icon-img_haha"
/>
</div>
</div>
</div>
</div>
<
template
v-if=
"objOption.IsStepPrice==1"
>
<
template
v-if=
"objOption.IsStepPrice==1"
>
<div
class=
"row wrap"
v-for=
"(item,index) in ladderPriceList"
:key=
"index"
>
<div
class=
"row wrap"
v-for=
"(item,index) in ladderPriceList"
:key=
"index"
>
<div
class=
"col-6"
>
<div
class=
"col-6"
>
<q-input
filled
stack-label
maxlength=
"20"
v-model=
"item.
pnumber
"
:dense=
"false"
<q-input
filled
stack-label
maxlength=
"20"
v-model=
"item.
PersionNum
"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"人"
/>
class=
"col-6 q-pr-lg q-pb-lg"
label=
"人"
/>
</div>
</div>
<div
class=
"col-6"
style=
"position:relative;"
>
<div
class=
"col-6"
style=
"position:relative;"
>
<q-input
filled
stack-label
maxlength=
"20"
v-model=
"item.
p
rice"
:dense=
"false"
<q-input
filled
stack-label
maxlength=
"20"
v-model=
"item.
PersionP
rice"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"价格"
/>
class=
"col-6 q-pr-lg q-pb-lg"
label=
"价格"
/>
<q-btn
style=
"position:absolute;right:-8px;top:14px;"
size=
"10px"
@
click=
"delStepPrice(index)"
round
<q-btn
style=
"position:absolute;right:-8px;top:14px;"
size=
"10px"
@
click=
"delStepPrice(index)"
round
color=
"red"
icon=
"iconfont icon-guanbi1"
/>
color=
"red"
icon=
"iconfont icon-guanbi1"
/>
...
@@ -158,16 +158,16 @@
...
@@ -158,16 +158,16 @@
提成设置
提成设置
<q-toggle
size=
"md"
label=
""
color=
"primary"
:false-value=
"0"
:true-value=
"1"
<q-toggle
size=
"md"
label=
""
color=
"primary"
:false-value=
"0"
:true-value=
"1"
v-model=
"objOption.IsOpenCommission"
/>
v-model=
"objOption.IsOpenCommission"
/>
<div
style=
"display:inline-block;margin-left:20px;"
>
<div
style=
"display:inline-block;margin-left:20px;"
v-if=
"objOption.IsOpenCommission==1"
>
<q-radio
v-model=
"objOption.CommissionType"
:val=
"1"
label=
"按人头"
/>
<q-radio
v-model=
"objOption.CommissionType"
:val=
"1"
label=
"按人头"
/>
<q-radio
v-model=
"objOption.CommissionType"
:val=
"2"
label=
"按百分"
/>
<q-radio
v-model=
"objOption.CommissionType"
:val=
"2"
label=
"按百分"
/>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"row wrap"
style=
"margin:20px 0"
>
<div
class=
"row wrap"
style=
"margin:20px 0"
v-if=
"objOption.IsOpenCommission==1"
>
<div
class=
"col-12"
>
<div
class=
"col-12"
>
<q-field
filled
class=
"col-6 q-pr-lg q-pb-lg"
>
<q-field
filled
class=
"col-6 q-pr-lg q-pb-lg"
>
<
template
v-slot:control
>
<
template
v-slot:control
>
<el-input
placeholder=
"数值"
v-model=
"objOption.CommissionValue"
>
<el-input
placeholder=
"数值"
v-model=
"objOption.CommissionValue"
>
<template
slot=
"append"
>
<template
slot=
"append"
>
<span
v-if=
"objOption.CommissionType==1"
>
人
</span>
<span
v-if=
"objOption.CommissionType==1"
>
人
</span>
...
@@ -175,7 +175,7 @@
...
@@ -175,7 +175,7 @@
</
template
>
</
template
>
</el-input>
</el-input>
</template>
</template>
</q-field>
</q-field>
</div>
</div>
</div>
</div>
<div
class=
"text-caption q-mb-lg q-px-md text-grey-6"
>
上课设置
</div>
<div
class=
"text-caption q-mb-lg q-px-md text-grey-6"
>
上课设置
</div>
...
@@ -275,9 +275,9 @@
...
@@ -275,9 +275,9 @@
EndOrderTime
:
''
,
//截止报名时间
EndOrderTime
:
''
,
//截止报名时间
OriginalPrice
:
''
,
//原价
OriginalPrice
:
''
,
//原价
SellPrice
:
''
,
//售价
SellPrice
:
''
,
//售价
IsStepPrice
:
1
,
//是否阶梯价(1-是)
IsStepPrice
:
0
,
//是否阶梯价(1-是)
ClassRoomId
:
''
,
//教室编号
ClassRoomId
:
''
,
//教室编号
IsOpenCommission
:
1
,
//是否开启提成设置(1-是)
IsOpenCommission
:
0
,
//是否开启提成设置(1-是)
CommissionType
:
1
,
//提成类型(1-人头,2-百分比)
CommissionType
:
1
,
//提成类型(1-人头,2-百分比)
CommissionValue
:
''
,
//提成值
CommissionValue
:
''
,
//提成值
ClassHours
:
''
,
//课时
ClassHours
:
''
,
//课时
...
@@ -288,16 +288,12 @@
...
@@ -288,16 +288,12 @@
CompleteProgress
:
0
//完成进度
CompleteProgress
:
0
//完成进度
},
},
optionTitle
:
""
,
optionTitle
:
""
,
defaultArray
:
[],
saveCourseLoading
:
false
,
saveCourseLoading
:
false
,
ClassList
:
[],
//关联课程下拉数据
ClassList
:
[],
//关联课程下拉数据
TeacherList
:
[],
//关联教师下拉数据
TeacherList
:
[],
//关联教师下拉数据
SchoolList
:
[],
//关联校区下拉数据
SchoolList
:
[],
//关联校区下拉数据
ClassRoomList
:[],
//教室下拉数据
ClassRoomList
:
[],
//教室下拉数据
ladderPriceList
:
[{
//阶梯定价数组
ladderPriceList
:
[],
//阶梯定价数组
pnumber
:
2
,
price
:
''
}],
checkedArr
:
[],
checkedArr
:
[],
//上课设置
//上课设置
classSetList
:
[{
classSetList
:
[{
...
@@ -359,7 +355,6 @@
...
@@ -359,7 +355,6 @@
methods
:
{
methods
:
{
//初始化表单
//初始化表单
initObj
()
{
initObj
()
{
this
.
defaultArray
=
[];
if
(
this
.
saveObj
&&
this
.
saveObj
.
ClassId
>
0
)
{
if
(
this
.
saveObj
&&
this
.
saveObj
.
ClassId
>
0
)
{
getClassInfo
({
getClassInfo
({
ClassId
:
this
.
saveObj
.
ClassId
ClassId
:
this
.
saveObj
.
ClassId
...
@@ -373,7 +368,7 @@
...
@@ -373,7 +368,7 @@
},
},
//关闭弹窗
//关闭弹窗
closeCourseForm
()
{
closeCourseForm
()
{
this
.
$emit
(
'close'
)
this
.
$emit
(
'close'
)
;
this
.
persistent
=
false
this
.
persistent
=
false
},
},
//保存班级
//保存班级
...
@@ -433,12 +428,15 @@
...
@@ -433,12 +428,15 @@
},
},
//新增阶梯定价
//新增阶梯定价
addStepPrice
()
{
addStepPrice
()
{
var
_index
=
this
.
ladderPriceList
.
length
-
1
;
var
obj
=
{
var
obj
=
{
pnumber
:
''
,
ClassStepPriceId
:
0
,
price
:
''
PersionNum
:
2
,
PersionPrice
:
0
}
if
(
this
.
ladderPriceList
&&
this
.
ladderPriceList
.
length
>
0
)
{
var
_index
=
this
.
ladderPriceList
.
length
-
1
;
obj
.
PersionNum
=
parseInt
(
this
.
ladderPriceList
[
_index
].
PersionNum
)
+
1
;
}
}
obj
.
pnumber
=
parseInt
(
this
.
ladderPriceList
[
_index
].
pnumber
)
+
1
;
this
.
ladderPriceList
.
push
(
obj
);
this
.
ladderPriceList
.
push
(
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