Browse Source

修改数据缓存

lex-xin 4 năm trước cách đây
mục cha
commit
9efff805af

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/index.html


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/css/chunk-0dede6c4.29380292.css


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/app.75e3a190.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/static/js/chunk-0dede6c4.e3bb6da6.js


+ 21 - 20
src/views/teamBuild/teamSeting/components/setClassV2.vue

@@ -745,35 +745,36 @@ export default {
   created () { },
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted () {
-    this.teamid = this.$route.query.id;
-    getTeacher().then(res => {
-      if (res.code == 200) {
-        this.teacherList = res.data;
-        this.cooperationList = res.data;
-      }
-    });
-    // 获取声部
-    findSound({ musicGroupId: this.teamid }).then(res => {
-      if (res.code == 200) {
-        this.soundList = res.data;
-      }
-    });
     // 获取节假日
     this.init();
-    sysConfigList({ group: "holiday" }).then(res => {
-      if (res.code == 200 && res.data.length > 0) {
-        if (res.data[0].paranValue) {
-          this.holidayList = JSON.parse(res.data[0].paranValue);
-        }
-      }
-    });
   },
   activated () {
     this.init();
   },
   methods: {
     init () {
+      this.teamid = this.$route.query.id;
+      getTeacher().then(res => {
+        if (res.code == 200) {
+          this.teacherList = res.data;
+          this.cooperationList = res.data;
+        }
+      });
+      // 获取声部
+      findSound({ musicGroupId: this.teamid }).then(res => {
+        if (res.code == 200) {
+          this.soundList = res.data;
+        }
+      });
       this.getList();
+
+      sysConfigList({ group: "holiday" }).then(res => {
+        if (res.code == 200 && res.data.length > 0) {
+          if (res.data[0].paranValue) {
+            this.holidayList = JSON.parse(res.data[0].paranValue);
+          }
+        }
+      });
     },
     getList () {
       this.teamid = this.$route.query.id;

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác