Commit ee1adc3f authored by zhengke's avatar zhengke

修改

parent b88e412c
......@@ -17,7 +17,7 @@
<q-icon name="check" class="check-icon" />
</div>
</div>
<div class="box-businessModel" style="margin-right:0;display:none" :class="{ 'checked-border': type == 3 }" @click="chooseChange(3)">
<div class="box-businessModel" style="margin-right:0;" :class="{ 'checked-border': type == 3 }" @click="chooseChange(3)">
<i class="iconfont icon-vipkecheng" style="font-size:38px"></i>
<div>VIP课程</div>
<div class="right" v-if="type == 3">
......@@ -63,8 +63,8 @@
.box-businessModel {
cursor: pointer;
// width: 209px;
width: 314px;
width: 209px;
// width: 314px;
height: 198px;
background: #f9f9f9;
border-radius: 5px;
......
......@@ -5,10 +5,14 @@
<div class="col row wrap">
<q-input filled stack-label ref="CourseName" :dense="false" :rules="[val => !!val || '请输入课程名称']"
v-model="CourseMsg.CourseName" label="课程名称" class="col-6 q-pr-lg q-pb-lg" />
<q-input filled stack-label :dense="false" ref="TotalHour" v-model="CourseMsg.TotalHour"
:rules="[val => !!val || '请输入课时']" @keyup.native="checkInteger(CourseMsg,'TotalHour')" class="col-6"
<div class="col-6 row">
<q-select filled stack-label option-value="Id" option-label="Name" v-model="CourseMsg.HourType"
:options="HourTypeList" label="课时类型" class="col-5" emit-value map-options />
<q-input filled stack-label :dense="false" style="margin-left:30px;" ref="TotalHour" v-model="CourseMsg.TotalHour"
@keyup.native="checkPrice(CourseMsg,'TotalHour')" class="col-6"
label="课时" />
</div>
</div>
<div class="col row wrap">
<q-input filled stack-label :dense="false" ref="CoursePrice" maxlength="10"
@keyup.native="checkPrice(CourseMsg, 'CoursePrice')" v-model="CourseMsg.CoursePrice"
......@@ -43,6 +47,7 @@
CourseMsg: {
Id: 0,
CourseName: "", //课程名称
HourType:1, //课时类型 1课时2小时
TotalHour: '', //课时
CoursePrice: '', //价格
CourseTimeId: 1, //上课时段
......@@ -50,6 +55,13 @@
StuId: 1
},
CourseTimeList: [],
HourTypeList:[{
Id:1,
Name:'课时'
},{
Id:2,
Name:'小时'
}]
};
},
created() {},
......@@ -76,9 +88,8 @@
}
this.CourseMsg.StuId = StuArr.toString();
this.$refs.CourseName.validate();
this.$refs.TotalHour.validate();
this.$refs.CoursePrice.validate();
if (!this.$refs.CourseName.hasError && !this.$refs.TotalHour.hasError && !this.$refs.CoursePrice.hasError) {
if (!this.$refs.CourseName.hasError && !this.$refs.CoursePrice.hasError) {
SetVipCourseApply(this.CourseMsg).then(res => {
if (res.Code == 1) {
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