From b9e2c94a803b89fe59b1323f0d88e6a70e65a9ac Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Wed, 1 Apr 2026 11:05:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E6=B5=8Bbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jsconfig.json | 3 +- package.json | 2 +- .../EvaluationTeamConfig/List/index.js | 54 ++++++++++--------- .../HiddenEvaluation/List/index.js | 5 ++ 4 files changed, 38 insertions(+), 26 deletions(-) diff --git a/jsconfig.json b/jsconfig.json index 4cf89dc..ed50d55 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -3,7 +3,8 @@ "baseUrl": "src", "paths": { "~/*": ["*"] - } + }, + "jsx": "react" }, "include": ["src"] } diff --git a/package.json b/package.json index d36a67d..6b77a18 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "react-to-print": "^3.2.0", - "zy-react-library": "^1.2.10" + "zy-react-library": "^1.2.14" }, "devDependencies": { "@antfu/eslint-config": "^5.4.1", diff --git a/src/pages/Container/Supervision/EvaluationTeamConfig/List/index.js b/src/pages/Container/Supervision/EvaluationTeamConfig/List/index.js index 2c6a15c..152d461 100644 --- a/src/pages/Container/Supervision/EvaluationTeamConfig/List/index.js +++ b/src/pages/Container/Supervision/EvaluationTeamConfig/List/index.js @@ -195,7 +195,11 @@ const ConfigModalComponent = (props) => { corpinfoId && getData(); }, []); const onSubmit = async (values) => { - await isExistenceDuplicateSelection({ data: values.updateCmdList, key: "userId", message: "考评人员存在重复项,请勿重复选择" }); + await isExistenceDuplicateSelection({ + data: values.updateCmdList, + key: "userId", + message: "考评人员存在重复项,请勿重复选择", + }); const { success } = await props["evaluationTeamConfigUpdate"]({ ...values, corpinfoId, @@ -410,22 +414,14 @@ const ViewModalComponent = (props) => { const ChangeLogModalComponent = (props) => { const corpinfoId = props.data.corpinfoId; - const [list, setList] = useState([]); - - const getData = async () => { - const { data } = await props["evaluationTeamConfigChangeLog"]({ - corpinfoId, - }); - setList(data); - }; - - useEffect(() => { - getData(); - }, []); + const { tableProps } = useTable(props["evaluationTeamConfigChangeLog"], { + params: { corpinfoId }, + useStorageQueryCriteria: false, + }); return ( { , ]} > - ([ - { label: "隐患考评组类型", children: getLabelName({ list: EVALUATION_TYPE_ENUM, status: item.evaluationType }) }, - { label: "变更前", children: `${item.oldDepartmentName || ""}-${item.oldUserName || ""}` }, - { label: "变更后", children: `${item.newDepartmentName || ""}-${item.newUserName || ""}` }, - ])), + getLabelName({ list: EVALUATION_TYPE_ENUM, status: record.evaluationType }), + }, + { + title: "变更前", + dataIndex: "oldDepartmentName", + render: (_, record) => `${record.oldDepartmentName || ""}-${record.oldUserName || ""}`, + }, + { + title: "变更后", + dataIndex: "newDepartmentName", + render: (_, record) => `${record.newDepartmentName || ""}-${record.newUserName || ""}`, + }, ]} + options={false} + disabledResizer={true} + {...tableProps} /> ); diff --git a/src/pages/Container/Supervision/HiddenEvaluation/List/index.js b/src/pages/Container/Supervision/HiddenEvaluation/List/index.js index 1d57ebf..c0e8d97 100644 --- a/src/pages/Container/Supervision/HiddenEvaluation/List/index.js +++ b/src/pages/Container/Supervision/HiddenEvaluation/List/index.js @@ -60,6 +60,11 @@ function List(props) { dataIndex: "fireCheckEvalCount", render: (_, record) => (`${record.fireCheckEvalCount}/${record.fireCheckTotalCount}`), }, + { + title: "视频巡屏", + dataIndex: "videoPatrolEvalCount", + render: (_, record) => (`${record.videoPatrolEvalCount}/${record.videoPatrolTotalCount}`), + }, { title: "考评组成员", dataIndex: "evaluationMembers" }, { title: "操作",