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
sunyihao
bkunyun
Commits
a76e2c1e
Commit
a76e2c1e
authored
Jun 24, 2022
by
rocosen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
joblist
joblist
parent
04d22d2e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
37 deletions
+17
-37
index.tsx
src/views/Project/ProjectWorkbench/workbenchList/index.tsx
+2
-0
addTemplate.tsx
...ectWorkbench/workbenchTemplate/components/addTemplate.tsx
+5
-8
templateBox.tsx
...ectWorkbench/workbenchTemplate/components/templateBox.tsx
+6
-18
index.tsx
...iews/Project/ProjectWorkbench/workbenchTemplate/index.tsx
+4
-11
No files found.
src/views/Project/ProjectWorkbench/workbenchList/index.tsx
View file @
a76e2c1e
...
...
@@ -316,6 +316,8 @@ const ProjectMembers = () => {
</
Box
>
<
div
style=
{
{
color
:
renderProgress
(
item
.
state
)
}
}
className=
{
styles
.
tabBoxStatusText
}
>
{
item
.
completeNum
+
"/"
+
item
.
totalNum
}
</
div
>
</
Box
>
<
Box
className=
{
styles
.
tabBoxJobOperate
}
>
<
img
alt=
""
src=
{
item
.
state
===
"RUNNING"
?
jobStop
:
jobDel
}
...
...
src/views/Project/ProjectWorkbench/workbenchTemplate/components/addTemplate.tsx
View file @
a76e2c1e
...
...
@@ -2,7 +2,7 @@
import
{
memo
,
useCallback
,
useEffect
,
useMemo
,
useState
}
from
"react"
;
import
styles
from
"../index.module.css"
;
import
{
Box
,
Typography
}
from
"@mui/material"
;
import
Button
from
"@
mui/material
/Button"
;
import
Button
from
"@
/components/mui
/Button"
;
import
Dialog
from
"@/components/mui/Dialog"
;
import
OutlinedInput
from
"@mui/material/OutlinedInput"
;
import
SearchIcon
from
"@mui/icons-material/Search"
;
...
...
@@ -37,13 +37,10 @@ const AddTemplate = (props: any) => {
endAdornment=
{
<
SearchIcon
style=
{
{
color
:
"#8A9099"
}
}
/>
}
/>
<
Button
style=
{
{
backgroundColor
:
"#1370FF"
,
marginLeft
:
"12px"
}
}
variant=
"contained"
onClick=
{
addTemplateCallback
}
size=
"small"
>
添加模版
{
selectTemplateData
.
length
===
0
?
""
:
`(${selectTemplateData.length})`
}
</
Button
>
click=
{
addTemplateCallback
}
size=
{
"small"
}
text=
{
'添加模版'
+
(
selectTemplateData
.
length
===
0
?
""
:
`(${selectTemplateData.length})`
)
}
/>
</
Box
>
{
...
...
src/views/Project/ProjectWorkbench/workbenchTemplate/components/templateBox.tsx
View file @
a76e2c1e
...
...
@@ -2,7 +2,7 @@
import
{
memo
,
useCallback
,
useEffect
,
useMemo
,
useState
}
from
"react"
;
import
styles
from
"../index.module.css"
;
import
{
Box
,
Typography
}
from
"@mui/material"
;
import
Button
from
"@
mui/material
/Button"
;
import
Button
from
"@
/components/mui
/Button"
;
import
usePass
from
"@/hooks/usePass"
;
const
TemplateBox
=
(
props
:
any
)
=>
{
...
...
@@ -23,27 +23,15 @@ const TemplateBox = (props: any) => {
display
:
'flex'
,
justifyContent
:
'end'
}
}
>
{
isPass
(
"PROJECT_WORKBENCH_FLOES_USE"
,
'MANAGER'
)
&&
<
Button
style=
{
{
backgroundColor
:
"#F0F2F5"
,
color
:
"#565C66"
}
}
variant=
"contained"
onClick=
{
()
=>
{
props
.
startDialog
(
info
.
id
)
}
}
size=
"small"
>
删除模版
</
Button
>
isPass
(
"PROJECT_WORKBENCH_FLOES_USE"
,
'MANAGER'
)
&&
<
Button
size=
{
"small"
}
text=
{
'删除模版'
}
click=
{
()
=>
{
props
.
startDialog
(
info
.
id
)
}
}
style=
{
{
backgroundColor
:
"#F0F2F5"
,
color
:
"#565C66"
}
}
/>
}
{
isPass
(
"PROJECT_WORKBENCH_FLOES_USE"
,
'USER'
)
&&
<
Button
style=
{
{
backgroundColor
:
"#1370FF"
,
marginLeft
:
"12px"
}
}
variant=
"contained"
// onClick=
{
addTemplateBlock
}
size=
"small"
>
使用模版
</
Button
>
isPass
(
"PROJECT_WORKBENCH_FLOES_USE"
,
'USER'
)
&&
<
Button
size=
{
"small"
}
text=
{
'使用模版'
}
click=
{
()
=>
{
}
}
style=
{
{
marginLeft
:
"12px"
}
}
/>
}
</
Box
>
</
Box
>
</
Box
>
);
};
...
...
src/views/Project/ProjectWorkbench/workbenchTemplate/index.tsx
View file @
a76e2c1e
...
...
@@ -11,8 +11,8 @@ import { Box, Typography } from "@mui/material";
import
styles
from
"./index.module.css"
;
import
OutlinedInput
from
"@mui/material/OutlinedInput"
;
import
SearchIcon
from
"@mui/icons-material/Search"
;
//
import Button from "@/components/mui/Button";
import
Button
from
"@mui/material/Button"
;
import
Button
from
"@/components/mui/Button"
;
//
import Button from "@mui/material/Button";
import
Add
from
"@mui/icons-material/Add"
;
import
useMyRequest
from
"@/hooks/useMyRequest"
;
import
TemplateBox
from
"./components/templateBox"
...
...
@@ -198,15 +198,8 @@ const ProjectMembers = observer(() => {
/>
{
templateList
.
length
>
0
&&
isPass
(
"PROJECT_WORKBENCH_FLOES_ADD"
,
'MANAGER'
)
&&
<
Button
style=
{
{
backgroundColor
:
"#1370FF "
}
}
variant=
"contained"
onClick=
{
addTemplateBlock
}
startIcon=
{
<
Add
/>
}
size=
"small"
>
添加工作流模版
</
Button
>
templateList
.
length
>
0
&&
isPass
(
"PROJECT_WORKBENCH_FLOES_ADD"
,
'MANAGER'
)
&&
<
Button
text=
{
'添加工作流模版'
}
img=
{
<
Add
/>
}
click=
{
addTemplateBlock
}
size=
{
'small'
}
/>
}
</
Box
>
...
...
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