Commit 33fef16f authored by zhengke's avatar zhengke

修改

parent 501ae891
...@@ -41,7 +41,19 @@ ...@@ -41,7 +41,19 @@
start: '09:00', start: '09:00',
step: '00:15', step: '00:15',
end: '21:00' end: '21:00'
}" placeholder="预约时间"> }" placeholder="预约开始时间">
</el-time-select>
</template>
</q-field>
</div>
<div class="Sysuser_Date">
<q-field filled class="q-pb-lg">
  <template v-slot:control>
<el-time-select v-model="addMsg.EndTime" ref="EndTime" style="width:100%" :picker-options="{
start: '09:00',
step: '00:15',
end: '21:00'
}" placeholder="预约结束时间">
</el-time-select> </el-time-select>
</template> </template>
</q-field> </q-field>
...@@ -101,7 +113,8 @@ ...@@ -101,7 +113,8 @@
Visitor_Id: 0, //访客编号 Visitor_Id: 0, //访客编号
ReserveClassId: 0, //选中的班级编号 ReserveClassId: 0, //选中的班级编号
ClassDate: "", //预约日期 ClassDate: "", //预约日期
ClassTime: "", //预约时间 ClassTime: "", //预约开始时间
EndTime: "", //预约结束时间
TeacherId: 0, //教师编号 TeacherId: 0, //教师编号
ClassRoomId: 0, //教室编号 ClassRoomId: 0, //教室编号
ClassContent: "", //主讲内容 ClassContent: "", //主讲内容
...@@ -179,7 +192,16 @@ ...@@ -179,7 +192,16 @@
type: 'negative', type: 'negative',
position: "top", position: "top",
timeout: 2000, timeout: 2000,
message: '请选择预约时间!', message: '请选择预约开始时间!',
})
return;
}
if(this.addMsg.EndTime == ''){
this.$q.notify({
type: 'negative',
position: "top",
timeout: 2000,
message: '请选择预约结束时间!',
}) })
return; return;
} }
...@@ -190,12 +212,19 @@ ...@@ -190,12 +212,19 @@
icon: 'iconfont icon-chenggong', icon: 'iconfont icon-chenggong',
color: 'accent', color: 'accent',
timeout: 2000, timeout: 2000,
message: '数据保存成功!', message: res.Message,
position: 'top' position: 'top'
}) })
this.$emit('success'); this.$emit('success');
this.closeAppointForm(); }else{
this.$q.notify({
type: 'negative',
position: "top",
timeout: 2000,
message: res.Message,
})
} }
this.closeAppointForm();
}) })
} }
}, },
......
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