转班异动规则+学生巡检

This commit is contained in:
yaojian
2026-03-11 14:52:27 +08:00
parent 9acb919fdc
commit 9003ef9c1c
5 changed files with 702 additions and 5 deletions

View File

@@ -168,7 +168,10 @@
</el-table-column>
</el-table>
<pagination v-show="state.total > 0" :total="state.total" v-model:page="state.page" v-model:limit="state.limit" @pagination="getDataList" />
<!-- 分页 -->
<div class="pagination-wrapper">
<pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" v-bind="state.pagination" />
</div>
</el-card>
</div>
</template>
@@ -231,16 +234,14 @@ const state: BasicTableProps = reactive<BasicTableProps>({
createdIsNeed: true,
});
const { getDataList, sortChangeHandle, tableStyle } = useTable(state);
const { getDataList, sortChangeHandle, sizeChangeHandle, currentChangeHandle, tableStyle } = useTable(state);
const handleSearch = () => {
state.page = 1;
getDataList();
};
const handleReset = () => {
searchFormRef.value?.resetFields();
state.page = 1;
getDataList();
};
</script>
@@ -252,4 +253,9 @@ const handleReset = () => {
.mb12 {
margin-bottom: 12px;
}
.pagination-wrapper {
margin-top: 20px;
display: flex;
justify-content: flex-end;
}
</style>