From 0d23da5814e16f2031404d9a763bb0c3a599e234 Mon Sep 17 00:00:00 2001 From: zhangyongtian <1181606322@qq.com> Date: Fri, 13 Sep 2024 21:06:35 +0800 Subject: [PATCH] fix: 工作台督办初始值问题 --- gz-customerSystem/src/views/register/index.jsx | 32 ++++++++++++++++++++------------ 1 files changed, 20 insertions(+), 12 deletions(-) diff --git a/gz-customerSystem/src/views/register/index.jsx b/gz-customerSystem/src/views/register/index.jsx index f002ed1..0fca04b 100644 --- a/gz-customerSystem/src/views/register/index.jsx +++ b/gz-customerSystem/src/views/register/index.jsx @@ -1,8 +1,8 @@ /* * @Author: dminyi 1301963064@qq.com * @Date: 2024-09-08 15:14:12 - * @LastEditors: dminyi 1301963064@qq.com - * @LastEditTime: 2024-09-12 15:42:34 + * @LastEditors: lwh + * @LastEditTime: 2024-09-13 10:35:03 * @FilePath: \gzDyh\gz-customerSystem\src\views\register\index.jsx * @Description: 工作台 */ @@ -571,7 +571,7 @@ }, tabList: [ { - value: '0', + value: '2', label: '办理中', columns: [ { @@ -650,7 +650,7 @@ ] }, { - value: '1', + value: '0', label: '结案申请', columns: [ { @@ -722,7 +722,7 @@ ] }, { - value: '2', + value: '1', label: '已结案', columns: [ { @@ -848,7 +848,7 @@ render: (text, record) => ( <Space style={{ color: '#1A6FB8' }}> <div onClick={() => navigate(`/mediate/visit/fileMessage?caseTaskId=${record.ownerId}&caseId=${record.caseId}`)} style={{ cursor: 'pointer' }}>详情</div> - <div onClick={() => navigate(`/mediate/visit/handleFeedback?caseTaskId=${record.ownerId}&caseId=${record.caseId}`)} style={{ cursor: 'pointer' }}>审核</div> + <div onClick={() => navigate(`/mediate/visit/closingReview?caseTaskId=${record.ownerId}&caseId=${record.caseId}`)} style={{ cursor: 'pointer' }}>审核</div> </Space> ), }]), @@ -954,7 +954,7 @@ title: '督办部门', dataIndex: 'caseGrade', key: 'caseGrade', - width: 80, + width: 110, }, { title: '督办意见', @@ -1020,7 +1020,7 @@ title: '督办部门', dataIndex: 'caseGrade', key: 'caseGrade', - width: 80, + width: 110, }, { title: '督办意见', @@ -1122,6 +1122,7 @@ $$.infoSuccess({ content: '签收成功' }); getCountData(); getTableData(tabActivekey) + navigate(`/mediate/visit/eventFlow?caseTaskId=${ownerId}&caseId=${caseId}`) } } @@ -1150,7 +1151,7 @@ break; case '4'://办理中 const { status, ...most } = searchData - if (status && status === '0') { + if (status && status === '2') { res = await pageMyTaskBlzApi({ ...pageData, ...most @@ -1203,7 +1204,13 @@ status: '0', type: 1 }) - } else if (key == '4' || key == '6') { + } else if (key == '4') { + setSearchData({ + sortType: 1, + sortColmn: 1, + status: '2', + }) + } else if (key == '6') { setSearchData({ sortType: 1, sortColmn: 1, @@ -1218,13 +1225,14 @@ } setTabActivekey(key); setTableTab(data.tabList) + getCountData(); } //获取工作总览数据 const getCountData = async () => { const res = await getCountListApi() if (res.type) { - const data = res.data + const data = res.data || {}; setCountData(data) } } @@ -1346,7 +1354,7 @@ </span> } > - <Typography.Paragraph key={item.value}> + <Typography.Paragraph key={tabActivekey + item.value}> {tabActivekey == '5' && <Radio.Group type='button' -- Gitblit v1.8.0