From 966abfa0bbe706fa4db184c87fb068c9a28296db Mon Sep 17 00:00:00 2001 From: liushilong <2224574157@qq.com> Date: Wed, 27 Mar 2024 09:49:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/final/index.ts | 3 +- src/api/home/filter.ts | 3 +- src/layout/components/Header/UserSettings.vue | 144 ++-- src/views/final/comp/FilterModal.vue | 4 +- src/views/final/comp/RepeatTaskTableModal.vue | 2 +- src/views/final/content/Content.vue | 642 +++++++++--------- .../home/aside/comp/modals/FilterModal.vue | 12 +- 7 files changed, 405 insertions(+), 405 deletions(-) diff --git a/src/api/final/index.ts b/src/api/final/index.ts index 9db5041..e7249f8 100644 --- a/src/api/final/index.ts +++ b/src/api/final/index.ts @@ -30,10 +30,11 @@ export async function getFinalList(params: FinalParam) { params: notEmptyParams, }) - const { data: { list, totalPage } } = res + const { data: { list, totalPage,totalCount } } = res return { pageCount: totalPage, data: list, + totalCount } } diff --git a/src/api/home/filter.ts b/src/api/home/filter.ts index 700f482..240d7a8 100644 --- a/src/api/home/filter.ts +++ b/src/api/home/filter.ts @@ -17,10 +17,11 @@ export async function getConditionList(page: PageParam, searchParam: FilterSearc }, }) - const { data: { records, pages } } = res + const { data: { records, pages,total } } = res return { pageCount: pages, data: records, + total } } diff --git a/src/layout/components/Header/UserSettings.vue b/src/layout/components/Header/UserSettings.vue index f178ac7..ff9186b 100644 --- a/src/layout/components/Header/UserSettings.vue +++ b/src/layout/components/Header/UserSettings.vue @@ -1,127 +1,143 @@ diff --git a/src/views/home/aside/comp/modals/FilterModal.vue b/src/views/home/aside/comp/modals/FilterModal.vue index 24b40ac..2296008 100644 --- a/src/views/home/aside/comp/modals/FilterModal.vue +++ b/src/views/home/aside/comp/modals/FilterModal.vue @@ -63,7 +63,7 @@ const columns: DataTableColumns = [ { title: "创建时间", key: "createtime", - width: 180 + width: 180, }, { title: "更新者", @@ -72,7 +72,7 @@ const columns: DataTableColumns = [ { title: "更新时间", key: "updatetime", - width: 180 + width: 180, }, ]; const total = ref(0); @@ -83,7 +83,6 @@ const pagination = reactive({ pageSize: 10, showSizePicker: true, pageSizes: [ - { label: "10 每页", value: 10, @@ -102,7 +101,7 @@ const pagination = reactive({ }, ], showQuickJumper: true, - prefix:()=>`共 ${total.value} 条数据` + prefix: () => `共 ${total.value} 条数据`, }); const tableData = ref>([]); const keyword = ref(""); @@ -112,11 +111,10 @@ async function query(page: number, pageSize: number) { search_searchname: { value: keyword.value, op: "like", type: "string" }, }; const result = await getConditionList({ pageNo: page, pageSize }, searchParam, 0); - const { data, pageCount } = result; - total.value = data.total; + const { data, pageCount, total } = result; tableData.value = data; pagination.page = page; - total.value = data.total; + total.value = total; pagination.pageCount = pageCount; loading.value = false; }