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({
+
+ +