瀏覽代碼

去掉网管课详情两次请求

lex-xin 4 年之前
父節點
當前提交
a35fe6f987
共有 2 個文件被更改,包括 3 次插入14 次删除
  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', // 首页
   '/journal/journal', // 系统日志
   '/business/accompany', // 网管课管理
+  '/business/accompanys', // 网管课详情
   '/journal/classFeesIsOk', // 课酬列表
   '/journal/requestProcessing', // 课酬申述
   '/journal/payAppeal', // 考勤申诉

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

@@ -628,24 +628,13 @@ export default {
   mounted () {
     this.init();
   },
-  activated () {
-    this.init();
-  },
   methods: {
     init () {
       this.practiceId = this.$route.query.id;
       this.userId = this.$route.query.userId;
       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) {
           this.educationList = res.data
         }
@@ -821,8 +810,7 @@ export default {
     },
     goBack () {
       this.$router.push({
-        path: "/business/accompany",
-        query: { rules: this.Frules, searchForm: this.FsearchForm }
+        path: "/business/accompany"
       });
     },
     teacherClose () {