소스 검색

修改请假时间

lex-xin 5 년 전
부모
커밋
616a10eb3b
6개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 0
      dist/css/Leave.8b2fab63.css
  2. 0 0
      dist/index.html
  3. 0 0
      dist/js/Leave.6a5129d9.js
  4. 0 0
      dist/js/Leave.9baa0623.js
  5. 0 0
      dist/js/app.9f229278.js
  6. 4 5
      src/views/teacher/Leave.vue

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/css/Leave.8b2fab63.css


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/index.html


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/js/Leave.6a5129d9.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/js/Leave.9baa0623.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.