Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
web-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
web-ci-test
Commits
278b3d83
提交
278b3d83
authored
5月 30, 2023
作者:
翁进城
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/caoyun'
上级
44063ec7
ad36d9c6
隐藏空白字符变更
内嵌
并排
正在显示
30 个修改的文件
包含
275 行增加
和
84 行删除
+275
-84
index.tsx
components/NavHeader/index.tsx
+6
-1
index.tsx
components/filter/index.tsx
+83
-5
[id].page.tsx
pages/equipmentLeasing/detail/[id].page.tsx
+20
-8
index.page.tsx
pages/equipmentLeasing/index.page.tsx
+23
-13
styled.tsx
pages/equipmentLeasing/styled.tsx
+1
-0
xt.png
...ce/examination/components/brushQuestionZone/assets/xt.png
+0
-0
index.tsx
...ervice/examination/components/brushQuestionZone/index.tsx
+3
-2
styled.tsx
...rvice/examination/components/brushQuestionZone/styled.tsx
+1
-1
kh.jpg
...HandService/examination/components/mockExam/assets/kh.jpg
+0
-0
index.tsx
...yingHandService/examination/components/mockExam/index.tsx
+3
-2
styled.tsx
...ingHandService/examination/components/mockExam/styled.tsx
+1
-0
index.page.tsx
pages/flyingHandService/index.page.tsx
+21
-3
styled.tsx
pages/flyingHandService/styled.tsx
+1
-0
index.page.tsx
...lFlowBody/components/map/moreServicePoints/index.page.tsx
+2
-2
index.tsx
...home/waterfallFlowBody/components/rotationChart/index.tsx
+1
-1
styled.tsx
...ome/waterfallFlowBody/components/rotationChart/styled.tsx
+1
-0
index.tsx
pages/home/waterfallFlowBody/index.tsx
+37
-25
index.tsx
pages/jobServices/detail/api/index.tsx
+3
-1
1.webp
pages/jobServices/detail/components/evaluate/assets/1.webp
+0
-0
2.webp
pages/jobServices/detail/components/evaluate/assets/2.webp
+0
-0
3.webp
pages/jobServices/detail/components/evaluate/assets/3.webp
+0
-0
4.webp
pages/jobServices/detail/components/evaluate/assets/4.webp
+0
-0
5.webp
pages/jobServices/detail/components/evaluate/assets/5.webp
+0
-0
6.webp
pages/jobServices/detail/components/evaluate/assets/6.webp
+0
-0
7.webp
pages/jobServices/detail/components/evaluate/assets/7.webp
+0
-0
8.webp
pages/jobServices/detail/components/evaluate/assets/8.webp
+0
-0
9.webp
pages/jobServices/detail/components/evaluate/assets/9.webp
+0
-0
index.tsx
pages/jobServices/detail/components/evaluate/index.tsx
+52
-9
styled.tsx
pages/jobServices/detail/components/evaluate/styled.tsx
+1
-2
index.page.tsx
pages/jobServices/index.page.tsx
+15
-9
没有找到文件。
components/NavHeader/index.tsx
浏览文件 @
278b3d83
...
@@ -46,7 +46,12 @@ export default function NavHeader() {
...
@@ -46,7 +46,12 @@ export default function NavHeader() {
useContext
(
UserContext
);
useContext
(
UserContext
);
useEffect
(()
=>
{
useEffect
(()
=>
{
setCurrentPath
(
router
.
route
);
const
routerTo
=
items
?.
filter
(
item
=>
router
.
route
.
includes
(
item
.
key
))[
0
]
if
(
routerTo
)
{
setCurrentPath
(
routerTo
?.
key
!
);
}
else
{
setCurrentPath
(
router
.
route
);
}
console
.
log
(
"currentHash"
,
currentPath
);
console
.
log
(
"currentHash"
,
currentPath
);
},
[
router
.
route
]);
},
[
router
.
route
]);
...
...
components/filter/index.tsx
浏览文件 @
278b3d83
...
@@ -3,7 +3,8 @@ import { FilterOptionResp, RegionResp } from "./api";
...
@@ -3,7 +3,8 @@ import { FilterOptionResp, RegionResp } from "./api";
import
ResultItem
from
"./compoents/resultItem"
;
import
ResultItem
from
"./compoents/resultItem"
;
import
RegionItem
from
"./compoents/regionItem"
;
import
RegionItem
from
"./compoents/regionItem"
;
import
styles
from
"./index.module.scss"
;
import
styles
from
"./index.module.scss"
;
import
{
useEffect
,
useState
}
from
"react"
;
import
{
useEffect
,
useState
,
forwardRef
,
useImperativeHandle
}
from
"react"
;
import
{
useRouter
}
from
'next/router'
import
BrandItem
from
"./compoents/brandItem"
;
import
BrandItem
from
"./compoents/brandItem"
;
import
ModelItem
from
"./compoents/modelItem"
;
import
ModelItem
from
"./compoents/modelItem"
;
import
PartItem
from
"./compoents/partItem"
;
import
PartItem
from
"./compoents/partItem"
;
...
@@ -58,14 +59,68 @@ type Props = {
...
@@ -58,14 +59,68 @@ type Props = {
adapterFilterResult
:
AdapterResult
//适配器,直接用于接口请求
adapterFilterResult
:
AdapterResult
//适配器,直接用于接口请求
)
=>
void
;
//筛选条件更改事件
)
=>
void
;
//筛选条件更改事件
};
};
export
default
function
Filter
(
props
:
Props
)
{
const
idArr
=
[
"brandId"
,
"categoryId"
,
"modelId"
,
"partsId"
,
"productCategoryId"
,
"qualityId"
,
"industryId"
,
"appTypeId"
]
const
nameArr
:
any
=
{
brandId
:
{
type
:
"brandId"
,
typeObj
:
"brand"
,
typeName
:
"品牌:"
,
},
// districtId: {
// type:"districtId",
// typeObj:"region",
// typeName:"地域:",
// },
modelId
:{
type
:
"modelId"
,
typeObj
:
"model"
,
typeName
:
"型号:"
,
},
partsId
:
{
type
:
"partsId"
,
typeObj
:
"part"
,
typeName
:
"部件:"
,
},
productCategoryId
:
{
type
:
"productCategoryId"
,
typeObj
:
"category"
,
typeName
:
"类目:"
,
},
qualityId
:
{
type
:
"qualityId"
,
typeObj
:
"quality"
,
typeName
:
"成色:"
,
},
industryId
:
{
type
:
"industryId"
,
typeObj
:
"industryId"
,
typeName
:
"行业:"
,
},
appTypeId
:
{
type
:
"appTypeId"
,
typeObj
:
"appTypeId"
,
typeName
:
"应用:"
,
},
categoryId
:
{
type
:
"categoryId"
,
typeObj
:
"categoryId"
,
typeName
:
"类目:"
,
},
}
const
Filter
=
forwardRef
((
props
:
Props
,
ref
)
=>
{
const
router
=
useRouter
();
useImperativeHandle
(
ref
,
()
=>
({
idArr
:
idArr
,
clearRouter
:
clearRouter
}))
const
[
result
,
setResult
]
=
useState
<
FilterResult
>
({});
const
[
result
,
setResult
]
=
useState
<
FilterResult
>
({});
const
onChange
=
(
item
:
FilterOptionResp
,
type
:
string
)
=>
{
const
onChange
=
(
item
:
FilterOptionResp
,
type
:
string
)
=>
{
console
.
log
(
item
,
type
);
clearRouter
()
let
data
:
{
[
key
:
string
]:
FilterOptionResp
}
=
{};
let
data
:
{
[
key
:
string
]:
FilterOptionResp
}
=
{};
data
[
type
]
=
item
;
data
[
type
]
=
item
;
console
.
log
(
data
);
setResult
({
...
result
,
...
data
});
setResult
({
...
result
,
...
data
});
};
};
...
@@ -83,7 +138,26 @@ export default function Filter(props: Props) {
...
@@ -83,7 +138,26 @@ export default function Filter(props: Props) {
categoryId
:
result
.
categoryId
?.
id
,
categoryId
:
result
.
categoryId
?.
id
,
});
});
},
[
result
]);
},
[
result
]);
useEffect
(()
=>
{
let
queryVal
=
JSON
.
parse
(
JSON
.
stringify
(
router
.
query
));
if
(
Object
.
keys
(
router
.
query
).
length
)
{
for
(
const
key
in
queryVal
)
{
if
(
idArr
.
includes
(
key
))
{
onChange
({
id
:
queryVal
[
key
],
name
:
nameArr
[
key
].
typeName
+
queryVal
.
name
},
nameArr
[
key
].
typeObj
)
}
}
}
},[
router
])
const
clearRouter
=
()
=>
{
if
(
Object
.
keys
(
router
.
query
).
length
)
{
router
.
query
=
{}
router
.
replace
(
router
.
pathname
)
}
}
const
onDel
=
(
key
:
string
)
=>
{
const
onDel
=
(
key
:
string
)
=>
{
clearRouter
()
//@ts-ignore
//@ts-ignore
delete
result
[
key
];
delete
result
[
key
];
setResult
({
setResult
({
...
@@ -163,3 +237,6 @@ export default function Filter(props: Props) {
...
@@ -163,3 +237,6 @@ export default function Filter(props: Props) {
</>
</>
);
);
}
}
)
export
default
Filter
\ No newline at end of file
pages/equipmentLeasing/detail/[id].page.tsx
浏览文件 @
278b3d83
...
@@ -7,11 +7,15 @@ import { Button , Image as AImage , Divider , Select,Modal ,Tag,Space,Form,messa
...
@@ -7,11 +7,15 @@ import { Button , Image as AImage , Divider , Select,Modal ,Tag,Space,Form,messa
import
Image
from
'next/image'
;
import
Image
from
'next/image'
;
import
errImg
from
"~/assets/errImg"
;
import
errImg
from
"~/assets/errImg"
;
import
api
,{
GetWebDeviceDetailResult
,
GetWebDeviceWareSkuById
}
from
'./api'
;
import
api
,{
GetWebDeviceDetailResult
,
GetWebDeviceWareSkuById
}
from
'./api'
;
const
{
CheckableTag
}
=
Tag
import
{
useUser
}
from
"~/lib/hooks"
;
import
LoginModal
from
"~/components/loginModal"
;
const
{
CheckableTag
}
=
Tag
export
default
function
EquipmentLeasingDetail
()
{
export
default
function
EquipmentLeasingDetail
()
{
const
router
=
useRouter
();
const
router
=
useRouter
();
const
userInfo
=
useUser
();
//获取信息
const
[
openLoginModal
,
setOpenLoginModal
]
=
useState
(
false
);
//登录modal
const
[
id
,
setId
]
=
useState
<
number
|
null
>
(
null
);
const
[
id
,
setId
]
=
useState
<
number
|
null
>
(
null
);
const
[
detail
,
setDetail
]
=
useState
<
GetWebDeviceDetailResult
|
null
>
()
const
[
detail
,
setDetail
]
=
useState
<
GetWebDeviceDetailResult
|
null
>
()
...
@@ -52,12 +56,16 @@ export default function EquipmentLeasingDetail() {
...
@@ -52,12 +56,16 @@ export default function EquipmentLeasingDetail() {
const
[
selectedTagsData
,
setSelectedTagsData
]
=
useState
<
string
>
();
const
[
selectedTagsData
,
setSelectedTagsData
]
=
useState
<
string
>
();
const
showModal
=
()
=>
{
const
showModal
=
()
=>
{
setIsModalOpen
(
true
);
if
(
userInfo
?.
id
)
{
if
(
wareSkuList
?.
length
)
{
setIsModalOpen
(
true
);
setSelectedTags
(
wareSkuList
[
0
].
id
);
if
(
wareSkuList
?.
length
)
{
form
.
setFieldValue
(
"id"
,
wareSkuList
[
0
].
id
)
setSelectedTags
(
wareSkuList
[
0
].
id
);
setSelectedTagsData
(
"3-7天"
)
form
.
setFieldValue
(
"id"
,
wareSkuList
[
0
].
id
)
form
.
setFieldValue
(
"date"
,
"3-7天"
)
setSelectedTagsData
(
"3-7天"
)
form
.
setFieldValue
(
"date"
,
"3-7天"
)
}
}
else
{
setOpenLoginModal
(
true
)
}
}
};
};
...
@@ -245,6 +253,10 @@ export default function EquipmentLeasingDetail() {
...
@@ -245,6 +253,10 @@ export default function EquipmentLeasingDetail() {
</
Form
.
Item
>
</
Form
.
Item
>
</
Form
>
</
Form
>
</
Modal
>
</
Modal
>
<
LoginModal
open=
{
openLoginModal
}
onCancel=
{
()
=>
setOpenLoginModal
(
false
)
}
></
LoginModal
>
</
Box
>
</
Box
>
</
Layout
>
</
Layout
>
)
)
...
...
pages/equipmentLeasing/index.page.tsx
浏览文件 @
278b3d83
import
React
,
{
useEffect
,
useState
}
from
"react"
;
import
React
,
{
useEffect
,
useState
,
useRef
}
from
"react"
;
import
{
useRouter
}
from
"next/router"
;
import
{
useRouter
}
from
"next/router"
;
import
{
Pagination
}
from
"antd"
;
import
{
Pagination
}
from
"antd"
;
import
{
Box
}
from
"./styled"
;
import
{
Box
}
from
"./styled"
;
...
@@ -19,6 +19,7 @@ type Props = {};
...
@@ -19,6 +19,7 @@ type Props = {};
export
default
function
EquipmentLeasing
(
props
:
Props
)
{
export
default
function
EquipmentLeasing
(
props
:
Props
)
{
const
router
=
useRouter
();
const
router
=
useRouter
();
const
filter
=
useRef
<
any
>
()
const
[
productList
,
setProductList
]
=
useState
(
const
[
productList
,
setProductList
]
=
useState
(
Array
<
{
element
:
JSX
.
Element
}
>
Array
<
{
element
:
JSX
.
Element
}
>
);
);
...
@@ -38,8 +39,7 @@ export default function EquipmentLeasing(props: Props) {
...
@@ -38,8 +39,7 @@ export default function EquipmentLeasing(props: Props) {
<
Image
<
Image
src=
{
item
.
wareImgs
[
0
].
imgUrl
}
src=
{
item
.
wareImgs
[
0
].
imgUrl
}
alt=
"error"
alt=
"error"
width=
{
116
}
fill
height=
{
116
}
/>
/>
</
div
>
</
div
>
</
div
>
</
div
>
...
@@ -87,12 +87,20 @@ export default function EquipmentLeasing(props: Props) {
...
@@ -87,12 +87,20 @@ export default function EquipmentLeasing(props: Props) {
//端口列表请求
//端口列表请求
useEffect
(()
=>
{
useEffect
(()
=>
{
let
queryVal
=
JSON
.
parse
(
JSON
.
stringify
(
router
.
query
));
const
idArr
=
filter
.
current
.
idArr
let
rs
for
(
const
key
in
queryVal
)
{
if
(
idArr
.
includes
(
key
))
{
rs
=
{[
key
]:
router
.
query
[
key
]}
}
}
api
api
.
listPageDeviceInfo
(
.
listPageDeviceInfo
(
{
{
...
filterResult
,
...
filterResult
,
...
pageParams
,
...
pageParams
,
...
r
outer
.
query
,
...
r
s
,
},
},
{
{
signal
:
abort
?.
signal
,
signal
:
abort
?.
signal
,
...
@@ -127,17 +135,18 @@ export default function EquipmentLeasing(props: Props) {
...
@@ -127,17 +135,18 @@ export default function EquipmentLeasing(props: Props) {
},
[]);
},
[]);
useEffect
(()
=>
{
useEffect
(()
=>
{
let
queryVal
=
JSON
.
parse
(
JSON
.
stringify
(
router
.
query
));
if
(
router
.
query
)
{
if
(
router
.
query
)
{
setFilterResult
({
...
router
.
query
});
const
idArr
=
filter
.
current
.
idArr
console
.
log
(
router
.
query
,{
brandId
:
1
});
for
(
const
key
in
queryVal
)
{
onFilterChange
({
if
(
idArr
.
includes
(
key
))
{
categoryId
:
{
setFilterResult
({
[
key
]:
router
.
query
[
key
]
});
id
:
2
,
}
name
:
"类目:航测"
}
}
},{
categoryId
:
2
});
}
}
},
[
router
]);
},
[
router
]);
return
(
return
(
<
Layout
>
<
Layout
>
<
Box
>
<
Box
>
...
@@ -145,12 +154,13 @@ export default function EquipmentLeasing(props: Props) {
...
@@ -145,12 +154,13 @@ export default function EquipmentLeasing(props: Props) {
types=
{
[
"地域"
,
"设备类目"
,
"设备品牌"
,
"设备型号"
]
}
types=
{
[
"地域"
,
"设备类目"
,
"设备品牌"
,
"设备型号"
]
}
showResultItem
showResultItem
onChange=
{
onFilterChange
}
onChange=
{
onFilterChange
}
ref=
{
filter
}
></
Filter
>
></
Filter
>
<
div
style=
{
{
paddingTop
:
13
}
}
>
<
div
style=
{
{
paddingTop
:
13
}
}
>
<
ContentBox
<
ContentBox
boxIndex=
{
5
}
boxIndex=
{
5
}
leftcontentstyle=
{
{
leftcontentstyle=
{
{
width
:
"10
2
0px"
,
width
:
"10
1
0px"
,
margin
:
{
top
:
0
,
right
:
"12px"
,
bottom
:
"12px"
,
left
:
0
},
margin
:
{
top
:
0
,
right
:
"12px"
,
bottom
:
"12px"
,
left
:
0
},
}
}
}
}
leftRenderDom=
{
{
leftRenderDom=
{
{
...
...
pages/equipmentLeasing/styled.tsx
浏览文件 @
278b3d83
...
@@ -25,6 +25,7 @@ export const Box = styled.div`
...
@@ -25,6 +25,7 @@ export const Box = styled.div`
width: 116px;
width: 116px;
height: 116px;
height: 116px;
background: #efefef;
background: #efefef;
position: relative;
}
}
}
}
&-bottom {
&-bottom {
...
...
pages/flyingHandService/examination/components/brushQuestionZone/assets/xt.png
0 → 100644
浏览文件 @
278b3d83
69.6 KB
pages/flyingHandService/examination/components/brushQuestionZone/index.tsx
浏览文件 @
278b3d83
...
@@ -2,7 +2,8 @@ import React,{ useEffect ,useState} from 'react'
...
@@ -2,7 +2,8 @@ import React,{ useEffect ,useState} from 'react'
import
{
Box
}
from
'./styled'
import
{
Box
}
from
'./styled'
import
{
Cascader
,
Select
}
from
'antd'
import
{
Cascader
,
Select
}
from
'antd'
import
api
,
{
Flying
,
SkillsType
,
RegionResp
}
from
"../../../api"
;
import
api
,
{
Flying
,
SkillsType
,
RegionResp
}
from
"../../../api"
;
import
Image
from
'next/image'
import
xt
from
'./assets/xt.png'
interface
BrushQuestionZoneType
{
interface
BrushQuestionZoneType
{
}
}
...
@@ -95,7 +96,7 @@ export default function BrushQuestionZone() {
...
@@ -95,7 +96,7 @@ export default function BrushQuestionZone() {
<
div
className=
"content"
>
<
div
className=
"content"
>
{
list
?.
map
((
item
,
i
)
=>
(
{
list
?.
map
((
item
,
i
)
=>
(
<
div
key=
{
i
}
className=
"item"
>
<
div
key=
{
i
}
className=
"item"
>
<
div
className=
"img-box"
></
div
>
<
div
className=
"img-box"
><
Image
src=
{
xt
.
src
}
fill
alt=
'#'
></
Image
>
<
/
div
>
<
div
className=
"item-content"
>
<
div
className=
"item-content"
>
第一章 第1节 习题练习习题练习习题练习
第一章 第1节 习题练习习题练习习题练习
</
div
>
</
div
>
...
...
pages/flyingHandService/examination/components/brushQuestionZone/styled.tsx
浏览文件 @
278b3d83
...
@@ -54,13 +54,13 @@ export const Box = styled.div`
...
@@ -54,13 +54,13 @@ export const Box = styled.div`
width: 120px;
width: 120px;
height: 100px;
height: 100px;
background: #E6E6E6;
background: #E6E6E6;
position: relative;
}
}
.item-content{
.item-content{
display: flex;
display: flex;
align-items: center;
align-items: center;
flex: 1;
flex: 1;
padding: 12px 14px 11px 16px;
padding: 12px 14px 11px 16px;
}
}
}
}
}
}
...
...
pages/flyingHandService/examination/components/mockExam/assets/kh.jpg
0 → 100644
浏览文件 @
278b3d83
138.3 KB
pages/flyingHandService/examination/components/mockExam/index.tsx
浏览文件 @
278b3d83
import
React
,
{
useEffect
,
useState
}
from
'react'
import
React
,
{
useEffect
,
useState
}
from
'react'
import
{
Box
}
from
'./styled'
import
{
Box
}
from
'./styled'
import
Image
from
'next/image'
import
kh
from
'./assets/kh.jpg'
interface
MockExamType
{
interface
MockExamType
{
}
}
...
@@ -16,7 +17,7 @@ export default function MockExam() {
...
@@ -16,7 +17,7 @@ export default function MockExam() {
<
div
className=
"content"
>
<
div
className=
"content"
>
{
list
?.
map
((
item
,
i
)
=>
(
{
list
?.
map
((
item
,
i
)
=>
(
<
div
key=
{
i
}
className=
"item"
>
<
div
key=
{
i
}
className=
"item"
>
<
div
className=
"img-box"
></
div
>
<
div
className=
"img-box"
><
Image
src=
{
kh
.
src
}
fill
alt=
'#'
></
Image
><
/
div
>
<
div
className=
"item-content"
>
<
div
className=
"item-content"
>
<
div
className=
"top"
>
云飞手行业认证考核
</
div
>
<
div
className=
"top"
>
云飞手行业认证考核
</
div
>
<
div
className=
"bottom"
>
<
div
className=
"bottom"
>
...
...
pages/flyingHandService/examination/components/mockExam/styled.tsx
浏览文件 @
278b3d83
...
@@ -27,6 +27,7 @@ export const Box = styled.div`
...
@@ -27,6 +27,7 @@ export const Box = styled.div`
width: 120px;
width: 120px;
height: 100px;
height: 100px;
background: #E6E6E6;
background: #E6E6E6;
position: relative;
}
}
.item-content{
.item-content{
display: flex;
display: flex;
...
...
pages/flyingHandService/index.page.tsx
浏览文件 @
278b3d83
...
@@ -7,6 +7,8 @@ import Layout from "~/components/layout";
...
@@ -7,6 +7,8 @@ import Layout from "~/components/layout";
import
ContentBox
from
"~/components/contentBox"
;
import
ContentBox
from
"~/components/contentBox"
;
import
api
,
{
Flying
,
SkillsType
,
RegionResp
}
from
"./api"
;
import
api
,
{
Flying
,
SkillsType
,
RegionResp
}
from
"./api"
;
import
{
useRouter
}
from
"next/router"
;
import
{
useRouter
}
from
"next/router"
;
import
{
useUser
}
from
"~/lib/hooks"
;
import
LoginModal
from
"~/components/loginModal"
;
interface
FilterInfoParams
{
interface
FilterInfoParams
{
regionId
?:
number
;
regionId
?:
number
;
flightSkillsId
?:
number
;
flightSkillsId
?:
number
;
...
@@ -16,6 +18,8 @@ interface FilterInfoParams {
...
@@ -16,6 +18,8 @@ interface FilterInfoParams {
export
default
function
FlyingHandService
()
{
export
default
function
FlyingHandService
()
{
const
{
Option
}
=
Select
const
{
Option
}
=
Select
const
router
=
useRouter
();
const
router
=
useRouter
();
const
userInfo
=
useUser
();
//获取信息
const
[
openLoginModal
,
setOpenLoginModal
]
=
useState
(
false
);
//登录modal
const
[
list
,
setList
]
=
useState
([
const
[
list
,
setList
]
=
useState
([
"https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/540X844-1(1).jpg"
,
"https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/540X844-1(1).jpg"
,
"https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/540X844(1).jpg"
,
"https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/540X844(1).jpg"
,
...
@@ -54,8 +58,7 @@ export default function FlyingHandService() {
...
@@ -54,8 +58,7 @@ export default function FlyingHandService() {
<
Image
<
Image
src=
{
`${item.videoUrl}?x-oss-process=video/snapshot,t_1000,m_fast`
}
src=
{
`${item.videoUrl}?x-oss-process=video/snapshot,t_1000,m_fast`
}
alt=
"#"
alt=
"#"
width=
{
220
}
fill
height=
{
160
}
/>
/>
</
div
>
</
div
>
<
div
className=
"item-bottom"
>
<
div
className=
"item-bottom"
>
...
@@ -133,10 +136,19 @@ export default function FlyingHandService() {
...
@@ -133,10 +136,19 @@ export default function FlyingHandService() {
})
||
[]
})
||
[]
);
);
setCount
(
res
.
result
?.
totalCount
||
0
);
setCount
(
res
.
result
?.
totalCount
||
0
);
clearRouter
()
});
});
},
[
abort
]);
},
[
abort
]);
const
clearRouter
=
()
=>
{
if
(
Object
.
keys
(
router
.
query
).
length
)
{
router
.
query
=
{}
router
.
replace
(
router
.
pathname
)
}
}
const
onProvinceChange
=
(
value
:
number
)
=>
{
const
onProvinceChange
=
(
value
:
number
)
=>
{
clearRouter
()
if
(
value
)
{
if
(
value
)
{
setFlightDefault
(
value
)
setFlightDefault
(
value
)
}
else
{
}
else
{
...
@@ -151,6 +163,7 @@ export default function FlyingHandService() {
...
@@ -151,6 +163,7 @@ export default function FlyingHandService() {
};
};
const
onChange
=
(
value
:
any
)
=>
{
const
onChange
=
(
value
:
any
)
=>
{
clearRouter
()
if
(
value
)
{
if
(
value
)
{
setSkillsDefault
([
value
])
setSkillsDefault
([
value
])
}
else
{
}
else
{
...
@@ -165,6 +178,7 @@ export default function FlyingHandService() {
...
@@ -165,6 +178,7 @@ export default function FlyingHandService() {
};
};
const
onChangeRegion
=
(
value
:
any
)
=>
{
const
onChangeRegion
=
(
value
:
any
)
=>
{
clearRouter
()
setFilterParams
((
props
)
=>
{
setFilterParams
((
props
)
=>
{
return
{
return
{
...
props
,
...
props
,
...
@@ -314,7 +328,7 @@ export default function FlyingHandService() {
...
@@ -314,7 +328,7 @@ export default function FlyingHandService() {
<
Button
<
Button
type=
"primary"
type=
"primary"
className=
"btn"
className=
"btn"
onClick=
{
()
=>
setIsModalOpen
(
true
)
}
onClick=
{
()
=>
userInfo
?.
id
?
setIsModalOpen
(
true
)
:
setOpenLoginModal
(
true
)
}
>
>
报名学习课程
报名学习课程
</
Button
>
</
Button
>
...
@@ -433,6 +447,10 @@ export default function FlyingHandService() {
...
@@ -433,6 +447,10 @@ export default function FlyingHandService() {
}
}
}
}
rightRenderDom=
{
{
columns
:
rightDomList
}
}
rightRenderDom=
{
{
columns
:
rightDomList
}
}
/>
/>
<
LoginModal
open=
{
openLoginModal
}
onCancel=
{
()
=>
setOpenLoginModal
(
false
)
}
></
LoginModal
>
</
Box
>
</
Box
>
</
Layout
>
</
Layout
>
);
);
...
...
pages/flyingHandService/styled.tsx
浏览文件 @
278b3d83
...
@@ -51,6 +51,7 @@ export const Box = styled.div`
...
@@ -51,6 +51,7 @@ export const Box = styled.div`
background-color: #e6e6e6;
background-color: #e6e6e6;
border-radius: 6px 6px 0px 0px;
border-radius: 6px 6px 0px 0px;
overflow: hidden;
overflow: hidden;
position: relative;
}
}
&-bottom {
&-bottom {
padding: 9px 12px 12px;
padding: 9px 12px 12px;
...
...
pages/home/waterfallFlowBody/components/map/moreServicePoints/index.page.tsx
浏览文件 @
278b3d83
...
@@ -213,13 +213,13 @@ export default function MoreServicePoints() {
...
@@ -213,13 +213,13 @@ export default function MoreServicePoints() {
onClick=
{
()
=>
mapEntiy
(
1
)
}
onClick=
{
()
=>
mapEntiy
(
1
)
}
className=
{
`item ${mapItem === 1 ? "active" : ""}`
}
className=
{
`item ${mapItem === 1 ? "active" : ""}`
}
>
>
租赁
网点
培训
网点
</
div
>
</
div
>
<
div
<
div
onClick=
{
()
=>
mapEntiy
(
2
)
}
onClick=
{
()
=>
mapEntiy
(
2
)
}
className=
{
`item ${mapItem === 2 ? "active" : ""}`
}
className=
{
`item ${mapItem === 2 ? "active" : ""}`
}
>
>
培训
网点
租赁
网点
</
div
>
</
div
>
<
div
<
div
onClick=
{
()
=>
mapEntiy
(
3
)
}
onClick=
{
()
=>
mapEntiy
(
3
)
}
...
...
pages/home/waterfallFlowBody/components/rotationChart/index.tsx
浏览文件 @
278b3d83
...
@@ -21,7 +21,7 @@ export default function RotationChart() {
...
@@ -21,7 +21,7 @@ export default function RotationChart() {
{
list
.
map
((
item
)
=>
(
{
list
.
map
((
item
)
=>
(
<
div
key=
{
item
}
>
<
div
key=
{
item
}
>
<
h3
className=
"contentStyle"
>
<
h3
className=
"contentStyle"
>
<
Image
src=
{
item
}
alt=
"error"
width=
{
806
}
height=
{
200
}
/>
<
Image
src=
{
item
}
alt=
"error"
fill
/>
</
h3
>
</
h3
>
</
div
>
</
div
>
))
}
))
}
...
...
pages/home/waterfallFlowBody/components/rotationChart/styled.tsx
浏览文件 @
278b3d83
...
@@ -39,5 +39,6 @@ export const Box = styled.div`
...
@@ -39,5 +39,6 @@ export const Box = styled.div`
line-height: 100px;
line-height: 100px;
text-align: center;
text-align: center;
background: #364d79;
background: #364d79;
position: relative;
}
}
`
;
`
;
pages/home/waterfallFlowBody/index.tsx
浏览文件 @
278b3d83
...
@@ -23,7 +23,8 @@ import {
...
@@ -23,7 +23,8 @@ import {
listNewsApi
,
listNewsApi
,
}
from
"./api"
;
}
from
"./api"
;
import
{
BaseOptionType
,
DefaultOptionType
}
from
"antd/es/select"
;
import
{
BaseOptionType
,
DefaultOptionType
}
from
"antd/es/select"
;
import
{
useUser
}
from
"~/lib/hooks"
;
import
LoginModal
from
"~/components/loginModal"
;
interface
ColumnsType
{
interface
ColumnsType
{
title
:
string
;
title
:
string
;
router
:
string
;
router
:
string
;
...
@@ -31,7 +32,8 @@ interface ColumnsType {
...
@@ -31,7 +32,8 @@ interface ColumnsType {
export
default
function
WaterfallFlowBody
()
{
export
default
function
WaterfallFlowBody
()
{
const
router
=
useRouter
();
const
router
=
useRouter
();
const
userInfo
=
useUser
();
//获取信息
const
[
openLoginModal
,
setOpenLoginModal
]
=
useState
(
false
);
//登录modal
const
[
list
,
setList
]
=
useState
([
const
[
list
,
setList
]
=
useState
([
"中国人寿"
,
"中国人寿"
,
"中国平安"
,
"中国平安"
,
...
@@ -254,37 +256,43 @@ export default function WaterfallFlowBody() {
...
@@ -254,37 +256,43 @@ export default function WaterfallFlowBody() {
},
[]);
},
[]);
const
routerPath
=
(
index
:
number
,
item
?:
AllType
)
=>
{
const
routerPath
=
(
index
:
number
,
item
?:
AllType
)
=>
{
if
(
index
===
0
||
index
===
1
||
index
===
3
||
index
===
4
)
{
if
(
item
&&
(
index
===
0
||
index
===
1
||
index
===
3
||
index
===
4
)
)
{
router
.
push
({
pathname
:
columns
[
index
].
router
,
query
:
{
[
item
?.
type
!
]:
item
?.
id
!
,
name
:
item
?.
name
||
item
?.
appName
||
item
?.
skillsName
},
});
}
else
{
router
.
push
({
router
.
push
({
pathname
:
columns
[
index
].
router
,
pathname
:
columns
[
index
].
router
,
query
:
{
[
item
?.
type
!
]:
item
?.
id
!
},
});
});
}
}
};
};
const
handleTenderApply
=
async
(
item
:
NewsTenderType
)
=>
{
const
handleTenderApply
=
async
(
item
:
NewsTenderType
)
=>
{
if
(
item
.
apply
)
return
;
if
(
item
.
apply
)
return
;
message
.
success
(
"申请成功"
)
if
(
userInfo
?.
id
)
{
item
.
apply
=
1
let
res
=
await
listNewsApi
.
tenderApply
({
// let res = await listNewsApi.tenderApply({
tenderInfoId
:
item
.
id
,
// tenderInfoId: item.id,
tenderNewsId
:
item
.
tenderNewsId
,
// tenderNewsId: item.tenderNewsId,
userAccountId
:
userInfo
?.
id
,
// userAccountId: 0,
})
// })
try
{
// try{
if
(
res
.
code
===
"200"
)
{
// if (res.code==="200") {
message
.
success
(
"申请成功"
)
// message.success("申请成功")
let
res8
=
await
listNewsApi
.
listNewTenderInfo
({
// let res8 = await listNewsApi.listNewTenderInfo({
pageNo
:
1
,
// pageNo: 1,
pageSize
:
6
,
// pageSize: 6,
});
// });
setRightBottomDomList
(
rightDom2
(
res8
.
result
?.
list
!
));
// setRightBottomDomList(rightDom2(res8.result?.list!));
}
else
{
// }else{
message
.
error
(
res
.
message
)
// message.error(res.message)
}
// }
}
catch
(
e
){
// }catch(e){
console
.
log
(
e
);
// console.log(e);
}
// }
}
else
{
setOpenLoginModal
(
true
)
}
}
}
const
leftDom
=
(
const
leftDom
=
(
...
@@ -451,6 +459,10 @@ export default function WaterfallFlowBody() {
...
@@ -451,6 +459,10 @@ export default function WaterfallFlowBody() {
],
],
}
}
}
}
/>
/>
<
LoginModal
open=
{
openLoginModal
}
onCancel=
{
()
=>
setOpenLoginModal
(
false
)
}
></
LoginModal
>
</
Box
>
</
Box
>
);
);
}
}
pages/jobServices/detail/api/index.tsx
浏览文件 @
278b3d83
...
@@ -17,7 +17,9 @@ export interface JobDetail {
...
@@ -17,7 +17,9 @@ export interface JobDetail {
contentVideo
?:
string
|
null
,
contentVideo
?:
string
|
null
,
star
?:
number
,
star
?:
number
,
img
?:
string
|
null
,
img
?:
string
|
null
,
type
?:
number
type
?:
number
,
name
?:
string
,
time
?:
number
|
string
}
}
export
interface
ListPageJobInfoResp
{
export
interface
ListPageJobInfoResp
{
...
...
pages/jobServices/detail/components/evaluate/assets/1.webp
0 → 100644
浏览文件 @
278b3d83
File added
pages/jobServices/detail/components/evaluate/assets/2.webp
0 → 100644
浏览文件 @
278b3d83
File added
pages/jobServices/detail/components/evaluate/assets/3.webp
0 → 100644
浏览文件 @
278b3d83
File added
pages/jobServices/detail/components/evaluate/assets/4.webp
0 → 100644
浏览文件 @
278b3d83
File added
pages/jobServices/detail/components/evaluate/assets/5.webp
0 → 100644
浏览文件 @
278b3d83
File added
pages/jobServices/detail/components/evaluate/assets/6.webp
0 → 100644
浏览文件 @
278b3d83
File added
pages/jobServices/detail/components/evaluate/assets/7.webp
0 → 100644
浏览文件 @
278b3d83
File added
pages/jobServices/detail/components/evaluate/assets/8.webp
0 → 100644
浏览文件 @
278b3d83
File added
pages/jobServices/detail/components/evaluate/assets/9.webp
0 → 100644
浏览文件 @
278b3d83
File added
pages/jobServices/detail/components/evaluate/index.tsx
浏览文件 @
278b3d83
import
React
from
"react"
;
import
React
,
{
useEffect
}
from
"react"
;
import
{
Box
}
from
"./styled"
;
import
{
Box
}
from
"./styled"
;
import
{
Rate
}
from
"antd"
;
import
{
Rate
}
from
"antd"
;
import
Image
from
"next/image"
;
import
Image
from
"next/image"
;
import
{
JobDetail
}
from
"../../api"
;
import
{
JobDetail
}
from
"../../api"
;
import
pic1
from
'./assets/1.webp'
import
pic2
from
'./assets/2.webp'
import
pic3
from
'./assets/3.webp'
import
pic4
from
'./assets/4.webp'
import
pic5
from
'./assets/5.webp'
import
pic6
from
'./assets/6.webp'
import
pic7
from
'./assets/7.webp'
import
pic8
from
'./assets/8.webp'
import
pic9
from
'./assets/9.webp'
import
Moment
from
'moment'
;
const
imgList
=
[
pic1
,
pic2
,
pic3
,
pic4
,
pic5
,
pic6
,
pic7
,
pic8
,
pic9
]
const
name
=
[
"浮生若梦"
,
"惜君嫣云"
,
"抹茶味儿的菇凉"
,
"清歌缈缦"
,
"清新雅致"
,
"呆到深处自然萌"
,
"各不打扰"
,
"无声飞雪"
,
"我一生下来就是个无齿的人"
,
"浅笑小倔强"
,
"乱了夏末蓝了海"
,
"初夏知鸣"
]
interface
EvaluateType
{
interface
EvaluateType
{
evaluateInfo
:
Array
<
JobDetail
>
;
evaluateInfo
:
Array
<
JobDetail
>
;
}
}
export
default
function
Evaluate
(
props
:
EvaluateType
)
{
export
default
function
Evaluate
(
props
:
EvaluateType
)
{
const
list
=
[{},
{},
{},
{}];
const
{
evaluateInfo
}
=
props
;
const
{
evaluateInfo
}
=
props
;
console
.
log
(
evaluateInfo
);
let
listVal
:
Array
<
JobDetail
>
=
JSON
.
parse
(
JSON
.
stringify
(
evaluateInfo
))
listVal
.
map
((
item
,
index
)
=>
{
item
.
img
=
imgList
[
Math
.
floor
(
Math
.
random
()
*
9
)]?.
src
item
.
name
=
name
[
Math
.
floor
(
Math
.
random
()
*
12
)]
console
.
log
(
Date
.
now
()
-
(
index
*
100000
));
item
.
time
=
Date
.
now
()
-
(
index
*
8
e7
)
})
return
(
return
(
<
Box
>
<
Box
>
{
evaluateInfo
?.
map
((
item
,
i
)
=>
(
{
listVal
?.
map
((
item
,
i
)
=>
(
<
div
key=
{
item
.
id
}
className=
"item"
>
<
div
key=
{
item
.
id
}
className=
"item"
>
<
div
className=
"item-user"
>
<
div
className=
"item-user"
>
<
div
className=
"item-user-image"
>
<
div
className=
"item-user-image"
>
...
@@ -22,25 +65,25 @@ export default function Evaluate(props: EvaluateType) {
...
@@ -22,25 +65,25 @@ export default function Evaluate(props: EvaluateType) {
className=
"image"
className=
"image"
height=
{
42
}
height=
{
42
}
width=
{
42
}
width=
{
42
}
src=
{
item
.
img
?
item
.
img
:
""
}
src=
{
item
.
img
?
item
.
img
:
''
}
alt=
"#"
alt=
"#"
/>
/>
</
div
>
</
div
>
<
div
className=
"item-user-info"
>
<
div
className=
"item-user-info"
>
<
div
className=
"item-user-info-name"
>
{
item
.
star
}
</
div
>
<
div
className=
"item-user-info-name"
>
{
item
.
name
}
</
div
>
<
Rate
style=
{
{
height
:
30
}
}
disabled
defaultValue=
{
item
.
star
}
/>
<
Rate
style=
{
{
height
:
30
}
}
disabled
defaultValue=
{
item
.
star
}
/>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
"item-content"
>
<
div
className=
"item-content"
>
<
div
className=
"item-content-label"
>
{
item
.
content
}
</
div
>
<
div
className=
"item-content-label"
>
{
item
.
content
}
</
div
>
<
div
className=
"item-content-image"
>
<
div
className=
"item-content-image"
>
{
item
.
contentImgs
?.
map
((
item
)
=>
(
{
item
.
contentImgs
?.
length
?
item
.
contentImgs
?.
map
((
item
)
=>
(
<
div
key=
{
item
}
className=
"image-item"
>
<
div
key=
{
item
}
className=
"image-item"
>
<
Image
width=
{
80
}
height=
{
80
}
src=
{
item
}
alt=
"error"
/>
<
Image
width=
{
80
}
height=
{
80
}
src=
{
item
}
alt=
"error"
/>
</
div
>
</
div
>
))
}
))
:
null
}
</
div
>
</
div
>
<
div
className=
"item-content-time"
>
3月4日
</
div
>
<
div
className=
"item-content-time"
>
{
Moment
(
item
.
time
).
format
(
'YYYY-MM-DD'
)
}
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
))
}
))
}
...
...
pages/jobServices/detail/components/evaluate/styled.tsx
浏览文件 @
278b3d83
...
@@ -9,7 +9,7 @@ export const Box = styled.div`
...
@@ -9,7 +9,7 @@ export const Box = styled.div`
overflow-y: auto;
overflow-y: auto;
height: 800px;
height: 800px;
.item{
.item{
height: 1
8
0px;
height: 1
2
0px;
&-user{
&-user{
display: flex;
display: flex;
align-items: center;
align-items: center;
...
@@ -57,7 +57,6 @@ export const Box = styled.div`
...
@@ -57,7 +57,6 @@ export const Box = styled.div`
}
}
}
}
&-time{
&-time{
width: 45px;
height: 20px;
height: 20px;
font-size: 14px;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-family: PingFangSC-Regular, PingFang SC;
...
...
pages/jobServices/index.page.tsx
浏览文件 @
278b3d83
import
React
,
{
useEffect
,
useState
}
from
"react"
;
import
React
,
{
useEffect
,
useState
,
useRef
}
from
"react"
;
import
{
Box
}
from
"./styled"
;
import
{
Box
}
from
"./styled"
;
import
{
Pagination
}
from
"antd"
;
import
{
Pagination
}
from
"antd"
;
import
Layout
from
"~/components/layout"
;
import
Layout
from
"~/components/layout"
;
...
@@ -18,6 +18,7 @@ interface ImageListType {}
...
@@ -18,6 +18,7 @@ interface ImageListType {}
export
default
function
JobServices
()
{
export
default
function
JobServices
()
{
const
router
=
useRouter
();
const
router
=
useRouter
();
const
filter
=
useRef
<
any
>
()
const
[
list
,
setList
]
=
useState
([
const
[
list
,
setList
]
=
useState
([
"https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/540X844-2(1).jpg"
,
"https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/540X844-2(1).jpg"
,
// "https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/665512fd-12e6-49a9-93c1-f9dcd0e82083.jpg",
// "https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/665512fd-12e6-49a9-93c1-f9dcd0e82083.jpg",
...
@@ -92,15 +93,19 @@ export default function JobServices() {
...
@@ -92,15 +93,19 @@ export default function JobServices() {
//端口列表请求
//端口列表请求
useEffect
(()
=>
{
useEffect
(()
=>
{
let
queryVal
=
JSON
.
parse
(
JSON
.
stringify
(
router
.
query
));
let
queryVal
=
JSON
.
parse
(
JSON
.
stringify
(
router
.
query
));
const
idArr
=
filter
.
current
.
idArr
let
rs
for
(
const
key
in
queryVal
)
{
for
(
const
key
in
queryVal
)
{
queryVal
[
key
]
=
Number
(
queryVal
[
key
]);
if
(
idArr
.
includes
(
key
))
{
rs
=
{[
key
]:
router
.
query
[
key
]}
}
}
}
api
api
.
listPageJobServicesInfo
(
.
listPageJobServicesInfo
(
{
{
...
filterResult
,
...
filterResult
,
...
pageParams
,
...
pageParams
,
...
queryVal
,
...
rs
,
},
},
{
{
signal
:
abort
?.
signal
,
signal
:
abort
?.
signal
,
...
@@ -124,8 +129,6 @@ export default function JobServices() {
...
@@ -124,8 +129,6 @@ export default function JobServices() {
setFilterResult
(
adapterFilterResult
);
setFilterResult
(
adapterFilterResult
);
};
};
const
[
query
,
setQuery
]
=
useState
<
string
|
string
[]
>
();
useEffect
(()
=>
{
useEffect
(()
=>
{
setRightDomList
(
setRightDomList
(
list
.
map
((
item
)
=>
{
list
.
map
((
item
)
=>
{
...
@@ -135,12 +138,14 @@ export default function JobServices() {
...
@@ -135,12 +138,14 @@ export default function JobServices() {
},
[]);
},
[]);
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
router
.
query
&&
Object
.
keys
(
router
.
query
).
length
)
{
let
queryVal
=
JSON
.
parse
(
JSON
.
stringify
(
router
.
query
));
let
queryVal
=
JSON
.
parse
(
JSON
.
stringify
(
router
.
query
));
if
(
router
.
query
)
{
const
idArr
=
filter
.
current
.
idArr
for
(
const
key
in
queryVal
)
{
for
(
const
key
in
queryVal
)
{
queryVal
[
key
]
=
Number
(
queryVal
[
key
]);
if
(
idArr
.
includes
(
key
))
{
setFilterResult
({
[
key
]:
router
.
query
[
key
]
});
}
}
}
setFilterResult
({
...
queryVal
});
}
}
},
[
router
]);
},
[
router
]);
...
@@ -151,6 +156,7 @@ export default function JobServices() {
...
@@ -151,6 +156,7 @@ export default function JobServices() {
types=
{
[
"地域"
,
"行业"
,
"应用"
]
}
types=
{
[
"地域"
,
"行业"
,
"应用"
]
}
showResultItem
showResultItem
onChange=
{
onFilterChange
}
onChange=
{
onFilterChange
}
ref=
{
filter
}
></
Filter
>
></
Filter
>
<
div
style=
{
{
marginTop
:
10
}
}
>
<
div
style=
{
{
marginTop
:
10
}
}
>
<
ContentBox
<
ContentBox
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论