|  | @@ -1,15 +1,14 @@
 | 
	
		
			
				|  |  |  <template>
 | 
	
		
			
				|  |  |    <div class="statistics">
 | 
	
		
			
				|  |  |      <el-collapse v-model="activeNames" class="statisticsCollapse">
 | 
	
		
			
				|  |  | -      <el-collapse-item name="1" >
 | 
	
		
			
				|  |  | +      <el-collapse-item name="1">
 | 
	
		
			
				|  |  |          <template slot="title">
 | 
	
		
			
				|  |  | -          <div class="titleWrap">  数据总览
 | 
	
		
			
				|  |  | +          <div class="titleWrap">
 | 
	
		
			
				|  |  | +            数据总览
 | 
	
		
			
				|  |  |              <!-- <el-button type="primary">
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              </el-button> -->
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |            </div>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |          </template>
 | 
	
		
			
				|  |  |          <el-row class="rows" :gutter="20">
 | 
	
		
			
				|  |  |            <el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="12">
 | 
	
	
		
			
				|  | @@ -27,6 +26,7 @@
 | 
	
		
			
				|  |  |          </el-row>
 | 
	
		
			
				|  |  |        </el-collapse-item>
 | 
	
		
			
				|  |  |      </el-collapse>
 | 
	
		
			
				|  |  | +    <div v-show="false">{{ isSearchs }}</div>
 | 
	
		
			
				|  |  |    </div>
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -39,6 +39,7 @@ import { studentSmallClassStatisticsSum } from "../api";
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    name: "Statistics",
 | 
	
		
			
				|  |  |    props: ["groupType"],
 | 
	
		
			
				|  |  | +    inject: ["organId", "isSearch"],
 | 
	
		
			
				|  |  |    components: {
 | 
	
		
			
				|  |  |      sleep,
 | 
	
		
			
				|  |  |      studyStudent,
 | 
	
	
		
			
				|  | @@ -49,15 +50,39 @@ export default {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  |        statistic: {},
 | 
	
		
			
				|  |  |        activeNames: "",
 | 
	
		
			
				|  |  | +      flag:null
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    async mounted() {
 | 
	
		
			
				|  |  | -    try {
 | 
	
		
			
				|  |  | -      let res = await studentSmallClassStatisticsSum({
 | 
	
		
			
				|  |  | -        groupType: this.groupType,
 | 
	
		
			
				|  |  | -      });
 | 
	
		
			
				|  |  | -      this.statistic = res.data || {};
 | 
	
		
			
				|  |  | -    } catch {}
 | 
	
		
			
				|  |  | +    // this.getList();
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  | +  methods: {
 | 
	
		
			
				|  |  | +    async getList() {
 | 
	
		
			
				|  |  | +      try {
 | 
	
		
			
				|  |  | +        let res = await studentSmallClassStatisticsSum({
 | 
	
		
			
				|  |  | +          groupType: this.groupType,
 | 
	
		
			
				|  |  | +          organId:this.organIds
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +        this.statistic = res.data || {};
 | 
	
		
			
				|  |  | +      } catch {}
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  | +  computed: {
 | 
	
		
			
				|  |  | +    organIds() {
 | 
	
		
			
				|  |  | +      return this.organId();
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    isSearchs: {
 | 
	
		
			
				|  |  | +      get() {
 | 
	
		
			
				|  |  | +        let flag = this.isSearch();
 | 
	
		
			
				|  |  | +        if(this.flag != flag){
 | 
	
		
			
				|  |  | +           this.getList()
 | 
	
		
			
				|  |  | +                 console.log('调用isSearchTable',flag)
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +       this.flag = flag
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        return flag;
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |  };
 | 
	
		
			
				|  |  |  </script>
 | 
	
	
		
			
				|  | @@ -80,26 +105,25 @@ export default {
 | 
	
		
			
				|  |  |        font-size: 14px !important;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  | -  .statisticsCollapse {
 | 
	
		
			
				|  |  | -    margin-bottom: 20px;
 | 
	
		
			
				|  |  | -  }
 | 
	
		
			
				|  |  | -  /deep/.el-collapse-item__header {
 | 
	
		
			
				|  |  | -     background: rgb(237, 238, 240);
 | 
	
		
			
				|  |  | -    border-bottom:none!important;
 | 
	
		
			
				|  |  | -  }
 | 
	
		
			
				|  |  | +.statisticsCollapse {
 | 
	
		
			
				|  |  | +  margin-bottom: 20px;
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +/deep/.el-collapse-item__header {
 | 
	
		
			
				|  |  | +  background: rgb(237, 238, 240);
 | 
	
		
			
				|  |  | +  border-bottom: none !important;
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -  // /deep/.el-collapse {
 | 
	
		
			
				|  |  | -  //   border-top:none!important;
 | 
	
		
			
				|  |  | -  //   border-bottom:none!important
 | 
	
		
			
				|  |  | -  // }
 | 
	
		
			
				|  |  | +// /deep/.el-collapse {
 | 
	
		
			
				|  |  | +//   border-top:none!important;
 | 
	
		
			
				|  |  | +//   border-bottom:none!important
 | 
	
		
			
				|  |  | +// }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -  // /deep/.el-collapse-item__arrow {
 | 
	
		
			
				|  |  | -  //   display: none!important;
 | 
	
		
			
				|  |  | -  // }
 | 
	
		
			
				|  |  | -  .titleWrap {
 | 
	
		
			
				|  |  | -    padding-left: 20px;
 | 
	
		
			
				|  |  | -    font-weight: bold;
 | 
	
		
			
				|  |  | -  }
 | 
	
		
			
				|  |  | +// /deep/.el-collapse-item__arrow {
 | 
	
		
			
				|  |  | +//   display: none!important;
 | 
	
		
			
				|  |  | +// }
 | 
	
		
			
				|  |  | +.titleWrap {
 | 
	
		
			
				|  |  | +  padding-left: 20px;
 | 
	
		
			
				|  |  | +  font-weight: bold;
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  |  </style>
 |