on-site confirm

dev_1.2
luotaiqian 2026-07-24 16:16:18 +08:00
parent 2f83305b6f
commit 9a0d0ed891
1 changed files with 5 additions and 8 deletions

View File

@ -18,7 +18,7 @@ import PageLayout from "@cqsjjb/jjb-react-admin-component/PageLayout";
import SearchForm from "@cqsjjb/jjb-react-admin-component/SearchForm"; import SearchForm from "@cqsjjb/jjb-react-admin-component/SearchForm";
import ControlWrapper from "@cqsjjb/jjb-react-admin-component/ControlWrapper"; import ControlWrapper from "@cqsjjb/jjb-react-admin-component/ControlWrapper";
import { NS_SAFETY_EVAL_BUSINESS } from "~/enumerate/namespace"; import { NS_SAFETY_EVAL_BUSINESS } from "~/enumerate/namespace";
import { PROGRESS_STATUS_MAP } from "~/enumerate/constant"; import { PROGRESS_STATUS_MAP, NODE_LABELS } from "~/enumerate/constant";
import { Connect } from "@cqsjjb/jjb-dva-runtime"; import { Connect } from "@cqsjjb/jjb-dva-runtime";
import { tools } from "@cqsjjb/jjb-common-lib"; import { tools } from "@cqsjjb/jjb-common-lib";
import "./index.less"; import "./index.less";
@ -89,18 +89,15 @@ const ProjectProgress = (props) => {
const renderProgressDots = (nodes) => { const renderProgressDots = (nodes) => {
if (!nodes || nodes.length === 0) return <span className="pp-progress-empty">暂无进度</span>; if (!nodes || nodes.length === 0) return <span className="pp-progress-empty">暂无进度</span>;
const total = nodes.length; const total = nodes.length;
const done = nodes.filter((n) => n.statusCode === 3).length; const done = nodes.filter((n) => n.state === 1).length;
return ( return (
<div> <div>
<div className="pp-progress-dots"> <div className="pp-progress-dots">
{nodes.map((node, idx) => { {nodes.map((node, idx) => {
const dotClass = const dotClass = node.state === 1 ? "pp-progress-dot-done" : "pp-progress-dot-wait";
node.statusCode === 3 ? "pp-progress-dot-done" : const name = NODE_LABELS[node.type] || node.type;
node.statusCode === 2 ? "pp-progress-dot-doing" :
node.statusCode === 4 ? "pp-progress-dot-error" :
"pp-progress-dot-wait";
return ( return (
<Tooltip key={node.nodeCode || idx} title={`${node.nodeName}: ${node.statusName}`}> <Tooltip key={node.type || idx} title={`${name}: ${node.state === 1 ? "已完成" : "未完成"}`}>
<span className={`pp-progress-dot ${dotClass}`} /> <span className={`pp-progress-dot ${dotClass}`} />
</Tooltip> </Tooltip>
); );