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) {