Browse Source

去掉网管课详情两次请求

lex-xin 4 years ago
parent
commit
a35fe6f987
2 changed files with 3 additions and 14 deletions
  1. 1 0
      src/router/notKeepAliveList.js
  2. 2 14
      src/views/accompanyManager/accompanys.vue

+ 1 - 0
src/router/notKeepAliveList.js

@@ -14,6 +14,7 @@ export default [
   '/main/main', // 首页
   '/main/main', // 首页
   '/journal/journal', // 系统日志
   '/journal/journal', // 系统日志
   '/business/accompany', // 网管课管理
   '/business/accompany', // 网管课管理
+  '/business/accompanys', // 网管课详情
   '/journal/classFeesIsOk', // 课酬列表
   '/journal/classFeesIsOk', // 课酬列表
   '/journal/requestProcessing', // 课酬申述
   '/journal/requestProcessing', // 课酬申述
   '/journal/payAppeal', // 考勤申诉
   '/journal/payAppeal', // 考勤申诉

+ 2 - 14
src/views/accompanyManager/accompanys.vue

@@ -628,24 +628,13 @@ export default {
   mounted () {
   mounted () {
     this.init();
     this.init();
   },
   },
-  activated () {
-    this.init();
-  },
   methods: {
   methods: {
     init () {
     init () {
       this.practiceId = this.$route.query.id;
       this.practiceId = this.$route.query.id;
       this.userId = this.$route.query.userId;
       this.userId = this.$route.query.userId;
       this.courseType = this.$route.query.type;
       this.courseType = this.$route.query.type;
-      if (this.$route.query.rules) {
-        this.Frules = this.$route.query.rules;
-      }
-      if (this.$route.query.searchForm) {
-        this.FsearchForm = this.$route.query.searchForm;
-      }
       //  获取乐团主管
       //  获取乐团主管
-      findEducationUsers({
-
-      }).then(res => {
+      findEducationUsers().then(res => {
         if (res.code == 200) {
         if (res.code == 200) {
           this.educationList = res.data
           this.educationList = res.data
         }
         }
@@ -821,8 +810,7 @@ export default {
     },
     },
     goBack () {
     goBack () {
       this.$router.push({
       this.$router.push({
-        path: "/business/accompany",
-        query: { rules: this.Frules, searchForm: this.FsearchForm }
+        path: "/business/accompany"
       });
       });
     },
     },
     teacherClose () {
     teacherClose () {