mo 2 lat temu
rodzic
commit
a0378603a1

+ 1 - 1
src/views/main/baseinfo/curriculum.vue

@@ -239,7 +239,7 @@ export default {
       handler(val) {
         this.mdate = val.dates;
         this.timer= "day"
-         this.$refs.searchHeader.initStatue();
+         this.$refs.searchHeader.initStatue('month');
       },
     },
   },

+ 4 - 0
src/views/main/baseinfo/index.vue

@@ -25,6 +25,9 @@
           filterable
           placeholder="请选择分部"
           v-model="search.organId"
+          @change="()=>{
+            this.$forceUpdate()
+          }"
         >
           <el-option
             v-for="(item, index) in selects.branchs"
@@ -228,6 +231,7 @@ export default {
       this.FetchDetail();
     },
     async FetchDetail() {
+      console.log('FetchDetail')
       // 这里改变就通知子组件重置
 
       const data = {};

+ 3 - 0
src/views/main/baseinfo/modals/searchHeader.vue

@@ -123,11 +123,13 @@ export default {
       this.submitDate(this.date);
     },
     changeValue(val) {
+      console.log('changeValue')
       this.timer = "";
       this.date = val;
       this.submitDate(this.date);
     },
     changeQuick(val) {
+
       let startDate;
       let endDate;
       if (val == "month") {
@@ -218,6 +220,7 @@ export default {
       };
     },
     initStatue(val) {
+      console.log('initStatue',val)
       if (val) {
         this.timer = val;
       } else {

+ 1 - 1
src/views/main/baseinfo/student.vue

@@ -305,7 +305,7 @@ export default {
       handler(val) {
         this.mdate = val.dates;
         this.timer = "day";
-        this.$refs.searchHeader.initStatue();
+        this.$refs.searchHeader.initStatue('month');
       }
     }
   }