From 35fd696d2811c8a16454c92bec28343494b36a9c Mon Sep 17 00:00:00 2001 From: xingjx Date: Mon, 25 Sep 2023 15:57:09 +0800 Subject: [PATCH] =?UTF-8?q?fix():=E4=BF=AE=E6=94=B9=E8=BD=A6=E8=BE=86?= =?UTF-8?q?=E8=AE=A4=E8=AF=81=E5=AE=A1=E6=A0=B8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/OperationCenter/CarMgm/CarAuth/loadable.jsx | 8 +++++++- src/pages/OperationCenter/CarMgm/CarInfo/loadable.jsx | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/pages/OperationCenter/CarMgm/CarAuth/loadable.jsx b/src/pages/OperationCenter/CarMgm/CarAuth/loadable.jsx index 88d2afd..33b8494 100644 --- a/src/pages/OperationCenter/CarMgm/CarAuth/loadable.jsx +++ b/src/pages/OperationCenter/CarMgm/CarAuth/loadable.jsx @@ -97,6 +97,7 @@ function CarAuth() { { setTag('2'); setCarId(record.carId) + setMyId(record.id) setIndexby(index) }}> {record.auditState == "待审核" || record.auditState == "残疾车待审核" ? "审核" : "查看"} @@ -106,6 +107,7 @@ function CarAuth() { }, ]; const [carId, setCarId] = useState(); + const [myId, setMyId] = useState(); const [loading, setLoading] = useState(false); const [tag, setTag] = useState('1'); const [bigpicVisible, setBigpicVisible] = useState(false);//大图展示 @@ -154,7 +156,7 @@ function CarAuth() { ajax({ url: "/api/ope/car/audit", type: "post", - data: { carId: carId, audit: e ? "pass" : "refuse", text: e ? null : toText }, + data: { id: myId, audit: e ? "pass" : "refuse", text: e ? null : toText }, }).then((res) => { let { status, data, total } = res if (status == 20000) { @@ -233,6 +235,10 @@ function CarAuth() { placeholder={"请选择审核状态"} options={[ { + value: 0, + label: '全部', + }, + { value: 1, label: '待审核', }, diff --git a/src/pages/OperationCenter/CarMgm/CarInfo/loadable.jsx b/src/pages/OperationCenter/CarMgm/CarInfo/loadable.jsx index 98d6b80..4867899 100644 --- a/src/pages/OperationCenter/CarMgm/CarInfo/loadable.jsx +++ b/src/pages/OperationCenter/CarMgm/CarInfo/loadable.jsx @@ -582,7 +582,7 @@ function CarInfo() { ajax({//修改数据 url: "/api/ope/car/get_edit_records", type: "get", - data: { carId: carId }, + data: { carId: e?.carId||carId }, }).then((res) => { let { status, data, total } = res if (status == 20000) {