From 82d1c6470dc3ed7b62d9e212641b1980c593e940 Mon Sep 17 00:00:00 2001 From: rainbro <33367671@qq.com> Date: Mon, 14 Jul 2025 15:17:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E9=87=8D=E8=AE=A2=E5=8D=95=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Page.vue | 238 +++++++++++++++++++++++++++++++++++++ src/views/agent/checkOrderList.vue | 64 ++++++---- 2 files changed, 280 insertions(+), 22 deletions(-) create mode 100644 src/components/Page.vue diff --git a/src/components/Page.vue b/src/components/Page.vue new file mode 100644 index 0000000..2f93a8b --- /dev/null +++ b/src/components/Page.vue @@ -0,0 +1,238 @@ + + + + + 首页 + + + + + 上一页 + + + + 第{{ currentPage }}页 + + + + 下一页 + + + + + 尾页 + + 尾页 + + + 第{{ totalPages }}页 + + + + + 跳转 + + + + 共{{ totalRecords }}条记录 + + + + + + \ No newline at end of file diff --git a/src/views/agent/checkOrderList.vue b/src/views/agent/checkOrderList.vue index 83e3e45..eab86b1 100644 --- a/src/views/agent/checkOrderList.vue +++ b/src/views/agent/checkOrderList.vue @@ -50,7 +50,7 @@ - {{ tid }} + {{ tid }} @@ -88,7 +88,7 @@ - {{ formatSimilarity(scope.row.similarity) }} + {{ scope.row.similarity }}% - @@ -127,17 +127,16 @@ 删报告 - 标红 - + { that.orderList = response.data.list + this.orderListTotal = response.data.total + this.orderListNextMinId = response.data.minid + this.orderListPrevMaxId = response.data.maxid }) }).catch(error => { console.error(error, 'error') @@ -218,14 +231,6 @@ export default { getChannelImg(src) { return require('@/assets/channel_'+src+'.svg'); }, - handleSizeChange(val) { - this.orderListPageSize = val - this.getOrderList() - }, - handleCurrentChange(val) { - this.orderListCurrentPage = val - this.getOrderList() - }, changeSearchSite() { console.log(this.searchUid) this.getOrderList() @@ -272,14 +277,29 @@ export default { console.log(data, 'data098908090'); }, // 弹框相关方法---end - }, - computed: { - formatSimilarity(similarity) { - var similar = similarity.toFixed(2); - return similar * 100 + '%'; + handlePageChange(params) { + // 根据参数调用API获取新数据 + console.log('分页参数:', params); + + // 更新当前页码 + this.orderListCurrentPage = params.page; + + // 更新minid/maxid(根据实际API返回) + if (params.isNext) { + // 从API响应中获取新的orderListNextMinId + this.orderListNextMinId = params.minid; + } + + if (params.isPrev) { + // 从API响应中获取新的orderListPrevMaxId + this.orderListPrevMaxId = params.maxid; + } + this.getOrderList() } }, + computed: { + }, }
{{ formatSimilarity(scope.row.similarity) }}
{{ scope.row.similarity }}%
-