<template>
  <view style="padding-top: 30rpx">
    <date-view @change="dateChange" />
    <student-list ref="studentListRef" />
  </view>
  <isp-menu current-menu="student" />
</template>

<script setup lang="ts">
import DateView from '@/pages/inspector/student/date-view.vue';
import StudentList from '@/pages/inspector/student/student-list.vue';
import { ref } from 'vue';
import IspMenu from '@/components/inspector/isp-menu.vue';

const studentListRef = ref(null);

const dateChange = _date => {
  studentListRef.value.queryList(_date);
};
</script>
