Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
web-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
web-ci-test
Commits
49787d8b
提交
49787d8b
authored
5月 24, 2023
作者:
翁进城
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/caoyun'
上级
6785d547
b129fd10
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
45 行增加
和
13 行删除
+45
-13
index.tsx
pages/flyingHandService/api/index.tsx
+3
-0
index.page.tsx
pages/flyingHandService/index.page.tsx
+24
-8
index.ts
pages/home/waterfallFlowBody/api/index.ts
+10
-0
index.tsx
pages/home/waterfallFlowBody/index.tsx
+8
-4
styled.tsx
pages/home/waterfallFlowBody/styled.tsx
+0
-1
没有找到文件。
pages/flyingHandService/api/index.tsx
浏览文件 @
49787d8b
...
...
@@ -49,6 +49,9 @@ export default {
region
:
():
Promise
<
Response
<
Array
<
RegionResp
>>>
=>
{
return
request
(
'/pms/webDevice/getSecondDistrictInfo'
);
},
PilotLicense
:
():
Promise
<
Response
<
Array
<
RegionResp
>>>
=>
{
return
request
(
'/release/curriculum/getDronePilotLicense'
);
},
IndustryFlightSkills
:
():
Promise
<
Response
<
Array
<
SkillsType
>>>
=>
{
return
request
(
'/release/curriculum/getIndustryFlightSkills'
);
},
...
...
pages/flyingHandService/index.page.tsx
浏览文件 @
49787d8b
...
...
@@ -27,6 +27,9 @@ export default function FlyingHandService() {
const
[
secondDistrictInfo
,
setSecondDistrictInfo
]
=
useState
(
Array
<
RegionResp
>
);
const
[
skills
,
setSkills
]
=
useState
(
Array
<
RegionResp
>
);
const
[
flightSkillsList
,
setFlightSkillsList
]
=
useState
(
Array
<
SkillsType
>
);
const
leftDom
=
(
item
:
Flying
)
=>
{
...
...
@@ -156,7 +159,9 @@ export default function FlyingHandService() {
api
.
region
().
then
((
res
)
=>
{
setSecondDistrictInfo
(
res
.
result
||
[]);
});
api
.
PilotLicense
().
then
((
res
)
=>
{
setSkills
(
res
.
result
||
[]);
});
api
.
IndustryFlightSkills
().
then
((
res
)
=>
{
setFlightSkillsList
(
res
.
result
||
[]);
});
...
...
@@ -213,20 +218,31 @@ export default function FlyingHandService() {
onChange=
{
onChange
}
changeOnSelect
/>
<
Select
<
Cascader
allowClear
placeholder=
"考证"
bordered=
{
false
}
className=
"selectItem"
size=
"large"
fieldNames=
{
{
label
:
"licenseType"
,
value
:
"id"
,
children
:
"childLicenses"
,
}
}
options=
{
skills
}
onChange=
{
onChange
}
changeOnSelect
/>
{
/* <Select
className="selectItem"
bordered={false}
popupMatchSelectWidth={false}
placeholder="考证"
size="large"
onChange={(value) => onProvinceChange(value, "考证")}
options=
{
[
{
value
:
"1"
,
label
:
"视距内驾驶员"
},
{
value
:
"2"
,
label
:
"视距外驾驶员"
},
{
value
:
"3"
,
label
:
"教员"
},
]
}
options={skills}
allowClear
/>
/>
*/
}
<
Select
className=
"selectItem"
bordered=
{
false
}
...
...
pages/home/waterfallFlowBody/api/index.ts
浏览文件 @
49787d8b
...
...
@@ -85,12 +85,18 @@ export const jobServicesApi = {
};
export
const
mallApi
=
{
listAllBrand
:
():
Promise
<
Response
<
Array
<
FilterOptionResp
>>>
=>
{
return
request
(
"/pms/webDevice/brand"
);
},
listAllCategory
:
():
Promise
<
Response
<
Array
<
FilterOptionResp
>>>
=>
{
return
request
(
"/pms/webProductMall/category"
);
},
listAllParts
:
():
Promise
<
Response
<
Array
<
FilterOptionResp
>>>
=>
{
return
request
(
"/pms/webProductMall/parts"
);
},
listAllModel
:
():
Promise
<
Response
<
Array
<
FilterOptionResp
>>>
=>
{
return
request
(
"/pms/webDevice/model"
);
},
listAllQuality
:
():
Promise
<
Response
<
Array
<
FilterOptionResp
>>>
=>
{
return
request
(
"/pms/webProductMall/quality"
);
},
...
...
@@ -101,12 +107,16 @@ export interface SkillsType {
type
:
string
;
id
:
number
;
skillsName
:
string
;
licenseType
:
string
}
export
const
flightSkillsApi
=
{
IndustryFlightSkills
:
():
Promise
<
Response
<
Array
<
SkillsType
>>>
=>
{
return
request
(
"/release/curriculum/getIndustryFlightSkills"
);
},
InDronePilotLicense
:
():
Promise
<
Response
<
Array
<
SkillsType
>>>
=>
{
return
request
(
"/release/curriculum/getDronePilotLicense"
);
},
};
export
interface
NewsPageType
{
...
...
pages/home/waterfallFlowBody/index.tsx
浏览文件 @
49787d8b
...
...
@@ -110,7 +110,7 @@ export default function WaterfallFlowBody() {
const
{
deviceCategory
,
deviceBrand
,
deviceModel
}
=
equipmentLeasingApi
;
const
eqApiTypeList
=
[
"categoryId"
,
"brandId"
,
"modelId"
];
const
{
listAllCategory
,
listAllParts
,
listAllQuality
}
=
mallApi
;
const
{
listAll
Model
,
listAllBrand
,
listAll
Category
,
listAllParts
,
listAllQuality
}
=
mallApi
;
const
mallApiTypeList
=
[
"brandId"
,
"productCategoryId"
,
...
...
@@ -118,7 +118,7 @@ export default function WaterfallFlowBody() {
"modelId"
,
"qualityId"
,
];
const
{
IndustryFlightSkills
}
=
flightSkillsApi
;
const
{
IndustryFlightSkills
,
InDronePilotLicense
}
=
flightSkillsApi
;
const
flightApiTypeList
=
[
"licenseId"
,
"flightSkillsId"
];
const
{
listAllIndustry
,
listAllAppType
}
=
jobServicesApi
;
...
...
@@ -129,6 +129,8 @@ 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
);
};
...
...
@@ -141,11 +143,13 @@ export default function WaterfallFlowBody() {
deviceModel
(),
]);
let
res2
=
await
Promise
.
all
([
listAllBrand
(),
listAllCategory
(),
listAllParts
(),
listAllModel
(),
listAllQuality
(),
]);
let
res3
=
await
Promise
.
all
([
IndustryFlightSkills
()]);
let
res3
=
await
Promise
.
all
([
IndustryFlightSkills
()
,
InDronePilotLicense
()
]);
let
res4
=
await
Promise
.
all
([
listAllIndustry
(),
listAllAppType
()]);
// let res4 = await Promise.all([deviceCategory(),deviceBrand(),deviceModel()])
// let res6 = await Promise.all([deviceCategory(),deviceBrand(),deviceModel()])
...
...
@@ -170,7 +174,7 @@ export default function WaterfallFlowBody() {
.
map
((
item
,
index
)
=>
{
return
item
.
result
?.
map
((
it
)
=>
{
it
.
type
=
flightApiTypeList
[
index
];
it
.
name
=
it
.
name
||
it
.
skillsName
;
it
.
name
=
it
.
name
||
it
.
skillsName
||
it
.
licenseType
;
return
it
;
});
})
...
...
pages/home/waterfallFlowBody/styled.tsx
浏览文件 @
49787d8b
...
...
@@ -102,7 +102,6 @@ export const Box = styled.div`
}
}
.right-item {
background: url("./assets/xwbg.png") no-repeat #fff;
border-radius: 6px;
.title {
display: flex;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论