From 2512c6a8ceea4b6fe7715410d27b063443c67a38 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Tue, 6 Jun 2023 11:16:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/DraftApi.ts | 6 +++--- src/pages/DraftManage.vue | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/api/DraftApi.ts b/src/api/DraftApi.ts index 4eea281..9e61d8e 100644 --- a/src/api/DraftApi.ts +++ b/src/api/DraftApi.ts @@ -1,6 +1,6 @@ import { api } from 'src/boot/axios'; -const DraftUriBase = '/api/draft/layout'; +const DraftUriBase = '/api/drafting'; /** * 分页查询 @@ -8,11 +8,11 @@ const DraftUriBase = '/api/draft/layout'; * @returns */ export function pageQuery(query: { - pageNum: number; + current: number; size: number; name: string; }) { - return api.get(`${DraftUriBase}/page`, { params: query }); + return api.get(`${DraftUriBase}/paging`, { params: query }); } /** diff --git a/src/pages/DraftManage.vue b/src/pages/DraftManage.vue index 9680784..d128014 100644 --- a/src/pages/DraftManage.vue +++ b/src/pages/DraftManage.vue @@ -164,7 +164,7 @@ async function onRequest(props: any) { loading.value = true; try { let response = await pageQuery({ - pageNum: page, + current: page, size: rowsPerPage, name: filter.name, }); @@ -178,7 +178,7 @@ async function onRequest(props: any) { } catch (error: any) { $q.notify({ type: 'negative', - message: error, + message: error.message, }); } finally { loading.value = false; @@ -234,7 +234,7 @@ async function publishGraphics() { } catch (error: any) { $q.notify({ type: 'negative', - message: error, + message: error.message, }); } }