|
@@ -174,7 +174,7 @@ export default {
|
|
|
onSubmit() {
|
|
|
let searchList = this.searchList
|
|
|
if(!searchList.startText || !searchList.endText) {
|
|
|
- this.$toast('请假时间不能为空')
|
|
|
+ this.$toast('时间不能为空')
|
|
|
return
|
|
|
}
|
|
|
|
|
@@ -184,7 +184,7 @@ export default {
|
|
|
// }
|
|
|
|
|
|
if(!searchList.remark) {
|
|
|
- this.$toast('请填写请假原因')
|
|
|
+ this.$toast('请填写原因')
|
|
|
return
|
|
|
}
|
|
|
let leaveCategoryId
|
|
@@ -210,10 +210,9 @@ export default {
|
|
|
let m = parseInt(Math.abs(startDate.getTime() - endDate.getTime()) / 1000 / 60)
|
|
|
tempI.classDate = this.getFormatDate(item.changeAllTime) + ':00'
|
|
|
tempI.startClassTime = this.getFormatDate(item.changeAllTime) + ':00'
|
|
|
- let tempEndClassTime = new Date() //临时时间
|
|
|
let currentDate = new Date(item.changeAllTime)
|
|
|
- tempEndClassTime.setMinutes(currentDate.getMinutes() + m)
|
|
|
- tempI.endClassTime = this.getFormatDate(tempEndClassTime) + ':00'
|
|
|
+ currentDate.setMinutes(currentDate.getMinutes() + m)
|
|
|
+ tempI.endClassTime = this.getFormatDate(currentDate) + ':00'
|
|
|
coursesScheduleJson.push({
|
|
|
befor: item,
|
|
|
after: tempI
|