Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
web-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
web-ci-test
Commits
c631bd5f
提交
c631bd5f
authored
5月 25, 2023
作者:
18928357778
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添-首页-地图-三个点位
上级
b129fd10
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
207 行增加
和
150 行删除
+207
-150
index.tsx
pages/home/waterfallFlowBody/components/map/api/index.tsx
+40
-3
icon.png
pages/home/waterfallFlowBody/components/map/assets/icon.png
+0
-0
index.tsx
pages/home/waterfallFlowBody/components/map/index.tsx
+132
-124
index.tsx
pages/home/waterfallFlowBody/index.tsx
+34
-23
styled.tsx
pages/home/waterfallFlowBody/styled.tsx
+1
-0
没有找到文件。
pages/home/waterfallFlowBody/components/map/api/index.tsx
浏览文件 @
c631bd5f
import
request
,
{
Response
}
from
"~/api/request"
;
export
interface
PositioningInfoParams
{
lat
:
number
;
lon
:
number
;
lat
?:
number
;
lon
?:
number
;
pageNo
?:
number
,
pageSize
?:
number
}
export
interface
Entiy
{
...
...
@@ -19,11 +21,46 @@ export interface ListPageJobInfoResp {
locationList
:
Array
<
Entiy
>
;
}
export
interface
FlyerBitmapEntiy
{
flyerName
:
string
,
phoneNum
:
string
,
lon
:
number
,
lat
:
number
,
distance
:
number
}
export
interface
UavBitmapEntiy
{
uavName
:
string
,
online
:
number
,
lon
:
number
,
lat
:
number
,
distance
:
number
,
id
:
string
}
export
interface
BitmapInfo
<
T
>
{
pageNo
:
number
,
pageSize
:
number
,
list
:
T
[],
totalCount
:
number
,
totalPage
:
number
}
export
default
{
//web-
作业服务-分页
//web-
首页-地图-全国点位
listPositioningInfo
:
(
params
:
PositioningInfoParams
):
Promise
<
Response
<
ListPageJobInfoResp
[]
>>
=>
{
return
request
(
"/release/website/getWebsiteList"
,
"get"
,
params
);
},
//web-首页-地图-全国飞手
listFlyerBitmap
:
(
params
:
PositioningInfoParams
):
Promise
<
Response
<
BitmapInfo
<
FlyerBitmapEntiy
>>>
=>
{
return
request
(
"/release/website/flyer/bitmap"
,
"get"
,
params
);
},
//web-首页-地图-全国无人机
listUavBitmap
:
(
params
:
PositioningInfoParams
):
Promise
<
Response
<
BitmapInfo
<
UavBitmapEntiy
>>>
=>
{
return
request
(
"/release/website/uav/bitmap"
,
"get"
,
params
);
},
};
pages/home/waterfallFlowBody/components/map/assets/icon.png
0 → 100644
浏览文件 @
c631bd5f
10.1 KB
pages/home/waterfallFlowBody/components/map/index.tsx
浏览文件 @
c631bd5f
差异被折叠。
点击展开。
pages/home/waterfallFlowBody/index.tsx
浏览文件 @
c631bd5f
...
...
@@ -129,8 +129,6 @@ export default function WaterfallFlowBody() {
index
:
number
,
option
:
[]
)
=>
{
console
.
log
(
"跳转"
,
value
,
index
,
option
);
const
[
item
]
=
option
.
filter
((
item
:
any
)
=>
item
.
name
===
value
.
value
);
routerPath
(
index
,
item
);
};
...
...
@@ -153,40 +151,52 @@ export default function WaterfallFlowBody() {
let
res4
=
await
Promise
.
all
([
listAllIndustry
(),
listAllAppType
()]);
// let res4 = await Promise.all([deviceCategory(),deviceBrand(),deviceModel()])
// let res6 = await Promise.all([deviceCategory(),deviceBrand(),deviceModel()])
const
resValuelist1
=
res1
.
map
((
item
,
index
)
=>
{
return
item
.
result
?.
map
((
it
)
=>
{
it
.
type
=
eqApiTypeList
[
index
];
return
it
;
});
if
(
item
.
code
===
"200"
)
{
return
item
.
result
?.
map
((
it
)
=>
{
it
.
type
=
eqApiTypeList
[
index
];
return
it
;
});
}
return
{}
})
.
flat
();
const
resValuelist2
=
res2
.
map
((
item
,
index
)
=>
{
return
item
.
result
?.
map
((
it
)
=>
{
it
.
type
=
mallApiTypeList
[
index
];
return
it
;
});
if
(
item
.
code
===
"200"
)
{
return
item
.
result
?.
map
((
it
)
=>
{
it
.
type
=
mallApiTypeList
[
index
];
return
it
;
});
}
return
{}
})
.
flat
();
const
resValuelist3
=
res3
.
map
((
item
,
index
)
=>
{
return
item
.
result
?.
map
((
it
)
=>
{
it
.
type
=
flightApiTypeList
[
index
];
it
.
name
=
it
.
name
||
it
.
skillsName
||
it
.
licenseType
;
return
it
;
});
if
(
item
.
code
===
"200"
)
{
return
item
.
result
?.
map
((
it
)
=>
{
it
.
type
=
flightApiTypeList
[
index
];
it
.
name
=
it
.
name
||
it
.
skillsName
||
it
.
licenseType
;
return
it
;
});
}
return
{}
})
.
flat
();
const
resValuelist4
=
res4
.
map
((
item
,
index
)
=>
{
return
item
.
result
?.
map
((
it
)
=>
{
it
.
type
=
jobApiTypeList
[
index
];
console
.
log
(
it
);
it
.
name
=
it
.
name
||
it
.
appName
;
return
it
;
});
if
(
item
.
code
===
"200"
)
{
return
item
.
result
?.
map
((
it
)
=>
{
it
.
type
=
jobApiTypeList
[
index
];
it
.
name
=
it
.
name
||
it
.
appName
;
return
it
;
});
}
return
{}
})
.
flat
();
...
...
@@ -222,7 +232,6 @@ export default function WaterfallFlowBody() {
resValuelist4
,
list2Option
,
];
console
.
log
(
optionList
);
setLeftDomList
(
columns
.
map
((
item
,
index
)
=>
{
...
...
@@ -333,6 +342,7 @@ export default function WaterfallFlowBody() {
};
const
rightDom
=
(
list
:
Array
<
NewsPageType
>
)
=>
{
if
(
!
list
?.
length
)
return
;
return
(
<
div
key=
{
1009
}
className=
"right-box-item right-item"
>
<
div
className=
"title"
>
...
...
@@ -364,6 +374,7 @@ export default function WaterfallFlowBody() {
};
const
rightDom2
=
(
list
:
Array
<
NewsTenderType
>
)
=>
{
if
(
!
list
.
length
)
return
;
return
(
<
div
key=
{
1008
}
className=
"right-box-item right-item-second"
>
<
div
className=
"item-box"
>
...
...
pages/home/waterfallFlowBody/styled.tsx
浏览文件 @
c631bd5f
...
...
@@ -102,6 +102,7 @@ export const Box = styled.div`
}
}
.right-item {
background-color: #fff;
border-radius: 6px;
.title {
display: flex;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论