From 4de204995699a8809957f9be48c052bfd66cb7b4 Mon Sep 17 00:00:00 2001 From: owen Date: Wed, 23 Aug 2023 10:12:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98:=20=E4=BC=9A=E5=91=98?= =?UTF-8?q?=E7=AD=89=E7=BA=A7=E5=8F=96=E6=B6=88=E5=88=86=E9=A1=B5=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit e9120f06cf20e5c8708a42809050497278cec679) --- src/api/member/level/index.ts | 4 ++-- src/views/member/level/index.vue | 15 +-------------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/src/api/member/level/index.ts b/src/api/member/level/index.ts index 540bfe4b..0ded493a 100644 --- a/src/api/member/level/index.ts +++ b/src/api/member/level/index.ts @@ -12,8 +12,8 @@ export interface LevelVO { } // 查询会员等级列表 -export const getLevelPage = async (params) => { - return await request.get({ url: `/member/level/page`, params }) +export const getLevelList = async (params) => { + return await request.get({ url: `/member/level/list`, params }) } // 查询会员等级详情 diff --git a/src/views/member/level/index.vue b/src/views/member/level/index.vue index 88774a11..58fbcddb 100644 --- a/src/views/member/level/index.vue +++ b/src/views/member/level/index.vue @@ -96,13 +96,6 @@ - - @@ -122,11 +115,8 @@ const message = useMessage() // 消息弹窗 const { t } = useI18n() // 国际化 const loading = ref(true) // 列表的加载中 -const total = ref(0) // 列表的总页数 const list = ref([]) // 列表的数据 const queryParams = reactive({ - pageNo: 1, - pageSize: 10, name: null, status: null }) @@ -136,9 +126,7 @@ const queryFormRef = ref() // 搜索的表单 const getList = async () => { loading.value = true try { - const data = await LevelApi.getLevelPage(queryParams) - list.value = data.list - total.value = data.total + list.value = await LevelApi.getLevelList(queryParams) } finally { loading.value = false } @@ -146,7 +134,6 @@ const getList = async () => { /** 搜索按钮操作 */ const handleQuery = () => { - queryParams.pageNo = 1 getList() }