Commit 465c2dd6 authored by zhengke's avatar zhengke

修改

parent 28389ca7
...@@ -160,7 +160,8 @@ ...@@ -160,7 +160,8 @@
</div> </div>
<div v-if="msg.ChangeType==1&&msg.MoveType==2"> <div v-if="msg.ChangeType==1&&msg.MoveType==2">
<div class="row"> <div class="row">
<q-input filled v-model="msg.AllChangePlanItem.OpenTimeStr" class="col-6 q-pr-lg q-pb-lg" mask="date" label="开班时间"> <q-input filled v-model="msg.AllChangePlanItem.OpenTimeStr" class="col-6 q-pr-lg q-pb-lg" mask="date"
label="开班时间">
<template v-slot:append> <template v-slot:append>
<q-icon name="event" class="cursor-pointer"> <q-icon name="event" class="cursor-pointer">
<q-popup-proxy ref="qDateProxy1" transition-show="scale" transition-hide="scale"> <q-popup-proxy ref="qDateProxy1" transition-show="scale" transition-hide="scale">
...@@ -169,9 +170,10 @@ ...@@ -169,9 +170,10 @@
</q-icon> </q-icon>
</template> </template>
</q-input> </q-input>
<q-select filled stack-label option-value="Id" option-label="Name" v-model="msg.AllChangePlanItem.ClassStyle" <q-select filled stack-label option-value="Id" option-label="Name"
ref="ClassStyle" :options="classSetList" label="排课安排" :dense="false" class="col-6 q-pr-lg q-pb-lg" v-model="msg.AllChangePlanItem.ClassStyle" ref="ClassStyle" :options="classSetList" label="排课安排"
emit-value map-options @input="changeClassStyle(msg.AllChangePlanItem.ClassStyle)" /> :dense="false" class="col-6 q-pr-lg q-pb-lg" emit-value map-options
@input="changeClassStyle(msg.AllChangePlanItem.ClassStyle)" />
</div> </div>
<div class="row wrap" v-if="msg.AllChangePlanItem.ClassStyle==1"> <div class="row wrap" v-if="msg.AllChangePlanItem.ClassStyle==1">
<div class="col-6"> <div class="col-6">
...@@ -293,7 +295,8 @@ ...@@ -293,7 +295,8 @@
<div class="row wrap" style="margin-top:30px;"> <div class="row wrap" style="margin-top:30px;">
<div class="col-6"> <div class="col-6">
<q-input filled stack-label maxlength="6" v-model="msg.AllChangePlanItem.ClassHours" :dense="false" <q-input filled stack-label maxlength="6" v-model="msg.AllChangePlanItem.ClassHours" :dense="false"
class="col-6 q-pr-lg q-pb-lg" label="学习课时" @keyup.native="checkInteger(msg.AllChangePlanItem,'ClassHours')" /> class="col-6 q-pr-lg q-pb-lg" label="学习课时"
@keyup.native="checkInteger(msg.AllChangePlanItem,'ClassHours')" />
</div> </div>
<div class="col-6"> <div class="col-6">
<q-select label="课时分钟数" filled stack-label v-model="msg.AllChangePlanItem.ClassHourMinute" <q-select label="课时分钟数" filled stack-label v-model="msg.AllChangePlanItem.ClassHourMinute"
...@@ -394,15 +397,15 @@ ...@@ -394,15 +397,15 @@
TeacherId: 0, TeacherId: 0,
OldChangePlanItemList: [], OldChangePlanItemList: [],
NewChangePlanItemList: [], NewChangePlanItemList: [],
AllChangePlanItem:{ AllChangePlanItem: {
OpenTimeStr:'', //开班时间 OpenTimeStr: '', //开班时间
ClassStyle: 1, //排课方式(1-周,2-月,3-固定日期,4-约课) ClassStyle: 1, //排课方式(1-周,2-月,3-固定日期,4-约课)
ClassHours:0, // ClassHours: 0, //
ClassHourMinute:0, ClassHourMinute: 0,
WeekDayList:[], //周几 WeekDayList: [], //周几
TeacherId:0, TeacherId: 0,
ClassRoomId:0, ClassRoomId: 0,
DefaultTimeList:[] DefaultTimeList: []
} }
}, },
selected: [], selected: [],
...@@ -664,7 +667,29 @@ ...@@ -664,7 +667,29 @@
}) })
this.msg.NewChangePlanItemList.push(newObj); this.msg.NewChangePlanItemList.push(newObj);
}) })
this.msg.AllChangePlanItem={}; this.msg.AllChangePlanItem = {};
//日期相同 上课时间不能相同
// if(this.msg.OldChangePlanItemList.length>0&&this.msg.NewChangePlanItemList.length>0){
// for(let i=0;i<this.msg.OldChangePlanItemList.length;i++){
// for(let j=0;j<this.msg.NewChangePlanItemList.length;j++){
// if(this.msg.OldChangePlanItemList[i].ClassDate==this.msg.NewChangePlanItemList[j].ClassDate){
// for(let k=0;k<this.msg.OldChangePlanItemList[i].PlanTimeList.length;k++){
// for(let p=0;p<this.msg.NewChangePlanItemList[j].PlanTimeList.length;p++){
// if((this.msg.OldChangePlanItemList[i].PlanTimeList[k].StartTime==this.msg.NewChangePlanItemList[j].PlanTimeList[p].StartTime)&&
// (this.msg.OldChangePlanItemList[i].PlanTimeList[k].EndTime==this.msg.NewChangePlanItemList[j].PlanTimeList[p].EndTime)){
// this.$q.notify({
// type: 'negative',
// position: "top",
// message: `请改变第${p+1}节课目标时间`
// })
// return;
// }
// }
// }
// }
// }
// }
// }
} else { } else {
this.$q.notify({ this.$q.notify({
type: 'negative', type: 'negative',
...@@ -741,7 +766,7 @@ ...@@ -741,7 +766,7 @@
}) })
this.msg.NewChangePlanItemList.push(newObj); this.msg.NewChangePlanItemList.push(newObj);
}) })
this.msg.AllChangePlanItem={}; this.msg.AllChangePlanItem = {};
} else { } else {
this.$q.notify({ this.$q.notify({
type: 'negative', type: 'negative',
...@@ -817,7 +842,7 @@ ...@@ -817,7 +842,7 @@
}) })
this.msg.NewChangePlanItemList.push(newObj); this.msg.NewChangePlanItemList.push(newObj);
}) })
this.msg.AllChangePlanItem={}; this.msg.AllChangePlanItem = {};
} else { } else {
this.$q.notify({ this.$q.notify({
type: 'negative', type: 'negative',
...@@ -861,7 +886,7 @@ ...@@ -861,7 +886,7 @@
}) })
this.msg.OldChangePlanItemList.push(obj); this.msg.OldChangePlanItemList.push(obj);
}) })
this.msg.AllChangePlanItem={}; this.msg.AllChangePlanItem = {};
} else { } else {
this.$q.notify({ this.$q.notify({
type: 'negative', type: 'negative',
...@@ -872,10 +897,10 @@ ...@@ -872,10 +897,10 @@
} }
} }
//变更类型 取消上课 变更范围 全局 //变更类型 取消上课 变更范围 全局
if (this.msg.ChangeType == 4 && this.msg.MoveType ==2){ if (this.msg.ChangeType == 4 && this.msg.MoveType == 2) {
this.msg.OldChangePlanItemList = []; this.msg.OldChangePlanItemList = [];
this.msg.NewChangePlanItemList = []; this.msg.NewChangePlanItemList = [];
this.msg.AllChangePlanItem={} this.msg.AllChangePlanItem = {}
} }
SetChangeClassPlan(this.msg).then(res => { SetChangeClassPlan(this.msg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
...@@ -934,7 +959,7 @@ ...@@ -934,7 +959,7 @@
}).PlanList }).PlanList
}, },
changeTypeResult(val) { changeTypeResult(val) {
this.selected=[]; this.selected = [];
}, },
changeSchool(val) { changeSchool(val) {
this.queryClass.SchoolId = val this.queryClass.SchoolId = val
...@@ -1012,7 +1037,7 @@ ...@@ -1012,7 +1037,7 @@
TimeList: [{ TimeList: [{
StartTime: "", StartTime: "",
EndTime: "", EndTime: "",
TimeHour:'' TimeHour: ''
}], }],
} }
this.DefaultPlanTimeList.push(planObj); this.DefaultPlanTimeList.push(planObj);
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</div> </div>
<div class="col-4"> <div class="col-4">
<q-btn color="accent" size="sm" class="q-mr-md" style="margin-top:2px;" @click="exchangeType" :label="typeName" /> <q-btn color="accent" size="sm" class="q-mr-md" style="margin-top:2px;" @click="exchangeType" :label="typeName" />
<q-btn color="negative" size="sm" label="调课申请" @click="openForm" style="display:none;"></q-btn> <q-btn color="negative" size="sm" label="调课申请" @click="openForm"></q-btn>
</div> </div>
</div> </div>
<classmateForm :dataList="dataList" v-if="commonType==1"></classmateForm> <classmateForm :dataList="dataList" v-if="commonType==1"></classmateForm>
......
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