Browse Source

修改请假时间

lex-xin 5 years ago
parent
commit
616a10eb3b

File diff suppressed because it is too large
+ 0 - 0
dist/css/Leave.8b2fab63.css


File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/js/Leave.6a5129d9.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/Leave.9baa0623.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/app.9f229278.js


+ 4 - 5
src/views/teacher/Leave.vue

@@ -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

Some files were not shown because too many files changed in this diff