|
@ -97,6 +97,7 @@ function CarAuth() { |
|
|
<span type="primary" style={{ display: 'block', textAlign: 'center' }} onClick={() => { |
|
|
<span type="primary" style={{ display: 'block', textAlign: 'center' }} onClick={() => { |
|
|
setTag('2'); |
|
|
setTag('2'); |
|
|
setCarId(record.carId) |
|
|
setCarId(record.carId) |
|
|
|
|
|
setMyId(record.id) |
|
|
setIndexby(index) |
|
|
setIndexby(index) |
|
|
}}> |
|
|
}}> |
|
|
<a>{record.auditState == "待审核" || record.auditState == "残疾车待审核" ? "审核" : "查看"}</a> |
|
|
<a>{record.auditState == "待审核" || record.auditState == "残疾车待审核" ? "审核" : "查看"}</a> |
|
@ -106,6 +107,7 @@ function CarAuth() { |
|
|
}, |
|
|
}, |
|
|
]; |
|
|
]; |
|
|
const [carId, setCarId] = useState(); |
|
|
const [carId, setCarId] = useState(); |
|
|
|
|
|
const [myId, setMyId] = useState(); |
|
|
const [loading, setLoading] = useState(false); |
|
|
const [loading, setLoading] = useState(false); |
|
|
const [tag, setTag] = useState('1'); |
|
|
const [tag, setTag] = useState('1'); |
|
|
const [bigpicVisible, setBigpicVisible] = useState(false);//大图展示 |
|
|
const [bigpicVisible, setBigpicVisible] = useState(false);//大图展示 |
|
@ -154,7 +156,7 @@ function CarAuth() { |
|
|
ajax({ |
|
|
ajax({ |
|
|
url: "/api/ope/car/audit", |
|
|
url: "/api/ope/car/audit", |
|
|
type: "post", |
|
|
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) => { |
|
|
}).then((res) => { |
|
|
let { status, data, total } = res |
|
|
let { status, data, total } = res |
|
|
if (status == 20000) { |
|
|
if (status == 20000) { |
|
@ -233,6 +235,10 @@ function CarAuth() { |
|
|
placeholder={"请选择审核状态"} |
|
|
placeholder={"请选择审核状态"} |
|
|
options={[ |
|
|
options={[ |
|
|
{ |
|
|
{ |
|
|
|
|
|
value: 0, |
|
|
|
|
|
label: '全部', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
value: 1, |
|
|
value: 1, |
|
|
label: '待审核', |
|
|
label: '待审核', |
|
|
}, |
|
|
}, |
|
|