Commit c336c3eb authored by 罗超's avatar 罗超

1

parent 0dae588d
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
<div class="col-12 Sysuser_Date"> <div class="col-12 Sysuser_Date">
<q-field filled> <q-field filled>
 <template v-slot:control>  <template v-slot:control>
<el-date-picker v-model="date" value-format="yyyy-MM-dd" type="daterange" <el-date-picker v-model="date" value-format="yyyy-MM-dd" type="daterange"  range-separator="至"
 range-separator="至"  start-placeholder="开始日期"  end-placeholder="结束日期" >  start-placeholder="开始日期"  end-placeholder="结束日期">
 </el-date-picker>         </el-date-picker>       
</template> </template>
</q-field> </q-field>
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
</template> </template>
<script> <script>
import { import {
setHolidayPlan, setHolidayPlan,
} from '../../api/scheduling/schedu' } from '../../api/scheduling/schedu'
export default { export default {
...@@ -72,8 +72,8 @@ ...@@ -72,8 +72,8 @@
created() { created() {
if (this.saveObj && this.saveObj.HolidayId > 0) { if (this.saveObj && this.saveObj.HolidayId > 0) {
this.addMsg = this.saveObj this.addMsg = this.saveObj
this.date[0]=this.saveObj.StartTime this.date[0] = this.saveObj.StartTime
this.date[1]=this.saveObj.EndTime this.date[1] = this.saveObj.EndTime
} }
}, },
methods: { methods: {
...@@ -84,13 +84,22 @@ ...@@ -84,13 +84,22 @@
}, },
//保存菜单 //保存菜单
saveCourse() { saveCourse() {
console.log(this.date)
this.addMsg.StartTime=this.date[0] if (!this.date) {
this.addMsg.EndTime=this.date[1] this.date = ["", ""]
if(this.addMsg.StartTime==""||this.addMsg.EndTime==""){ }
this.Success('请选择时间') this.addMsg.StartTime = this.date[0]
return this.addMsg.EndTime = this.date[1]
} console.log(97, this.date, this.addMsg)
if (this.addMsg.StartTime == "" || this.addMsg.EndTime == "") {
this.$q.notify({
icon: "error",
color: "negative",
message: '请选择时间',
position: "top"
})
return
}
setHolidayPlan(this.addMsg).then(res=>{ setHolidayPlan(this.addMsg).then(res=>{
if(res.Code===1){ if(res.Code===1){
this.Success(res.Message) this.Success(res.Message)
...@@ -99,7 +108,7 @@ ...@@ -99,7 +108,7 @@
} }
}) })
}, },
} }
}; };
......
...@@ -301,11 +301,9 @@ ...@@ -301,11 +301,9 @@
if (this.$route.query.id) { if (this.$route.query.id) {
this.id = this.$route.query.id; this.id = this.$route.query.id;
} }
}, },
mounted(){ mounted(){
this.getdata(); this.getdata();
}, },
methods: { methods: {
getdata(){ getdata(){
...@@ -351,8 +349,7 @@ ...@@ -351,8 +349,7 @@
getVideoPlayUrl({strVid:url}).then(res=>{ getVideoPlayUrl({strVid:url}).then(res=>{
if(res.Code===1){ if(res.Code===1){
this.initPlayer(res.Data.URL,res.Data.VideoImg,auth) this.initPlayer(res.Data.URL,res.Data.VideoImg,auth)
} }
}) })
} }
}, },
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="getClassRoomTimeList" standout="bg-primary text-white" option-value="RoomId" <q-select @input="getClassRoomTimeList" standout="bg-primary text-white" option-value="RoomId"
option-label="RoomName" v-model="msg.ClassRoomId" :options="classroomopt" emit-value map-options option-label="RoomName" v-model="msg.ClassRoomId" :options="classroomopt" emit-value map-options use-input clearable
label="关联教室" @filter="filterFn"> label="关联教室" @filter="filterFn">
<template v-slot:no-option> <template v-slot:no-option>
<q-item> <q-item>
...@@ -78,10 +78,8 @@ ...@@ -78,10 +78,8 @@
}, },
tbodayData: [], tbodayData: [],
schoolopt: [], schoolopt: [],
classroomopt: [{ classroomopt: [],
RoomName: "不限", AllClassroomOpt:[]
RoomId: 0
}],
}; };
}, },
created() { created() {
...@@ -109,10 +107,10 @@ ...@@ -109,10 +107,10 @@
filterFn(val, update) { filterFn(val, update) {
update(() => { update(() => {
if (val === '') { if (val === '') {
this.classroomopt = JSON.parse(JSON.stringify(this.classroomopt)) this.classroomopt = JSON.parse(JSON.stringify(this.AllClassroomOpt))
} else { } else {
const needle = val.toLowerCase(); const needle = val.toLowerCase();
this.classroomopt = this.classroomopt.filter(v => v.RoomName.toLowerCase().indexOf(needle) > -1); this.classroomopt = this.AllClassroomOpt.filter(v => v.RoomName.toLowerCase().indexOf(needle) > -1);
} }
}) })
}, },
...@@ -142,6 +140,7 @@ ...@@ -142,6 +140,7 @@
RoomId: 0 RoomId: 0
} }
this.classroomopt = [obj, ...res[0].RoomList] this.classroomopt = [obj, ...res[0].RoomList]
this.AllClassroomOpt=[obj, ...res[0].RoomList]
} }
} }
...@@ -159,6 +158,7 @@ ...@@ -159,6 +158,7 @@
RoomId: 0 RoomId: 0
} }
this.classroomopt = [obj, ...res[0].RoomList] this.classroomopt = [obj, ...res[0].RoomList]
this.AllClassroomOpt=[obj, ...res[0].RoomList]
} }
this.getClassRoomTimeList() this.getClassRoomTimeList()
...@@ -179,10 +179,6 @@ ...@@ -179,10 +179,6 @@
this.msg.ClassRoomId = val.RoomId this.msg.ClassRoomId = val.RoomId
this.msg.SchoolId = val.schoolId this.msg.SchoolId = val.schoolId
this.getClassRoomTimeList(); this.getClassRoomTimeList();
this.$forceUpdate()
},
dateChoose(value, reason, details) {
}, },
//获取结束日期 //获取结束日期
getEndTime(date) { getEndTime(date) {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<q-field filled> <q-field filled>
 <template v-slot:control>  <template v-slot:control>
<el-date-picker v-model="dateList" @change="resetSearch()" value-format="yyyy-MM-dd" type="daterange" style="border:none;" <el-date-picker v-model="dateList" @change="resetSearch()" value-format="yyyy-MM-dd" type="daterange" style="border:none;"
 range-separator="至"  start-placeholder="开始日期"  end-placeholder="结束日期">  range-separator="至"  start-placeholder="开始日期"  end-placeholder="结束日期" >
 </el-date-picker>         </el-date-picker>       
</template> </template>
</q-field> </q-field>
...@@ -145,12 +145,14 @@ ...@@ -145,12 +145,14 @@
}, },
methods: { methods: {
getList() { getList() {
if(!this.dateList){
this.dateList=["",""]
}
this.msg.StartTime = this.dateList[0] this.msg.StartTime = this.dateList[0]
this.msg.EndTime = this.dateList[1] this.msg.EndTime = this.dateList[1]
this.loading = true this.loading = true
getHolidayPlanList(this.msg).then(res => { getHolidayPlanList(this.msg).then(res => {
this.loading = false this.loading = false
console.log(185, res)
if (res.Code === 1) { if (res.Code === 1) {
this.data = res.Data.PageData this.data = res.Data.PageData
this.pageCount = res.Data.PageCount this.pageCount = res.Data.PageCount
......
...@@ -146,6 +146,12 @@ ...@@ -146,6 +146,12 @@
label: '学员名称', label: '学员名称',
field: 'GuestName', field: 'GuestName',
align: 'left', align: 'left',
},
{
name: 'Mobile',
label: '电话',
field: 'Mobile',
align: 'left'
}, },
{ {
name: 'ClassName', name: 'ClassName',
...@@ -165,12 +171,7 @@ ...@@ -165,12 +171,7 @@
field: 'TotalPlanNum', field: 'TotalPlanNum',
align: 'left' align: 'left'
}, },
{
name: 'Mobile',
label: '电话',
field: 'Mobile',
align: 'left'
},
{ {
name: 'IsRenewOrder', name: 'IsRenewOrder',
label: '是否是续课订单', label: '是否是续课订单',
......
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