Browse Source

修改返回

lex-xin 5 năm trước cách đây
mục cha
commit
2c6cc6149e

+ 3 - 1
src/views/categroyManager/insideSetting/adminManager.vue

@@ -55,6 +55,7 @@ export default {
   },
   mounted () {
     // console.log(store.getters.permission)
+    this.pageInfo.page = this.$route.query.page ? this.$route.query.page : 1
     this.getList()
   },
   methods: {
@@ -74,7 +75,8 @@ export default {
       let params = {
         path: '/specialSetup/adminoperation',
         query: {
-          type: type
+          type: type,
+          page: this.pageInfo.page
         }
       }
       if (row) {

+ 6 - 1
src/views/categroyManager/insideSetting/adminOperation.vue

@@ -205,7 +205,12 @@ export default {
       this.checkAll = false
     },
     onCancel () {
-      this.$router.push('/specialSetup/adminManager')
+      this.$router.push({
+        path: '/specialSetup/adminManager',
+        query: {
+          page: this.$route.query.page
+        }
+      })
     }
   }
 }

+ 0 - 1
src/views/categroyManager/insideSetting/staffManager.vue

@@ -137,7 +137,6 @@
 </template>
 <script>
 import pagination from '@/components/Pagination/index'
-
 import { queryEmployByOrganId, employeeOperate, getUserRole, employeeAdd, employeeUpdate } from '@/api/systemManage'
 import { branchQueryPage } from '@/api/specialSetting'
 import store from '@/store'