From 2d2efba54e188738ca3dba9820df14f58221487f Mon Sep 17 00:00:00 2001 From: zhangyongtian <1181606322@qq.com> Date: Thu, 12 Sep 2024 16:24:08 +0800 Subject: [PATCH] style:高度 --- gz-customerSystem/src/views/register/index.jsx | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/gz-customerSystem/src/views/register/index.jsx b/gz-customerSystem/src/views/register/index.jsx index 3011049..5bc081a 100644 --- a/gz-customerSystem/src/views/register/index.jsx +++ b/gz-customerSystem/src/views/register/index.jsx @@ -58,7 +58,6 @@ return $$.ax.request({ url: `caseTask/pageMyTaskDb`, type: 'get', service: 'mediate', data }); } - //签收 function signApi(data) { return $$.ax.request({ url: `caseTask/sign`, type: 'post', service: 'mediate', data }); @@ -332,7 +331,7 @@ title: '化解结果', dataIndex: 'mediResult', key: 'mediResult', - width: 80, + width: 100, }, { title: '无法化解理由', @@ -690,7 +689,7 @@ title: '化解结果', dataIndex: 'mediResult', key: 'mediResult', - width: 180, + width: 100, }, { title: '申请方', @@ -1094,6 +1093,7 @@ sortColmn: 1, }) const [total, setTotal] = useState(0);//表格数据总数量 + const [loading, setLoading] = useState(false);//表格loading useEffect(() => { getCountData(); @@ -1103,20 +1103,19 @@ getTableData(tabActivekey) }, [searchData, pageData]) - const sign = async (caseId, ownerId) => { + //签收 + const handleSign = async (caseId, ownerId) => { const res = await signApi({ caseId: caseId, caseTaskId: ownerId }) if (res.type) { $$.infoSuccess({ content: '签收成功' }); getCountData(); + getTableData(tabActivekey) } - } - - const handleSign = (caseId, ownerId) => { - sign(caseId, ownerId) } //获取表格数据汇总 const getTableData = async (type) => { + setLoading(true) let res switch (type) { case '1'://待分派 @@ -1167,6 +1166,7 @@ break; } if (res.type) { + setLoading(false) const { data } = res setTableData(data?.content) setTotal(data.totalElements) @@ -1320,10 +1320,12 @@ size="small" rowKey="caseId" bordered={true} + isScroll={true}//兼容以前的,当需要表格竖向滚动,请设置这个 scroll={{ x: 1300 }} - offsetHeight={153} + offsetHeight={161} + loading={loading} pagination={{ current: pageData.page, pageSize: pageData.size, -- Gitblit v1.8.0