ggooalice преди 2 години
родител
ревизия
fa980883d1
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      fhKeeper/formulahousekeeper/timesheet_h5/src/views/expense/index.vue

+ 3 - 1
fhKeeper/formulahousekeeper/timesheet_h5/src/views/expense/index.vue

@@ -198,7 +198,7 @@
 export default {
     data() {
         return {
-            active: 0,
+            active: sessionStorage.page ? JSON.parse(sessionStorage.page) : 0,
             user: JSON.parse(localStorage.userInfo),
             userList: [],
             canExamine: false,
@@ -278,6 +278,7 @@ export default {
         },
     },
     mounted() {
+        this.activeChange()
         for(let i in this.user.functionList){
             if(this.user.functionList[i].name == '费用审核'){
                 this.canExamine = true
@@ -300,6 +301,7 @@ export default {
             return `${date.getFullYear()}-${mon<10?'0'+mon:mon}-${date.getDate()<10?'0'+date.getDate():date.getDate()}`;
         },
         activeChange(){
+            sessionStorage.setItem('page',JSON.stringify(this.active))
             if(this.active == 1){
                 this.getBillList()
             }