From b479271b07865fa387b63b1d621df406791a0592 Mon Sep 17 00:00:00 2001 From: chenhao <2917815974@qq.com> Date: Tue, 8 Jul 2025 17:43:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=8D=95=E4=BD=8D=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=95=B0=E6=8D=AE=E4=B8=8D=E8=83=BD=E6=AD=A3=E5=B8=B8?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../session/WorkBench/components/MatterInfo/index.tsx | 5 +++-- src/components/DataPreview/session/WorkBench/work.tsx | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/DataPreview/session/WorkBench/components/MatterInfo/index.tsx b/src/components/DataPreview/session/WorkBench/components/MatterInfo/index.tsx index affd5bcfa..d51ddf4d3 100644 --- a/src/components/DataPreview/session/WorkBench/components/MatterInfo/index.tsx +++ b/src/components/DataPreview/session/WorkBench/components/MatterInfo/index.tsx @@ -7,6 +7,7 @@ import cls from '../../index.module.less'; import HomeWork from '../../work'; import HomeChat from '../../chat'; import { IReception } from '@/ts/core/work/assign/reception'; +import { IAssignTask } from '@/ts/core/work/assign'; interface IProps { company: ICompany; @@ -15,7 +16,7 @@ interface IWorkList { cmd: number; title: string; count: number; - content?: IReception[]; + content?: IAssignTask[]; } // 事项详情 const MatterInfo: React.FC = (props) => { @@ -83,7 +84,7 @@ const MatterInfo: React.FC = (props) => { const loadReceptions = async () => { const _workList = [...workList]; - const tasks = await orgCtrl.home.current.loadTasks(); + const tasks = await props.company.loadAssignTasks(true); _workList[3].content = tasks; _workList[3].count = tasks.length; setWorkList(_workList); diff --git a/src/components/DataPreview/session/WorkBench/work.tsx b/src/components/DataPreview/session/WorkBench/work.tsx index 110f6cd38..9a85f44b8 100644 --- a/src/components/DataPreview/session/WorkBench/work.tsx +++ b/src/components/DataPreview/session/WorkBench/work.tsx @@ -10,10 +10,11 @@ import OrgIcons from '@/components/Common/GlobalComps/orgIcons'; import AppLayout from '@/components/MainLayout/appLayout'; import useTimeoutHanlder from '@/hooks/useTimeoutHanlder'; import { IReception } from '@/ts/core/work/assign/reception'; +import { IAssignTask } from '@/ts/core/work/assign'; interface IProps { item: IFile; openType: number; - reception?: IReception[]; + reception?: IAssignTask[]; } // 工作台 const HomeWork: React.FC = ({ item, openType, reception }) => { -- Gitee