Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bkunyun
Commits
7f5de3c2
Commit
7f5de3c2
authored
Oct 17, 2022
by
wuyongsheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 流算子页面开发
parent
37107ee6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
67 additions
and
25 deletions
+67
-25
index.tsx
src/components/mui/MyTabs/index.tsx
+3
-3
index.module.css
...rceCenter/UserResources/WorkflowOperator/index.module.css
+21
-0
index.tsx
...s/ResourceCenter/UserResources/WorkflowOperator/index.tsx
+41
-20
index.tsx
src/views/ResourceCenter/UserResources/index.tsx
+2
-2
No files found.
src/components/mui/MyTabs/index.tsx
View file @
7f5de3c2
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-05-31 10:18:13
* @Date: 2022-05-31 10:18:13
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditTime: 2022-10-17 16:
01:41
* @LastEditTime: 2022-10-17 16:
16:42
* @FilePath: /bkunyun/src/views/Project/ProjectSetting/index.tsx
* @FilePath: /bkunyun/src/views/Project/ProjectSetting/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -14,7 +14,7 @@ import Tab from "@mui/material/Tab";
...
@@ -14,7 +14,7 @@ import Tab from "@mui/material/Tab";
import
{
ThemeProvider
,
createTheme
}
from
"@mui/material/styles"
;
import
{
ThemeProvider
,
createTheme
}
from
"@mui/material/styles"
;
import
{
TabContext
,
TabList
,
TabPanel
}
from
"@mui/lab"
;
import
{
TabContext
,
TabList
,
TabPanel
}
from
"@mui/lab"
;
import
{
Typography
}
from
"@mui/material"
;
import
{
Typography
}
from
"@mui/material"
;
import
class
n
ames
from
"classnames"
;
import
class
N
ames
from
"classnames"
;
import
styles
from
"./index.module.css"
;
import
styles
from
"./index.module.css"
;
...
@@ -165,7 +165,7 @@ const Tabs = (props: IProps) => {
...
@@ -165,7 +165,7 @@ const Tabs = (props: IProps) => {
>
>
{
title
?
(
{
title
?
(
<
span
<
span
className=
{
class
n
ames
({
className=
{
class
N
ames
({
[
styles
.
titleBox
]:
true
,
[
styles
.
titleBox
]:
true
,
[
titleClass
]:
titleClass
,
[
titleClass
]:
titleClass
,
})
}
})
}
...
...
src/views/ResourceCenter/UserResources/WorkflowOperator/index.module.css
View file @
7f5de3c2
.indexBox
{
padding
:
0
4px
;
}
.headerBox
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
margin-bottom
:
20px
;
padding
:
0
20px
;
}
.searchSelectBox
{
margin-left
:
12px
;
}
.contentBox
{
display
:
flex
;
flex-wrap
:
wrap
;
padding-left
:
20px
;
}
src/views/ResourceCenter/UserResources/WorkflowOperator/index.tsx
View file @
7f5de3c2
...
@@ -2,24 +2,29 @@
...
@@ -2,24 +2,29 @@
* @Author: 吴永生 15770852798@163.com
* @Author: 吴永生 15770852798@163.com
* @Date: 2022-10-17 14:35:11
* @Date: 2022-10-17 14:35:11
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditTime: 2022-10-17 1
4:45:31
* @LastEditTime: 2022-10-17 1
7:50:30
* @FilePath: /bkunyun/src/views/ResourceCenter/UserResources/WorkflowOperator/index.tsx
* @FilePath: /bkunyun/src/views/ResourceCenter/UserResources/WorkflowOperator/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
// 应用环境
// 应用环境
import
{
useState
}
from
"react"
;
import
{
useState
}
from
"react"
;
import
style
from
"./index.module.css"
;
import
SearchInput
from
"@/components/BusinessComponents/SearchInput"
;
import
SearchInput
from
"@/components/BusinessComponents/SearchInput"
;
import
MySelect
from
"@/components/mui/MySelect"
;
import
MySelect
from
"@/components/mui/MySelect"
;
import
MyButton
from
"@/components/mui/MyButton"
;
import
MyButton
from
"@/components/mui/MyButton"
;
import
OperatorCard
from
"./components/OperatorCard"
;
import
styles
from
"./index.module.css"
;
const
UserResourcesEnvironment
=
()
=>
{
const
WorkflowOperator
=
()
=>
{
const
[
addOpen
,
setAddopen
]
=
useState
(
false
);
const
[
addOpen
,
setAddopen
]
=
useState
(
false
);
return
(
return
(
<
div
className=
{
style
.
environment
}
>
<
div
className=
{
styles
.
indexBox
}
>
<
div
className=
{
style
.
top
}
>
<
div
className=
{
styles
.
headerBox
}
>
<
div
className=
{
style
.
topLeft
}
>
<
div
>
<
SearchInput
sx=
{
{
width
:
340
,
marginRight
:
"16px"
}
}
></
SearchInput
>
<
SearchInput
sx=
{
{
width
:
340
,
marginRight
:
"16px"
}
}
placeholder=
"输入关键词搜索"
/>
<
MySelect
<
MySelect
options=
{
[
options=
{
[
{
{
...
@@ -27,23 +32,39 @@ const UserResourcesEnvironment = () => {
...
@@ -27,23 +32,39 @@ const UserResourcesEnvironment = () => {
value
:
"a"
,
value
:
"a"
,
},
},
]
}
]
}
placeholder=
"环境类型"
className=
{
styles
.
searchSelectBox
}
sx=
{
{
width
:
"150px"
,
height
:
"32px"
}
}
sx=
{
{
width
:
"150px"
,
height
:
"32px"
}
}
></
MySelect
>
/
>
</
div
>
<
MySelect
<
div
className=
{
style
.
topRight
}
>
options=
{
[
<
MyButton
{
text=
"构建应用环境"
label
:
"环境类型"
,
img=
{
value
:
"a"
,
<
span
},
style=
{
{
fontSize
:
"14px"
,
marginRight
:
"8px"
}
}
]
}
className=
"iconfont icon-dianzan
"
placeholder=
"批/流类型
"
></
span
>
className=
{
styles
.
searchSelectBox
}
}
sx=
{
{
width
:
"150px"
,
height
:
"32px"
}
}
></
MyButton
>
/
>
</
div
>
</
div
>
<
MyButton
text=
"构建算子"
img=
{
<
span
style=
{
{
fontSize
:
"14px"
,
marginRight
:
"8px"
}
}
className=
"iconfont icon-dianzan"
></
span
>
}
></
MyButton
>
</
div
>
<
div
className=
{
styles
.
contentBox
}
>
{
[
1
,
2
,
3
,
4
,
5
].
map
((
item
)
=>
{
return
<
OperatorCard
/>;
})
}
</
div
>
</
div
>
</
div
>
</
div
>
);
);
};
};
export
default
UserResourcesEnvironment
;
export
default
WorkflowOperator
;
src/views/ResourceCenter/UserResources/index.tsx
View file @
7f5de3c2
...
@@ -4,7 +4,7 @@ import UserResourcesEnvironment from "./UserResourcesEnvironment";
...
@@ -4,7 +4,7 @@ import UserResourcesEnvironment from "./UserResourcesEnvironment";
import
{
useMemo
,
useState
}
from
"react"
;
import
{
useMemo
,
useState
}
from
"react"
;
import
classNames
from
"classnames"
;
import
classNames
from
"classnames"
;
import
Tabs
from
"@/components/mui/MyTabs"
;
import
Tabs
from
"@/components/mui/MyTabs"
;
import
WorkflowOperator
from
"./WorkflowOperator"
;
const
UserResources
=
()
=>
{
const
UserResources
=
()
=>
{
const
isPass
=
usePass
();
const
isPass
=
usePass
();
const
tabList
=
useMemo
(()
=>
{
const
tabList
=
useMemo
(()
=>
{
...
@@ -18,7 +18,7 @@ const UserResources = () => {
...
@@ -18,7 +18,7 @@ const UserResources = () => {
{
{
label
:
"工作流算子"
,
label
:
"工作流算子"
,
value
:
"USERRESOURCES_FLOE"
,
value
:
"USERRESOURCES_FLOE"
,
component
:
<
div
/>,
component
:
<
WorkflowOperator
/>,
hide
:
!
isPass
(
"USERRESOURCES_FLOE"
),
hide
:
!
isPass
(
"USERRESOURCES_FLOE"
),
},
},
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment