Browse Source

调整移动端的请假时长

Lijy 6 tháng trước cách đây
mục cha
commit
c00840a23d

+ 4 - 0
fhKeeper/formulahousekeeper/timesheet_h5/src/views/exaLeave/applyLeave.vue

@@ -191,6 +191,7 @@ export default {
             leaveFil: false,
             active: 0,
             txselnum: 0,
+            txselnumTwo: 0,
             editForm: {
                 leaveType: 0,
                 ownerId: '',
@@ -320,12 +321,14 @@ export default {
                 }else{
                     this.formshowText.dateTitle = ''
                 }
+                this.txselnum = this.txselnumTwo > 0.5 ? this.txselnumTwo.toFixed(1) : 0
             }else{
                 if(this.editForm.startDate){
                     this.formshowText.dateTitle = this.editForm.startDate
                 }else{
                     this.formshowText.dateTitle = ''
                 }
+                this.txselnum = this.txselnumTwo.toFixed(1)
             }
             
         },
@@ -545,6 +548,7 @@ export default {
                     }else{
                         this.txselnum = res.data.toFixed(1)
                     }
+                    this.txselnumTwo = res.data
                 } else {
                     this.$toast.fail('获取失败');
                 }