Commit 7a63fd22 authored by zhengke's avatar zhengke

修改

parent 453c2990
......@@ -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:14px;" size="6px" @click="delStepPrice(index)" round
<q-btn style="position:absolute;right:-5px;top:20px;" 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({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment