From 365fab39651b5e5b61764f123dbfbfc398e84958 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 27 Feb 2025 15:34:51 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=91=8A=E8=AD=A6=E5=89=8D=E4=BC=A0?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E5=8D=95=E8=A1=8C=E8=B6=85=E5=87=BA=E7=9C=81?= =?UTF-8?q?=E7=95=A5=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/logManage/forwarding/index.vue | 25 +++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/src/views/logManage/forwarding/index.vue b/src/views/logManage/forwarding/index.vue index 27737f56..3dfffbc6 100644 --- a/src/views/logManage/forwarding/index.vue +++ b/src/views/logManage/forwarding/index.vue @@ -73,7 +73,7 @@ let tableState: TabeStateType = reactive({ }); /**表格字段列 */ -let tableColumns: ColumnsType = [ +let tableColumns: ColumnsType = reactive([ { title: t('common.rowId'), dataIndex: 'id', @@ -97,6 +97,7 @@ let tableColumns: ColumnsType = [ dataIndex: 'result', align: 'center', width: 6, + ellipsis: true, }, { title: t('views.logManage.forwarding.type'), @@ -148,7 +149,7 @@ let tableColumns: ColumnsType = [ }, width: 5, }, -]; +]); /**表格分页器参数 */ let tablePagination = reactive({ @@ -187,7 +188,7 @@ function fnTableSize({ key }: MenuInfo) { function fnGetList(pageNum?: number) { if (tableState.loading) return; tableState.loading = true; - if(pageNum){ + if (pageNum) { queryParams.pageNum = pageNum; } if (!queryRangePicker.value) { @@ -196,11 +197,15 @@ function fnGetList(pageNum?: number) { queryParams.beginTime = queryRangePicker.value[0]; queryParams.endTime = queryRangePicker.value[1]; listForwarding(toRaw(queryParams)).then(res => { - if (res.code === RESULT_CODE_SUCCESS) { + if (res.code === RESULT_CODE_SUCCESS) { const { total, rows } = res.data; tablePagination.total = total; tableState.data = rows; - if (tablePagination.total <=(queryParams.pageNum - 1) * tablePagination.pageSize &&queryParams.pageNum !== 1) { + if ( + tablePagination.total <= + (queryParams.pageNum - 1) * tablePagination.pageSize && + queryParams.pageNum !== 1 + ) { tableState.loading = false; fnGetList(queryParams.pageNum - 1); } @@ -234,7 +239,10 @@ onMounted(() => { - + { - +