提交 fac4cef4 作者: 翁进城

打包前优化

上级 3d84336c
......@@ -311,6 +311,7 @@ const Filter = (props: Props, ref: Ref<any>) => {
{typeInfo?.length &&
typeInfo?.map((item) => (
<TypeInfo
key={item.directoryId}
typeName={item.name}
dataValue={item.categoriesInfoListDTO}
onChange={(item: FilterOptionResp) =>
......
......@@ -299,7 +299,7 @@ export default function EquipmentLeasingDetail() {
}}
>
{detail?.images.map((item) => (
<AImage src={item.imgUrl} />
<AImage key={item.id} src={item.imgUrl} />
))}
</AImage.PreviewGroup>
</div>
......
......@@ -59,7 +59,7 @@ export default function ServicesOrder() {
//获取订单状态字典
useEffect(() => {
api.listStatus().then((res) => {
setTranStatusMap(res.result || []);
// setTranStatusMap(res.result || []);
});
}, []);
......@@ -131,7 +131,7 @@ export default function ServicesOrder() {
<ul className={styles.orderList} style={{ minHeight: 650 }}>
{orderList.map((item) => {
return (
<li key={item.id} className={styles.orderItem}>
<li key={item.inspectionId} className={styles.orderItem}>
<Row
justify="space-between"
align="middle"
......@@ -141,13 +141,15 @@ export default function ServicesOrder() {
background: "#EBF8FF",
}}
>
<div className={styles.font2}>{item.createTime}</div>
<div className={styles.font2}>
{item.startTime} - {item.endTime}
</div>
<div className={styles.font3}>
{
{/* {
tranStatusMap.find(
(status) => status.code === item.statusCode
)?.status
}
} */}
</div>
</Row>
<Row
......@@ -161,7 +163,7 @@ export default function ServicesOrder() {
height={80}
preview={false}
fallback={errImg}
src={item.orderMainImg}
src={item.images[0]}
></Image>
</div>
......@@ -185,9 +187,7 @@ export default function ServicesOrder() {
style={{ height: "100%" }}
>
预付金额:{" "}
<span className={styles.font6}>
¥{item.totalBuyNum}
</span>
<span className={styles.font6}>¥{item.orderAmt}</span>
</Row>
</Col>
<Col flex={"auto"} style={{}}>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论