From 980a874c9a5bb5a09d6d464474c222b968aacd1c Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 23 Jul 2025 11:46:28 +0800 Subject: [PATCH] fix: bug fix --- frontend/src/views/system/model/ModelForm.vue | 40 ++++++++++++++++++- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/system/model/ModelForm.vue b/frontend/src/views/system/model/ModelForm.vue index 763d77d5..bb7b44cc 100644 --- a/frontend/src/views/system/model/ModelForm.vue +++ b/frontend/src/views/system/model/ModelForm.vue @@ -71,6 +71,14 @@ const handleParamsCreate = () => { const handleParamsDel = (item: any) => { advancedSetting.value = advancedSetting.value.filter((ele) => ele.id !== item.id) } +const currentPage = ref(1) +const advancedSettingPagination = computed(() => { + return advancedSetting.value.slice(currentPage.value * 5 - 5, currentPage.value * 5) +}) + +const handelCurrentChange = (val: any) => { + currentPage.value = val +} const rules = { model_type: [ @@ -256,7 +264,7 @@ defineExpose({
- + @@ -281,6 +289,14 @@ defineExpose({
+
+ +