| | |
| | | </div> --> |
| | | |
| | | <div class="header-search flex items-center"> |
| | | <el-input v-model="searchText" placeholder="请输入课程名称" :prefix-icon="Search" maxlength="20" @input="searchData" /> |
| | | <el-input v-model="searchText" placeholder="课程名称" :prefix-icon="Search" maxlength="20" @input="searchData" /> |
| | | <el-select v-model="classesIdList" placeholder="选择班级" multiple clearable @clear="searchData" style="width: 200px;margin-left: 10px" @change="searchData"> |
| | | <el-option v-for="classes in classesList" :key="classes.id" :label="classes.className" :value="classes.id"/> |
| | | </el-select> |
| | | <el-button type="primary" class="ml-4" @click="searchData">搜索</el-button> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="card-main flex-1 my-5 relative"> |
| | | <div class="main-content absolute top-0 bottom-0 left-0 right-0"> |
| | | <DataList :dataList="dataList"></DataList> |
| | | <DataList v-if="dataList && dataList.length > 0" :dataList="dataList"></DataList> |
| | | <el-empty v-else description="暂无" /> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | import NormalHeader from '@/components/NormalHeader/index.vue'; |
| | | import DataList from './data-list/index.vue'; |
| | | import { Search } from '@element-plus/icons-vue'; |
| | | import { getMeetList } from '@/api/modules/meet.js'; |
| | | import { getMeetList, getStudentClasses } from '@/api/modules/meet.js'; |
| | | const activeName = ref('1'); |
| | | const searchText = ref(''); |
| | | const classesIdList = ref([]); |
| | | const classesList = ref([]); |
| | | const dataList = ref([]); |
| | | |
| | | const loading = ref(false); |
| | |
| | | |
| | | const getData = () => { |
| | | loading.value = true; |
| | | getMeetList({meetName: searchText.value}).then(res => { |
| | | getMeetList({meetName: searchText.value, classesIds: classesIdList.value}).then(res => { |
| | | dataList.value = res.data; |
| | | loading.value = false; |
| | | total.value = res.total; |
| | |
| | | }); |
| | | }; |
| | | |
| | | getData(); |
| | | const studentClasses = () => { |
| | | getStudentClasses().then(res => { |
| | | classesList.value = res.data |
| | | }) |
| | | } |
| | | |
| | | getData(); |
| | | studentClasses(); |
| | | const handleCurrentChange = (val) => { |
| | | currentIndex.value = val; |
| | | getData(); |
| | |
| | | :deep(.el-tabs__nav-wrap:after) { |
| | | display: none; |
| | | } |
| | | </style> |
| | | </style> |