Commit 7f55b579 authored by 黄奎's avatar 黄奎

页面修改

parent 23155b25
......@@ -203,7 +203,7 @@
<div class="col-6">
<q-select filled stack-label option-value="Id" option-label="Name" v-model="objOption.ClassStyle"
ref="ClassStyle" :options="classSetList" label="排课安排" :dense="false" class="col-6 q-pr-lg q-pr-lg"
emit-value map-options />
emit-value map-options @input="changeClassStyle(objOption.ClassStyle)" />
</div>
</div>
<div class="row wrap" v-if="objOption.ClassStyle==1">
......@@ -417,6 +417,10 @@
this.initObj()
},
methods: {
//下拉选择改变
changeClassStyle(style) {
this.checkedDays = [];
},
//初始化表单
initObj() {
if (this.saveObj && this.saveObj.ClassId > 0) {
......@@ -429,13 +433,7 @@
this.objOption.CouseId = TempData.CouseId;
this.objOption.Teacher_Id = TempData.Teacher_Id;
this.objOption.Assist_Id = TempData.Assist_Id;
this.objOption.Group_Id = TempData.Group_Id;
this.objOption.School_Id = TempData.School_Id;
this.objOption.CreateBy = TempData.CreateBy;
this.objOption.CreateTime = TempData.CreateTime;
this.objOption.UpdateBy = TempData.UpdateBy;
this.objOption.UpdateTime = TempData.UpdateTime;
this.objOption.Status = TempData.Status;
this.objOption.ClassPersion = TempData.ClassPersion;
this.objOption.OpenTime = TempData.OpenTime; //暂无
this.objOption.EndOrderTime = TempData.EndOrderTime;
......@@ -451,6 +449,26 @@
this.objOption.ClassStatus = TempData.ClassStatus;
this.objOption.InnerRemark = TempData.InnerRemark;
this.objOption.ClassType = TempData.ClassType;
//默认时间
if (TempData.DefaultTimeList && TempData.DefaultTimeList.length > 0) {
this.DefaultPlanTimeList = TempData.DefaultTimeList;
}
if (TempData.WeekDayList && TempData.WeekDayList.length > 0) {
switch (this.objOption.ClassStyle) {
//按周排课
case 1:
this.checkedDays = TempData.WeekDayList;
break;
//按月排课
case 2:
this.checkedDays = TempData.WeekDayList;
break;
//固定日期排课
case 3:
this.checkedDays = TempData.WeekDayList;
break;
}
}
if (TempData.ClassStepPriceList && TempData.ClassStepPriceList.length > 0) {
this.ladderPriceList = TempData.ClassStepPriceList;
}
......
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