瀏覽代碼

课外训练 财务管理 课表列表

1
mo 4 年之前
父節點
當前提交
ae6cf84168

+ 15 - 11
src/views/afterSchoolManager/afterSchoolList.vue

@@ -205,7 +205,18 @@ export default {
   //生命周期 - 创建完成(可以访问当前this实例)
   created() {
      if (this.searchForm.listTimer && this.searchForm.listTimer.length <= 0) {
-        let now = new Date();
+       this.getNow()
+      }
+  },
+  //生命周期 - 挂载完成(可以访问DOM元素)
+  mounted() {
+    this.$store.dispatch("setBranchs");
+    // 获取分部
+    this.init();
+  },
+  methods: {
+    getNow(){
+       let now = new Date();
         let startDate = new Date(
           Date.UTC(now.getFullYear(), now.getMonth(), now.getDate())
         )
@@ -219,17 +230,9 @@ export default {
         this.searchForm.listTimer = [];
         this.searchForm.listTimer.push(startDate);
         this.searchForm.listTimer.push(endDate);
-      }
-  },
-  //生命周期 - 挂载完成(可以访问DOM元素)
-  mounted() {
-    this.$store.dispatch("setBranchs");
-    // 获取分部
-    this.init();
-  },
-  methods: {
+    },
     init() {
-     
+
       this.getList();
     },
     getList() {
@@ -268,6 +271,7 @@ export default {
         teacherId: null,
         organIdList: null,
       };
+      this.getNow()
       this.search();
     },
     lookDetail(row) {

+ 0 - 3
src/views/businessManager/orderManager/financeManager.vue

@@ -777,9 +777,6 @@ export default {
         this.shopList = res.data.rows;
       }
     });
-
-
-
     this.getList();
   },
   methods: {

+ 2 - 2
src/views/teamDetail/teamCourseList.vue

@@ -820,7 +820,7 @@ export default {
     },
     onCourseExport() {
       // 课表导出
-           if(this.getSearchForm()){
+        if(!this.getSearchForm()){
         return
       }
       let url = "/api-web/export/superFindCourseSchedules";
@@ -874,7 +874,7 @@ export default {
         .catch(() => {});
     },
     getList() {
-      if(this.getSearchForm()){
+      if(!this.getSearchForm()){
         return
       }
       superFindCourseSchedules(this.getSearchForm()).then((res) => {