提交 010275b6 作者: 18928357778

改-修改跳转逻辑

上级 f789f2be
......@@ -157,7 +157,7 @@ export default function WaterfallFlowBody() {
const resValuelist1 = res1
.map((item, index) => {
return item.result?.map((it) => {
it.type = jobApiTypeList[index];
it.type = eqApiTypeList[index];
return it;
});
})
......@@ -173,7 +173,7 @@ export default function WaterfallFlowBody() {
const resValuelist3 = res3
.map((item, index) => {
return item.result?.map((it) => {
it.type = jobApiTypeList[index];
it.type = mallApiTypeList[index];
return it;
});
})
......@@ -181,7 +181,7 @@ export default function WaterfallFlowBody() {
const resValuelist5 = res5
.map((item, index) => {
return item.result?.map((it) => {
it.type = jobApiTypeList[index];
it.type = flightApiTypeList[index];
return it;
});
})
......@@ -244,25 +244,6 @@ export default function WaterfallFlowBody() {
index: number,
resultList: Array<Array<AllType>>
) => {
function onClick(item: string) {
switch (item) {
case "无人机出租":
router.push("/equipmentLeasing");
break;
case "无人机服务":
router.push("/jobServices");
break;
case "无人机销售":
router.push("/mall");
break;
case "无人机培训":
router.push("/flyingHandService");
break;
}
}
return (
<div key={item.title} className="item">
<div className="item-title">
......@@ -369,15 +350,15 @@ export default function WaterfallFlowBody() {
boxIndex={2}
leftRenderDom={{
columns: [
// { noFor: true, element: <RotationChart /> },
// ...leftDomList
{ noFor: true, element: <RotationChart /> },
...leftDomList,
],
}}
rightRenderDom={{
columns: [
{ element: <Map /> },
// { element: rightTopDomList as JSX.Element},
// { element: rightBottomDomList as JSX.Element},
{ element: rightTopDomList as JSX.Element },
{ element: rightBottomDomList as JSX.Element },
],
}}
/>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论