| | |
| | | </div> |
| | | |
| | | <div class="card-footer flex justify-center mb-7 shrink-0"> |
| | | <el-pagination background layout="prev, pager, next" :total="1000" /> |
| | | <el-pagination background layout="prev, pager, next" |
| | | :total="dataList.length" |
| | | :default-page-size="currentSize" |
| | | :currentPage="currentIndex" |
| | | :hide-on-single-page="true" |
| | | @current-change="handleCurrentChange" /> |
| | | </div> |
| | | </div> |
| | | </el-card> |
| | |
| | | |
| | | const dataList = ref([]); |
| | | |
| | | const currentIndex = ref(1); |
| | | const currentSize = ref(10); |
| | | |
| | | const getData = () => { |
| | | loading.value = true; |
| | | getGradeList().then(res => { |
| | | getGradeList({examName: searchText.value, pageIndex: currentIndex.value, pageSize: currentSize.value}).then(res => { |
| | | dataList.value = res.data.list; |
| | | loading.value = false; |
| | | }).catch(err => { |
| | |
| | | |
| | | getData(); |
| | | |
| | | const handleCurrentChange = () => { |
| | | getData(); |
| | | } |
| | | |
| | | const handleClick = (tab, event) => { |
| | | }; |
| | | </script> |