Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
web
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
web
Commits
62acacca
提交
62acacca
authored
5月 21, 2023
作者:
18928357778
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
改-跳转搜索条件
上级
918b9bdf
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
43 行增加
和
42 行删除
+43
-42
index.ts
components/filter/api/index.ts
+20
-20
index.tsx
components/filter/compoents/appType/index.tsx
+7
-8
next.config.js
next.config.js
+3
-0
index.page.tsx
pages/flyingHandService/index.page.tsx
+11
-12
index.tsx
pages/home/waterfallFlowBody/index.tsx
+2
-2
没有找到文件。
components/filter/api/index.ts
浏览文件 @
62acacca
import
request
,
{
Response
}
from
'~/api/request'
;
import
request
,
{
Response
}
from
"~/api/request"
;
export
interface
FilterOptionResp
{
id
:
number
,
name
:
string
id
:
number
;
name
?:
string
;
appName
?:
string
;
}
export
interface
RegionResp
{
"childInfo"
:
RegionResp
[]
|
null
,
"id"
:
number
,
"level"
:
number
,
"name"
:
string
,
"pid"
:
number
childInfo
:
RegionResp
[]
|
null
;
id
:
number
;
level
:
number
;
name
:
string
;
pid
:
number
;
}
export
default
{
category
:
():
Promise
<
Response
<
Array
<
FilterOptionResp
>>>
=>
{
return
request
(
'/pms/webProductMall/category'
);
return
request
(
"/pms/webProductMall/category"
);
},
brand
:
():
Promise
<
Response
<
Array
<
FilterOptionResp
>>>
=>
{
return
request
(
'/pms/webDevice/brand'
);
return
request
(
"/pms/webDevice/brand"
);
},
model
:
():
Promise
<
Response
<
Array
<
FilterOptionResp
>>>
=>
{
return
request
(
'/pms/webDevice/model'
);
return
request
(
"/pms/webDevice/model"
);
},
part
:
():
Promise
<
Response
<
Array
<
FilterOptionResp
>>>
=>
{
return
request
(
'/pms/webProductMall/parts'
);
return
request
(
"/pms/webProductMall/parts"
);
},
quality
:
():
Promise
<
Response
<
Array
<
FilterOptionResp
>>>
=>
{
return
request
(
'/pms/webProductMall/quality'
);
return
request
(
"/pms/webProductMall/quality"
);
},
region
:
():
Promise
<
Response
<
Array
<
RegionResp
>>>
=>
{
return
request
(
'/pms/webDevice/getSecondDistrictInfo'
);
return
request
(
"/pms/webDevice/getSecondDistrictInfo"
);
},
industry
:
():
Promise
<
Response
<
Array
<
RegionResp
>>>
=>
{
return
request
(
'/release/work/listAllIndustry'
);
return
request
(
"/release/work/listAllIndustry"
);
},
appType
:
():
Promise
<
Response
<
Array
<
RegionResp
>>>
=>
{
return
request
(
'/release/work/listAllAppType'
);
return
request
(
"/release/work/listAllAppType"
);
},
deviceBrand
:
():
Promise
<
Response
<
Array
<
RegionResp
>>>
=>
{
return
request
(
'/pms/webDevice/deviceBrand'
);
return
request
(
"/pms/webDevice/deviceBrand"
);
},
deviceModel
:
():
Promise
<
Response
<
Array
<
RegionResp
>>>
=>
{
return
request
(
'/pms/webDevice/deviceModel'
);
return
request
(
"/pms/webDevice/deviceModel"
);
},
}
\ No newline at end of file
};
components/filter/compoents/appType/index.tsx
浏览文件 @
62acacca
import
{
Space
,
Button
,
Select
,
Collapse
}
from
'antd'
;
import
styles
from
'../../index.module.scss'
;
import
{
Space
,
Button
,
Select
,
Collapse
}
from
"antd"
;
import
styles
from
"../../index.module.scss"
;
import
api
,
{
FilterOptionResp
}
from
"../../api"
;
import
{
useState
,
useEffect
}
from
'react'
;
import
{
useState
,
useEffect
}
from
"react"
;
type
Props
=
{
onChange
:
(
id
:
FilterOptionResp
)
=>
void
;
...
...
@@ -19,7 +19,7 @@ export default function CategoryItem(props: Props) {
const
onClick
=
(
item
:
FilterOptionResp
)
=>
{
props
.
onChange
({
id
:
item
.
id
,
name
:
"应用:"
+
item
.
n
ame
,
appName
:
"应用:"
+
item
.
appN
ame
,
});
};
...
...
@@ -42,7 +42,7 @@ export default function CategoryItem(props: Props) {
key=
{
item
.
id
}
onClick=
{
(
e
)
=>
onClick
(
item
)
}
>
{
item
.
n
ame
}
{
item
.
appN
ame
}
</
Button
>
);
})
}
...
...
@@ -58,7 +58,7 @@ export default function CategoryItem(props: Props) {
key=
{
item
.
id
}
onClick=
{
(
e
)
=>
onClick
(
item
)
}
>
{
item
.
n
ame
}
{
item
.
appN
ame
}
</
Button
>
);
})
}
...
...
@@ -68,4 +68,4 @@ export default function CategoryItem(props: Props) {
</
div
>
</
div
>
);
}
\ No newline at end of file
}
next.config.js
浏览文件 @
62acacca
...
...
@@ -10,6 +10,9 @@ const nextConfig = {
distDir
,
reactStrictMode
:
true
,
transpilePackages
:
[
"antd"
],
compiler
:
{
styledComponents
:
true
,
},
redirects
()
{
return
[
{
...
...
pages/flyingHandService/index.page.tsx
浏览文件 @
62acacca
...
...
@@ -96,11 +96,15 @@ export default function FlyingHandService() {
//端口列表请求
useEffect
(()
=>
{
let
queryVal
=
JSON
.
parse
(
JSON
.
stringify
(
router
.
query
));
for
(
const
key
in
queryVal
)
{
queryVal
[
key
]
=
Number
(
queryVal
[
key
]);
}
api
.
listPageJobServicesInfo
({
...
pageParams
,
...
filterParams
,
...
router
.
query
,
...
queryVal
,
})
.
then
((
res
)
=>
{
setProductList
(
...
...
@@ -141,7 +145,7 @@ export default function FlyingHandService() {
useEffect
(()
=>
{
setRightDomList
(
list
.
map
((
item
)
=>
{
list
.
map
((
item
:
string
)
=>
{
return
{
element
:
rightDom
(
item
)
};
})
);
...
...
@@ -156,10 +160,14 @@ export default function FlyingHandService() {
useEffect
(()
=>
{
if
(
Object
.
keys
(
router
.
query
).
length
)
{
let
queryVal
=
JSON
.
parse
(
JSON
.
stringify
(
router
.
query
));
for
(
const
key
in
queryVal
)
{
queryVal
[
key
]
=
Number
(
queryVal
[
key
]);
}
setFilterParams
((
props
)
=>
{
return
{
...
props
,
...
router
.
query
,
...
queryVal
,
};
});
}
...
...
@@ -171,15 +179,6 @@ export default function FlyingHandService() {
<
div
className=
"flyingTop"
>
<
div
className=
"flyingTop-left"
>
<
Space
>
{
/* <Select
className='selectItem'
bordered={false}
popupMatchSelectWidth={false}
placeholder="区域"
size="large"
onChange={onProvinceChange}
options={secondDistrictInfo}
/> */
}
<
Cascader
allowClear
placeholder=
"地域"
...
...
pages/home/waterfallFlowBody/index.tsx
浏览文件 @
62acacca
...
...
@@ -122,7 +122,7 @@ export default function WaterfallFlowBody() {
const
{
deviceCategory
,
deviceBrand
,
deviceModel
}
=
equipmentLeasingApi
;
const
eqApiTypeList
=
[
"categoryId"
,
"brandId"
,
"modelId"
];
const
{
listAll
AppType
,
listAllIndustry
}
=
jobServicesApi
;
const
{
listAll
Industry
,
listAllAppType
}
=
jobServicesApi
;
const
jobApiTypeList
=
[
"industryId"
,
"appTypeId"
];
const
{
listAllCategory
,
listAllParts
,
listAllQuality
}
=
mallApi
;
...
...
@@ -151,7 +151,7 @@ export default function WaterfallFlowBody() {
deviceBrand
(),
deviceModel
(),
]);
let
res2
=
await
Promise
.
all
([
listAll
AppType
(),
listAllIndustry
()]);
let
res2
=
await
Promise
.
all
([
listAll
Industry
(),
listAllAppType
()]);
let
res3
=
await
Promise
.
all
([
listAllCategory
(),
listAllParts
(),
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论