ソースを参照

1210 16:20

返回优化完毕
mo 5 年 前
コミット
4cc0584ca6

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

@@ -52,9 +52,12 @@ export default {
       }
     }
   },
+  created () {
+    this.$route.query.page ? this.pageInfo.page = parseInt(this.$route.query.page) : this.pageInfo.page = 1
+  },
   mounted () {
     // console.log(store.getters.permission)
-    this.pageInfo.page = this.$route.query.page ? parseInt(this.$route.query.page) : 1
+
     this.getList()
   },
   methods: {

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

@@ -106,7 +106,7 @@ export default {
     messageTips (title, res) {
       if (res.code == 200) {
         this.$message.success('修改成功')
-        this.$router.push('/specialSetup/adminManager')
+        this.$router.push({ path: '/specialSetup/adminManager', query: { page: this.page } })
       } else {
         this.$message.error(res.msg)
       }

+ 11 - 1
src/views/categroyManager/insideSetting/branchActive.vue

@@ -70,6 +70,14 @@ export default {
 
     }
   },
+  created () {
+    // if (this.$route.query.searchForm) {
+    //   this.$route.query.searchForm instanceof Object ? this.topForm = this.$route.query.searchForm : this.topForm = JSON.parse(this.$route.query.searchForm);
+    // }
+    if (this.$route.query.rules) {
+      this.$route.query.rules instanceof Object ? this.pageInfo = this.$route.query.rules : this.pageInfo = JSON.parse(this.$route.query.rules);
+    }
+  },
   mounted () {
     this.getList() // 获取列表数据
   },
@@ -87,10 +95,12 @@ export default {
       })
     },
     openActive (type, row) {
+      let pageInfo = JSON.stringify(this.pageInfo)
       let params = {
         path: '/vipClassSet/branchActiveOperation',
         query: {
-          type: type
+          type: type,
+          pageInfo
         }
       }
       if (row) {

+ 3 - 2
src/views/categroyManager/insideSetting/branchActiveOperation.vue

@@ -92,6 +92,7 @@ export default {
       organId: null,
       pageType: this.$route.query.type,
       id: this.$route.query.id,
+      pageInfo: this.$route.query.pageInfo,
       branchList: [],
       useBranchId: [], // 使用的分部编号
       result: {
@@ -217,13 +218,13 @@ export default {
     messageTips (title, res) {
       if (res.code == 200) {
         this.$message.success('修改成功')
-        this.$router.push('/vipClassSet/branchActive')
+        this.$router.push({ path: '/vipClassSet/branchActive', query: { rules: this.pageInfo } })
       } else {
         this.$message.error(res.msg)
       }
     },
     onCancel () {
-      this.$router.push('/vipClassSet/branchActive')
+      this.$router.push({ path: '/vipClassSet/branchActive', query: { rules: this.pageInfo } })
     },
     resetForm () {
       this.result = {

+ 2 - 2
vue.config.js

@@ -16,8 +16,8 @@ const name = defaultSettings.title || '管乐迷后台管理系统' // page titl
 // const port = process.env.port || process.env.npm_config_port || 9528 // dev port
 // http://47.99.212.176:8000 
 // // 
-// let target = 'http://testadm.dayaedu.com/' //勇哥迁库
-let target = 'http://192.168.3.27:8000' // 箭河
+let target = 'http://testadm.dayaedu.com/' //勇哥迁库
+// let target = 'http://192.168.3.27:8000' // 箭河
 // let target = 'http://192.168.3.28:8000' //邹璇
 // let target = 'http://192.168.3.8:18000' //勇哥
 // let target = 'http://47.99.212.176:8000' // 测试服