From 952c5bdccc2353481b2aa150a3098cb7fc489e35 Mon Sep 17 00:00:00 2001 From: guoxin Date: Wed, 20 Dec 2023 16:16:04 +0800 Subject: [PATCH] =?UTF-8?q?fix():=E4=BF=AE=E6=94=B9=E8=B7=AF=E5=86=85BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PersonMgm/AuditMgm/AuditCheck/loadable.jsx | 80 +++++++++++----------- .../PersonMgm/AuditMgm/AuditConf/loadable.jsx | 20 +++--- src/pages/SystemMgm/RoleMgm/loadable.jsx | 3 +- 3 files changed, 52 insertions(+), 51 deletions(-) diff --git a/src/pages/InRoadMgm/PersonMgm/AuditMgm/AuditCheck/loadable.jsx b/src/pages/InRoadMgm/PersonMgm/AuditMgm/AuditCheck/loadable.jsx index 7f5ab12..a3e5a0a 100644 --- a/src/pages/InRoadMgm/PersonMgm/AuditMgm/AuditCheck/loadable.jsx +++ b/src/pages/InRoadMgm/PersonMgm/AuditMgm/AuditCheck/loadable.jsx @@ -49,61 +49,61 @@ function AuditCheck() { title: "记录编号", dataIndex: "number_code", key: "number_code", - align:"center" + align: "center" }, { title: "违规人员名称", dataIndex: "inspected_person", key: "inspected_person", - align:"center" + align: "center" }, { title: "违规类型", dataIndex: "type_name", key: "type_name", - align:"center" + align: "center" }, { title: "稽查员", dataIndex: "inspect_person", key: "inspect_person", - align:"center" + align: "center" }, { title: "所属运营商", dataIndex: "operator", key: "operator", - align:"center" + align: "center" }, { title: "所属路段", dataIndex: "road_name", key: "road_name", - align:"center" + align: "center" }, { title: "上报时间", dataIndex: "insert_time", key: "insert_time", - align:"center" + align: "center" }, { title: "处理人", dataIndex: "deal_user", key: "deal_user", - align:"center" + align: "center" }, { title: "处理时间", dataIndex: "deal_time", key: "deal_time", - align:"center" + align: "center" }, { title: "状态", dataIndex: "status", key: "status", - align:"center", + align: "center", render: (text) => { return {text}; }, @@ -112,7 +112,7 @@ function AuditCheck() { title: "操作", dataIndex: "address", key: "address", - align:"center", + align: "center", render: (_, record) => { return type === 1 ? ( - - 处理 - - - - 查看 - + + 处理 + + + + 查看 + } > @@ -148,14 +148,15 @@ function AuditCheck() { ) : ( ); }, @@ -175,8 +176,8 @@ function AuditCheck() { }); const [handleTime, setHandleTime] = useState({ deal_begin_time: moment().subtract(1, 'days').startOf('day').format('YYYY-MM-DD 00:00:00'), - deal_end_time:moment().format('YYYY-MM-DD 23:59:59'), - status:-1 + deal_end_time: moment().format('YYYY-MM-DD 23:59:59'), + status: -1 }); const inputParams = { maxLength: 50, @@ -209,7 +210,7 @@ function AuditCheck() { ajax .getProgressData(params) .then((res) => { - if (res.status===20000) { + if (res.status === 20000) { setReusltData({ total_records: res.data.total, data: res.data.list }); setLoading(false); } @@ -274,8 +275,7 @@ function AuditCheck() { operator_id: "0", report_time: "", type_id: "", - road_name: "", - status:-1 + road_name: "" }; //查询部分 function renderSearch(params) { diff --git a/src/pages/InRoadMgm/PersonMgm/AuditMgm/AuditConf/loadable.jsx b/src/pages/InRoadMgm/PersonMgm/AuditMgm/AuditConf/loadable.jsx index 27a1336..f1f89f1 100644 --- a/src/pages/InRoadMgm/PersonMgm/AuditMgm/AuditConf/loadable.jsx +++ b/src/pages/InRoadMgm/PersonMgm/AuditMgm/AuditConf/loadable.jsx @@ -86,7 +86,7 @@ function AuditConf() { const [currentEvidence, setCurrentEvidence] = useState(""); const [loading, setLoading] = useState(false); - const [currentOperator, setCurrentOperator] = useState(""); + const [currentOperator, setCurrentOperator] = useState("0"); const [deleteConfirm, setDeleteConfirm] = useState(false); const [currentOperatorName, setCurrentOperatorName] = useState(""); const [treeData, setTreeData] = useState([]); @@ -144,14 +144,14 @@ function AuditConf() { }) .catch((err) => message.warn(err)); } - useEffect(() => { - console.log(getValueId); - if (getValueId =='' || getValueId == '0') { - setGetDisable(true) - }else{ - setGetDisable(false) - } - }, [getValueId]) + // useEffect(() => { + // console.log(getValueId); + // if (getValueId =='' || getValueId == '0') { + // setGetDisable(true) + // }else{ + // setGetDisable(false) + // } + // }, [getValueId]) //删除单个稽查取证 function deleteEvidence(id) { ajax @@ -245,7 +245,7 @@ function AuditConf() { 条结果