Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
web
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
web
Commits
efc13e6d
提交
efc13e6d
authored
5月 15, 2023
作者:
曹云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
改-四个模块渲染条件
上级
8a0a3306
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
456 行增加
和
35 行删除
+456
-35
babel.config.json
babel.config.json
+0
-0
index.tsx
components/contentBox/index.tsx
+2
-3
interface.ts
components/contentBox/interface.ts
+24
-2
index.tsx
components/contentBox/left/index.tsx
+9
-14
index.tsx
components/contentBox/right/index.tsx
+9
-3
index.tsx
pages/equipmentLeasing/index.tsx
+153
-5
styled.tsx
pages/equipmentLeasing/styled.tsx
+7
-0
index.tsx
pages/flyingHandService/index.tsx
+62
-1
styled.tsx
pages/flyingHandService/styled.tsx
+35
-0
index.tsx
pages/home/rotationChart/index.tsx
+4
-1
styled.tsx
pages/home/rotationChart/styled.tsx
+5
-2
index.tsx
pages/home/waterfallFlowBody/index.tsx
+1
-1
index.tsx
pages/jobServices/index.tsx
+145
-3
没有找到文件。
.babelrc
→
babel.config.json
浏览文件 @
efc13e6d
File moved
components/contentBox/index.tsx
浏览文件 @
efc13e6d
...
...
@@ -5,11 +5,10 @@ import Right from './right';
import
{
BoxProps
}
from
'./interface'
;
export
default
function
ContentBox
(
props
:
BoxProps
)
{
console
.
log
(
props
);
return
(
<
Box
>
<
Left
{
...
props
}
/>
<
Right
/>
<
Left
boxIndex=
{
props
.
boxIndex
}
leftRenderDom=
{
props
.
leftRenderDom
}
/>
<
Right
rightRenderDom=
{
props
.
rightRenderDom
}
/>
</
Box
>
)
}
components/contentBox/interface.ts
浏览文件 @
efc13e6d
export
interface
leftBoxProps
{
boxIndex
:
number
,
leftRenderDom
:
{
noFor
?:
boolean
,
RenderDom
:
JSX
.
Element
},
}
export
interface
rightBoxProps
{
rightRenderDom
:
{
noFor
?:
boolean
,
RenderDom
:
JSX
.
Element
}
}
export
interface
BoxProps
{
boxIndex
:
number
,
RenderDom
:
JSX
.
Element
boxIndex
:
number
,
leftRenderDom
:
{
noFor
?:
boolean
,
RenderDom
:
JSX
.
Element
},
rightRenderDom
:
{
noFor
?:
boolean
,
RenderDom
:
JSX
.
Element
}
}
\ No newline at end of file
components/contentBox/left/index.tsx
浏览文件 @
efc13e6d
import
React
from
'react'
;
import
{
Box
}
from
'./styled'
;
import
{
BoxProps
}
from
'../interface'
;
export
default
function
Left
(
props
:
BoxProps
)
{
const
{
boxIndex
,
RenderDom
}
=
props
import
{
leftBoxProps
}
from
'../interface'
;
export
default
function
Left
(
props
:
leftBoxProps
)
{
const
{
boxIndex
,
leftRenderDom
}
=
props
return
(
<
Box
index=
{
boxIndex
}
>
{
RenderDom
}
{
RenderDom
}
{
RenderDom
}
{
RenderDom
}
{
RenderDom
}
{
RenderDom
}
{
RenderDom
}
{
RenderDom
}
{
RenderDom
}
{
RenderDom
}
{
leftRenderDom
.
noFor
?
<
div
>
111111
</
div
>
:
leftRenderDom
.
RenderDom
}
</
Box
>
)
}
components/contentBox/right/index.tsx
浏览文件 @
efc13e6d
import
React
from
'react'
;
import
{
Box
}
from
'./styled'
;
export
default
function
Right
()
{
import
{
rightBoxProps
}
from
'../interface'
;
export
default
function
Right
(
props
:
rightBoxProps
)
{
const
{
rightRenderDom
}
=
props
return
(
<
Box
>
<
div
className=
'item'
style=
{
{
height
:
170
,
backgroundColor
:
"blue"
}
}
>
right
</
div
>
<
div
className=
'item'
style=
{
{
height
:
170
,
backgroundColor
:
"blue"
}
}
>
right
</
div
>
{
rightRenderDom
.
noFor
?
<
div
>
111111
</
div
>
:
rightRenderDom
.
RenderDom
}
</
Box
>
)
}
pages/equipmentLeasing/index.tsx
浏览文件 @
efc13e6d
import
React
from
'react'
;
import
React
,
{
useEffect
,
useState
}
from
"react"
;
import
{
Box
}
from
'./styled'
;
import
{
Button
,
Select
,
Space
,
Tag
}
from
"antd"
;
import
Layout
from
"~/components/layout"
;
import
ContentBox
from
'~/components/contentBox'
;
export
default
function
EquipmentLeasing
()
{
return
(
<
Layout
>
<
div
>
EquipmentLeasing
</
div
>
</
Layout
>);
const
Dom
=
<
div
className=
'item'
style=
{
{
height
:
343
,
backgroundColor
:
"#ccc"
}
}
>
12312312
</
div
>
const
[
productList
,
setProductList
]
=
useState
(
Array
<
{}
>
);
useEffect
(()
=>
{
setProductList
([{},
{},
{},
{},
{},
{}]);
},
[]);
const
onProvinceChange
=
(
value
:
string
)
=>
{
console
.
log
(
"省"
,
value
);
};
const
onCityChange
=
(
value
:
string
)
=>
{
console
.
log
(
"市"
,
value
);
};
const
onMoreChange
=
(
value
:
string
)
=>
{
console
.
log
(
"更多"
,
value
);
};
const
onCloseTag
=
(
e
:
React
.
MouseEvent
<
HTMLElement
,
MouseEvent
>
)
=>
{
console
.
log
(
"删除"
,
e
);
};
return
(
<
Layout
>
<
Box
>
<
div
className=
"filter-wrap"
style=
{
{
marginBottom
:
"11px"
}
}
>
<
div
className=
"filter-item"
>
<
div
className=
"filter-item__title"
>
地域:
</
div
>
<
div
className=
"filter-item-main"
>
<
Space
size=
{
40
}
>
<
Select
bordered=
{
false
}
dropdownMatchSelectWidth=
{
false
}
placeholder=
"选择省"
onChange=
{
onProvinceChange
}
options=
{
[
{
value
:
"jack"
,
label
:
"Jack"
},
{
value
:
"lucy"
,
label
:
"Lucy"
},
{
value
:
"Yiminghe"
,
label
:
"yiminghe"
},
{
value
:
"disabled"
,
label
:
"Disabled"
,
disabled
:
true
},
]
}
/>
<
Select
bordered=
{
false
}
dropdownMatchSelectWidth=
{
false
}
placeholder=
"选择市"
onChange=
{
onCityChange
}
options=
{
[
{
value
:
"jack"
,
label
:
"Jack"
},
{
value
:
"lucy"
,
label
:
"Lucy"
},
{
value
:
"Yiminghe"
,
label
:
"yiminghe"
},
{
value
:
"disabled"
,
label
:
"Disabled"
,
disabled
:
true
},
]
}
/>
</
Space
>
</
div
>
</
div
>
</
div
>
<
div
className=
"filter-wrap"
style=
{
{
marginBottom
:
24
}
}
>
<
div
className=
"filter-item"
>
<
div
className=
"filter-item__title"
>
类目:
</
div
>
<
div
className=
"filter-item-main"
>
<
Space
size=
{
40
}
>
<
Button
type=
"link"
>
不限
</
Button
>
<
Button
type=
"link"
>
无人机
</
Button
>
<
Button
type=
"link"
>
挂载
</
Button
>
<
Button
type=
"link"
>
地面站
</
Button
>
</
Space
>
<
Select
placeholder=
"更多"
onChange=
{
onMoreChange
}
bordered=
{
false
}
dropdownMatchSelectWidth=
{
false
}
options=
{
[
{
value
:
"jack"
,
label
:
"Jack"
},
{
value
:
"lucy"
,
label
:
"Lucy"
},
{
value
:
"Yiminghe"
,
label
:
"yiminghe"
},
{
value
:
"disabled"
,
label
:
"Disabled"
,
disabled
:
true
},
]
}
/>
</
div
>
</
div
>
<
div
className=
"filter-item"
>
<
div
className=
"filter-item__title"
>
品牌:
</
div
>
<
div
className=
"filter-item-main"
>
<
Space
size=
{
40
}
>
<
Button
type=
"link"
>
不限
</
Button
>
<
Button
type=
"link"
>
无人机
</
Button
>
<
Button
type=
"link"
>
挂载
</
Button
>
<
Button
type=
"link"
>
地面站
</
Button
>
</
Space
>
<
Select
placeholder=
"更多"
onChange=
{
onMoreChange
}
bordered=
{
false
}
dropdownMatchSelectWidth=
{
false
}
options=
{
[
{
value
:
"jack"
,
label
:
"Jack"
},
{
value
:
"lucy"
,
label
:
"Lucy"
},
{
value
:
"Yiminghe"
,
label
:
"yiminghe"
},
{
value
:
"disabled"
,
label
:
"Disabled"
,
disabled
:
true
},
]
}
/>
</
div
>
</
div
>
<
div
className=
"filter-item"
>
<
div
className=
"filter-item__title"
>
型号:
</
div
>
<
div
className=
"filter-item-main"
>
<
Space
size=
{
40
}
>
<
Button
type=
"link"
>
不限
</
Button
>
<
Button
type=
"link"
>
无人机
</
Button
>
<
Button
type=
"link"
>
挂载
</
Button
>
<
Button
type=
"link"
>
地面站
</
Button
>
</
Space
>
<
Select
placeholder=
"更多"
onChange=
{
onMoreChange
}
bordered=
{
false
}
dropdownMatchSelectWidth=
{
false
}
options=
{
[
{
value
:
"jack"
,
label
:
"Jack"
},
{
value
:
"lucy"
,
label
:
"Lucy"
},
{
value
:
"Yiminghe"
,
label
:
"yiminghe"
},
{
value
:
"disabled"
,
label
:
"Disabled"
,
disabled
:
true
},
]
}
/>
</
div
>
</
div
>
<
div
className=
"filter-item"
>
<
div
className=
"filter-item__title"
>
已选:
</
div
>
<
div
className=
"filter-item-main"
>
<
Space
size=
{
10
}
>
<
Tag
closable
onClose=
{
onCloseTag
}
>
无人机
</
Tag
>
<
Tag
closable
onClose=
{
onCloseTag
}
>
无人机
</
Tag
>
</
Space
>
</
div
>
</
div
>
</
div
>
<
ContentBox
boxIndex=
{
4
}
leftRenderDom=
{
{
RenderDom
:
Dom
}
}
rightRenderDom=
{
{
noFor
:
true
,
RenderDom
:
Dom
}
}
/>
</
Box
>
</
Layout
>
)
}
pages/equipmentLeasing/styled.tsx
0 → 100644
浏览文件 @
efc13e6d
import
styled
from
"styled-components"
export
const
Box
=
styled
.
div
`
box-sizing: border-box;
padding-top: 15px;
`
\ No newline at end of file
pages/flyingHandService/index.tsx
浏览文件 @
efc13e6d
import
React
from
'react'
;
import
{
Box
}
from
'./styled'
;
import
{
Button
,
Select
,
Space
,
Tag
}
from
"antd"
;
import
Layout
from
"~/components/layout"
;
import
ContentBox
from
'~/components/contentBox'
;
export
default
function
FlyingHandService
()
{
const
Dom
=
<
div
className=
'item'
style=
{
{
height
:
343
,
backgroundColor
:
"#ccc"
}
}
>
12312312
</
div
>
const
onProvinceChange
=
(
value
:
string
)
=>
{
console
.
log
(
"省"
,
value
);
};
return
(
<
Layout
>
<
div
>
FlyingHandService
</
div
>
<
Box
>
<
div
className=
'flyingTop'
>
<
div
className=
'flyingTop-left'
>
<
Space
>
<
Select
className=
'selectItem'
bordered=
{
false
}
dropdownMatchSelectWidth=
{
false
}
placeholder=
"区域"
size=
"large"
onChange=
{
onProvinceChange
}
options=
{
[
{
value
:
"jack"
,
label
:
"Jack"
},
{
value
:
"lucy"
,
label
:
"Lucy"
},
{
value
:
"Yiminghe"
,
label
:
"yiminghe"
},
{
value
:
"disabled"
,
label
:
"Disabled"
,
disabled
:
true
},
]
}
/>
<
Select
className=
'selectItem'
bordered=
{
false
}
dropdownMatchSelectWidth=
{
false
}
placeholder=
"考证"
size=
"large"
onChange=
{
onProvinceChange
}
options=
{
[
{
value
:
"jack"
,
label
:
"Jack"
},
{
value
:
"lucy"
,
label
:
"Lucy"
},
{
value
:
"Yiminghe"
,
label
:
"yiminghe"
},
{
value
:
"disabled"
,
label
:
"Disabled"
,
disabled
:
true
},
]
}
/>
<
Select
className=
'selectItem'
bordered=
{
false
}
dropdownMatchSelectWidth=
{
false
}
placeholder=
"技能"
size=
"large"
onChange=
{
onProvinceChange
}
options=
{
[
{
value
:
"jack"
,
label
:
"Jack"
},
{
value
:
"lucy"
,
label
:
"Lucy"
},
{
value
:
"Yiminghe"
,
label
:
"yiminghe"
},
{
value
:
"disabled"
,
label
:
"Disabled"
,
disabled
:
true
},
]
}
/>
</
Space
>
</
div
>
<
Button
type=
"primary"
className=
'btn'
>
报名学习课程
</
Button
>
</
div
>
<
ContentBox
boxIndex=
{
2
}
leftRenderDom=
{
{
RenderDom
:
Dom
}
}
rightRenderDom=
{
{
noFor
:
true
,
RenderDom
:
Dom
}
}
/>
</
Box
>
</
Layout
>
);
}
pages/flyingHandService/styled.tsx
0 → 100644
浏览文件 @
efc13e6d
import
styled
from
"styled-components"
export
const
Box
=
styled
.
div
`
box-sizing: border-box;
.flyingTop{
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 0;
width: 790px;
&-left{
.selectItem{
width: 120px;
background-color: #fff;
border-radius: 5px;
}
}
.btn {
width: 220px;
height: 60px;
background: linear-gradient(90deg, #278eff 0%, #0052da 100%);
border-radius: 6px;
border: 0;
font-size: 16px;
font-family: MicrosoftYaHeiUI-Bold, MicrosoftYaHeiUI;
font-weight: bold;
color: #ffffff;
&:hover {
opacity: 0.8;
}
}
}
`
\ No newline at end of file
pages/home/rotationChart/index.tsx
浏览文件 @
efc13e6d
...
...
@@ -5,7 +5,7 @@ import { Box } from "./styled"
export
default
function
RotationChart
()
{
return
(
<
Box
>
<
Carousel
autoplay
dots=
{
{
className
:
"botsBotton"
}
}
>
<
Carousel
className=
'rotationChart'
autoplay
dots=
{
{
className
:
"botsBotton"
}
}
>
<
div
>
<
h3
className=
"contentStyle"
>
1
</
h3
>
</
div
>
...
...
@@ -19,6 +19,9 @@ export default function RotationChart() {
<
h3
className=
"contentStyle"
>
4
</
h3
>
</
div
>
</
Carousel
>
<
div
>
asdasdas
</
div
>
</
Box
>
)
}
pages/home/rotationChart/styled.tsx
浏览文件 @
efc13e6d
...
...
@@ -2,9 +2,12 @@ import styled from "styled-components"
export
const
Box
=
styled
.
div
`
box-sizing: border-box;
width: 790px;
height: 490px;
margin: 15px 0 30px 0;
display: flex;
.rotationChart{
width: 790px;
margin-right: 24px;
}
.botsBotton{
li{
display: flex;
...
...
pages/home/waterfallFlowBody/index.tsx
浏览文件 @
efc13e6d
...
...
@@ -4,6 +4,6 @@ export default function WaterfallFlowBody() {
const
Dom
=
<
div
className=
'item'
style=
{
{
height
:
343
}
}
>
12312312312
</
div
>
return
<
div
>
<
ContentBox
boxIndex=
{
2
}
RenderDom=
{
Dom
}
/>
<
ContentBox
boxIndex=
{
2
}
leftRenderDom=
{
{
RenderDom
:
Dom
}
}
rightRenderDom=
{
{
noFor
:
true
,
RenderDom
:
Dom
}
}
/>
</
div
>;
}
pages/jobServices/index.tsx
浏览文件 @
efc13e6d
import
React
from
'react'
;
import
React
,
{
useEffect
,
useState
}
from
"react"
;
import
{
Box
}
from
'./styled'
;
import
{
Button
,
Select
,
Space
,
Tag
}
from
"antd"
;
import
Layout
from
"~/components/layout"
;
import
ContentBox
from
'~/components/contentBox'
;
export
default
function
JobServices
()
{
const
Dom
=
<
div
className=
'item'
style=
{
{
height
:
343
}
}
>
12312312
</
div
>
const
Dom
=
<
div
className=
'item'
style=
{
{
height
:
343
,
backgroundColor
:
"#ccc"
}
}
>
12312312
</
div
>
const
[
productList
,
setProductList
]
=
useState
(
Array
<
{}
>
);
useEffect
(()
=>
{
setProductList
([{},
{},
{},
{},
{},
{}]);
},
[]);
const
onProvinceChange
=
(
value
:
string
)
=>
{
console
.
log
(
"省"
,
value
);
};
const
onCityChange
=
(
value
:
string
)
=>
{
console
.
log
(
"市"
,
value
);
};
const
onMoreChange
=
(
value
:
string
)
=>
{
console
.
log
(
"更多"
,
value
);
};
const
onCloseTag
=
(
e
:
React
.
MouseEvent
<
HTMLElement
,
MouseEvent
>
)
=>
{
console
.
log
(
"删除"
,
e
);
};
return
(
<
Layout
>
<
Box
>
<
ContentBox
boxIndex=
{
4
}
RenderDom=
{
Dom
}
/>
<
div
className=
"filter-wrap"
style=
{
{
marginBottom
:
"11px"
}
}
>
<
div
className=
"filter-item"
>
<
div
className=
"filter-item__title"
>
地域:
</
div
>
<
div
className=
"filter-item-main"
>
<
Space
size=
{
40
}
>
<
Select
bordered=
{
false
}
dropdownMatchSelectWidth=
{
false
}
placeholder=
"选择省"
onChange=
{
onProvinceChange
}
options=
{
[
{
value
:
"jack"
,
label
:
"Jack"
},
{
value
:
"lucy"
,
label
:
"Lucy"
},
{
value
:
"Yiminghe"
,
label
:
"yiminghe"
},
{
value
:
"disabled"
,
label
:
"Disabled"
,
disabled
:
true
},
]
}
/>
<
Select
bordered=
{
false
}
dropdownMatchSelectWidth=
{
false
}
placeholder=
"选择市"
onChange=
{
onCityChange
}
options=
{
[
{
value
:
"jack"
,
label
:
"Jack"
},
{
value
:
"lucy"
,
label
:
"Lucy"
},
{
value
:
"Yiminghe"
,
label
:
"yiminghe"
},
{
value
:
"disabled"
,
label
:
"Disabled"
,
disabled
:
true
},
]
}
/>
</
Space
>
</
div
>
</
div
>
</
div
>
<
div
className=
"filter-wrap"
style=
{
{
marginBottom
:
24
}
}
>
<
div
className=
"filter-item"
>
<
div
className=
"filter-item__title"
>
行业:
</
div
>
<
div
className=
"filter-item-main"
>
<
Space
size=
{
40
}
>
<
Button
type=
"link"
>
不限
</
Button
>
<
Button
type=
"link"
>
无人机
</
Button
>
<
Button
type=
"link"
>
挂载
</
Button
>
<
Button
type=
"link"
>
地面站
</
Button
>
</
Space
>
<
Select
placeholder=
"更多"
onChange=
{
onMoreChange
}
bordered=
{
false
}
dropdownMatchSelectWidth=
{
false
}
options=
{
[
{
value
:
"jack"
,
label
:
"Jack"
},
{
value
:
"lucy"
,
label
:
"Lucy"
},
{
value
:
"Yiminghe"
,
label
:
"yiminghe"
},
{
value
:
"disabled"
,
label
:
"Disabled"
,
disabled
:
true
},
]
}
/>
</
div
>
</
div
>
<
div
className=
"filter-item"
>
<
div
className=
"filter-item__title"
>
服务:
</
div
>
<
div
className=
"filter-item-main"
>
<
Space
size=
{
40
}
>
<
Button
type=
"link"
>
不限
</
Button
>
<
Button
type=
"link"
>
无人机
</
Button
>
<
Button
type=
"link"
>
挂载
</
Button
>
<
Button
type=
"link"
>
地面站
</
Button
>
</
Space
>
<
Select
placeholder=
"更多"
onChange=
{
onMoreChange
}
bordered=
{
false
}
dropdownMatchSelectWidth=
{
false
}
options=
{
[
{
value
:
"jack"
,
label
:
"Jack"
},
{
value
:
"lucy"
,
label
:
"Lucy"
},
{
value
:
"Yiminghe"
,
label
:
"yiminghe"
},
{
value
:
"disabled"
,
label
:
"Disabled"
,
disabled
:
true
},
]
}
/>
</
div
>
</
div
>
<
div
className=
"filter-item"
>
<
div
className=
"filter-item__title"
>
应用:
</
div
>
<
div
className=
"filter-item-main"
>
<
Space
size=
{
40
}
>
<
Button
type=
"link"
>
不限
</
Button
>
<
Button
type=
"link"
>
无人机
</
Button
>
<
Button
type=
"link"
>
挂载
</
Button
>
<
Button
type=
"link"
>
地面站
</
Button
>
</
Space
>
<
Select
placeholder=
"更多"
onChange=
{
onMoreChange
}
bordered=
{
false
}
dropdownMatchSelectWidth=
{
false
}
options=
{
[
{
value
:
"jack"
,
label
:
"Jack"
},
{
value
:
"lucy"
,
label
:
"Lucy"
},
{
value
:
"Yiminghe"
,
label
:
"yiminghe"
},
{
value
:
"disabled"
,
label
:
"Disabled"
,
disabled
:
true
},
]
}
/>
</
div
>
</
div
>
<
div
className=
"filter-item"
>
<
div
className=
"filter-item__title"
>
已选:
</
div
>
<
div
className=
"filter-item-main"
>
<
Space
size=
{
10
}
>
<
Tag
closable
onClose=
{
onCloseTag
}
>
无人机
</
Tag
>
<
Tag
closable
onClose=
{
onCloseTag
}
>
无人机
</
Tag
>
</
Space
>
</
div
>
</
div
>
</
div
>
<
ContentBox
boxIndex=
{
2
}
leftRenderDom=
{
{
RenderDom
:
Dom
}
}
rightRenderDom=
{
{
noFor
:
true
,
RenderDom
:
Dom
}
}
/>
</
Box
>
</
Layout
>
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论