提交 701f6eb0 作者: 翁进城

修改服务订单的图片字段

上级 708f70c0
...@@ -15,6 +15,7 @@ export interface QueryOrderTaskListResp { ...@@ -15,6 +15,7 @@ export interface QueryOrderTaskListResp {
} }
export interface OrderList { export interface OrderList {
id: number;
address: string; address: string;
city: string; city: string;
endTime: string; endTime: string;
...@@ -29,6 +30,7 @@ export interface OrderList { ...@@ -29,6 +30,7 @@ export interface OrderList {
province: string; province: string;
startTime: string; startTime: string;
taskDescription: string; taskDescription: string;
coverPlan: string;
} }
......
...@@ -89,6 +89,7 @@ export default function ServicesOrder() { ...@@ -89,6 +89,7 @@ export default function ServicesOrder() {
} }
) )
.then((res) => { .then((res) => {
console.log(", res.result?.list", res.result?.list);
setOrderList(res.result?.list || []); setOrderList(res.result?.list || []);
setTotal(res.result?.totalCount || 0); setTotal(res.result?.totalCount || 0);
setLoading(false); setLoading(false);
...@@ -134,7 +135,7 @@ export default function ServicesOrder() { ...@@ -134,7 +135,7 @@ export default function ServicesOrder() {
<ul className={styles.orderList} style={{ minHeight: 650 }}> <ul className={styles.orderList} style={{ minHeight: 650 }}>
{orderList.map((item) => { {orderList.map((item) => {
return ( return (
<li key={item.inspectionId} className={styles.orderItem}> <li key={item.id} className={styles.orderItem}>
<Row <Row
justify="space-between" justify="space-between"
align="middle" align="middle"
...@@ -172,7 +173,7 @@ export default function ServicesOrder() { ...@@ -172,7 +173,7 @@ export default function ServicesOrder() {
height={80} height={80}
preview={false} preview={false}
fallback={errImg} fallback={errImg}
src={item.images?.[0]} src={item.coverPlan}
></Image> ></Image>
</div> </div>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论