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
a4532ce1
Commit
a4532ce1
authored
Sep 07, 2022
by
jiangzijing
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-20220801' of
http://120.77.149.83/root/bkunyun
into feat-20220801
parents
6e5f03eb
b875bbe2
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
73 additions
and
62 deletions
+73
-62
index.module.css
...CommonComponents/RadioGroupOfButtonStyle/index.module.css
+2
-2
index.tsx
...onents/CommonComponents/RadioGroupOfButtonStyle/index.tsx
+10
-3
index.tsx
src/views/Project/ProjectData/SeeDataset/index.tsx
+1
-1
index.tsx
src/views/Project/ProjectData/index.tsx
+1
-1
index.module.css
src/views/Project/ProjectJobDetail/index.module.css
+0
-2
index.tsx
src/views/Project/ProjectOverview/index.tsx
+5
-5
index.tsx
...kbench/workbenchTemplate/components/AddTemplate/index.tsx
+48
-45
index.module.css
...ews/Project/components/ProjectListPopper/index.module.css
+2
-2
index.tsx
src/views/WorkFlowEdit/index.tsx
+4
-1
No files found.
src/components/CommonComponents/RadioGroupOfButtonStyle/index.module.css
View file @
a4532ce1
...
...
@@ -49,9 +49,9 @@
}
.radioActiveBg
{
box-shadow
:
2px
4px
12px
0px
rgba
(
0
,
27
,
63
,
0.06
);
height
:
28px
;
height
:
100%
;
background-color
:
#fff
;
transition
:
transform
0.
3
s
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
transition
:
transform
0.
2
s
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
border-radius
:
2px
;
width
:
50%
;
transform
:
translateX
(
0px
);
...
...
src/components/CommonComponents/RadioGroupOfButtonStyle/index.tsx
View file @
a4532ce1
...
...
@@ -22,11 +22,18 @@ type IRadioGroupOfButtonStyleProps = {
handleRadio
:
any
;
RadiosBoxStyle
?:
object
;
radioStyle
?:
object
;
radioActiveBgBoxStyle
?:
object
;
};
const
RadioGroupOfButtonStyle
=
(
props
:
IRadioGroupOfButtonStyleProps
)
=>
{
const
{
radioOptions
,
value
,
handleRadio
,
RadiosBoxStyle
,
radioStyle
}
=
props
;
const
{
radioOptions
,
value
,
handleRadio
,
RadiosBoxStyle
,
radioStyle
,
radioActiveBgBoxStyle
,
}
=
props
;
const
radioWidth
=
useMemo
(()
=>
{
if
(
radioOptions
.
length
)
{
...
...
@@ -48,7 +55,7 @@ const RadioGroupOfButtonStyle = (props: IRadioGroupOfButtonStyleProps) => {
return
(
<
div
className=
{
style
.
RadiosBox
}
style=
{
RadiosBoxStyle
}
>
<
div
className=
{
style
.
radioActiveBgBox
}
>
<
div
className=
{
style
.
radioActiveBgBox
}
style=
{
radioActiveBgBoxStyle
}
>
<
div
className=
{
style
.
radioActiveBg
}
style=
{
{
...
...
src/views/Project/ProjectData/SeeDataset/index.tsx
View file @
a4532ce1
...
...
@@ -206,7 +206,7 @@ const SeeDataset = observer((props: ISeeDatasetProps) => {
},
]
}
RadiosBoxStyle=
{
{
width
:
"132px"
}
}
></
RadioGroupOfButtonStyle
>
/
>
)
}
<
MyMultipleMenu
value=
{
showData
}
...
...
src/views/Project/ProjectData/index.tsx
View file @
a4532ce1
...
...
@@ -572,7 +572,7 @@ const ProjectData = observer(() => {
{
value
:
"dataset"
,
label
:
"数据集"
},
]
}
handleRadio=
{
setActiveTab
}
></
RadioGroupOfButtonStyle
>
/
>
<
IconButton
aria
-
label=
"refreshIcon"
size=
"small"
...
...
src/views/Project/ProjectJobDetail/index.module.css
View file @
a4532ce1
...
...
@@ -151,8 +151,6 @@
}
.taskInfoValueIcon
{
margin-right
:
9px
;
position
:
relative
;
top
:
3px
;
}
.tabs
{
display
:
flex
;
...
...
src/views/Project/ProjectOverview/index.tsx
View file @
a4532ce1
...
...
@@ -29,15 +29,15 @@ const ProjectOverview = observer(() => {
// 选择近7天or近15天or近30天
const
[
day
,
setDay
]
=
useState
(
"7"
);
// 滚轮是否到顶,判断是否显示阴影
const
[
isTop
,
setIsTop
]
=
useState
(
true
)
const
[
isTop
,
setIsTop
]
=
useState
(
true
)
;
// 滚动滚轮时监听是否到顶
const
onscroll
=
(
e
:
any
)
=>
{
if
(
e
.
target
.
scrollTop
<=
0
)
{
setIsTop
(
true
)
setIsTop
(
true
)
;
}
else
{
setIsTop
(
false
)
setIsTop
(
false
)
;
}
}
}
;
// 获取概览基本信息
const
{
run
:
getOverview
,
loading
}
=
useMyRequest
(
getOverviewInfo
,
{
onSuccess
:
(
result
:
any
)
=>
{
...
...
@@ -207,7 +207,7 @@ const ProjectOverview = observer(() => {
{
value
:
"30"
,
label
:
"近30天"
},
]
}
handleRadio=
{
setDay
}
></
RadioGroupOfButtonStyle
>
/
>
</
div
>
<
SearchInput
onKeyUp=
{
handleKeyWordChangeKeyUp
}
...
...
src/views/Project/ProjectWorkbench/workbenchTemplate/components/AddTemplate/index.tsx
View file @
a4532ce1
...
...
@@ -53,16 +53,16 @@ const AddTemplate = (props: IAddTemplateProps) => {
const
[
templateType
,
setTemplateType
]
=
useState
(
"public"
);
// 滚轮是否到顶,判断是否显示阴影
const
[
isTop
,
setIsTop
]
=
useState
(
true
)
const
[
isTop
,
setIsTop
]
=
useState
(
true
)
;
// 滚动滚轮时监听是否到顶
const
onscroll
=
(
e
:
any
)
=>
{
if
(
e
.
target
.
scrollTop
<=
0
)
{
setIsTop
(
true
)
setIsTop
(
true
)
;
}
else
{
setIsTop
(
false
)
setIsTop
(
false
)
;
}
}
}
;
const
handleRadio
=
(
value
:
string
)
=>
{
setTemplateType
(
value
);
...
...
@@ -144,39 +144,44 @@ const AddTemplate = (props: IAddTemplateProps) => {
};
// 获取模板列表
const
getAddTemplateListFun
=
useCallback
((
newTitle
?:
string
)
=>
{
const
userName
=
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
)
||
"{}"
)?.
name
;
setSelectTemplateData
([]);
setAddTemplateList
([]);
if
(
templateType
===
"public"
)
{
getAddTemplateList
({
projectId
:
projectId
as
string
,
productId
:
productId
as
string
,
creator
:
"root"
,
keyword
:
newTitle
,
});
}
else
{
getAddTemplateList
({
projectId
:
projectId
as
string
,
productId
:
productId
as
string
,
creator
:
userName
,
keyword
:
newTitle
,
});
}
},
[
setSelectTemplateData
,
getAddTemplateList
,
productId
,
projectId
,
templateType
,
// title,
]);
const
getAddTemplateListFun
=
useCallback
(
(
newTitle
?:
string
)
=>
{
const
userName
=
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
)
||
"{}"
)?.
name
;
setSelectTemplateData
([]);
setAddTemplateList
([]);
if
(
templateType
===
"public"
)
{
getAddTemplateList
({
projectId
:
projectId
as
string
,
productId
:
productId
as
string
,
creator
:
"root"
,
keyword
:
newTitle
,
});
}
else
{
getAddTemplateList
({
projectId
:
projectId
as
string
,
productId
:
productId
as
string
,
creator
:
userName
,
keyword
:
newTitle
,
});
}
},
[
setSelectTemplateData
,
getAddTemplateList
,
productId
,
projectId
,
templateType
,
// title,
]
);
//模板启用切换
const
templateSwitch
=
(
e
:
any
,
id
:
string
)
=>
{
if
(
e
.
target
.
checked
)
{
let
arr
=
[]
arr
.
push
(
id
)
let
arr
=
[]
;
arr
.
push
(
id
)
;
addTemplate
({
projectId
:
projectId
as
string
,
workflowSpecIds
:
arr
,
...
...
@@ -187,18 +192,18 @@ const AddTemplate = (props: IAddTemplateProps) => {
workflowSpecId
:
id
,
});
}
}
}
;
useEffect
(()
=>
{
getAddTemplateListFun
();
},
[
getAddTemplateListFun
]);
// 按回车搜索
const
handleKeyWordChangeKeyUp
=
(
e
:
any
)
=>
{
if
(
e
.
keyCode
===
13
)
{
getAddTemplateListFun
(
e
.
target
.
value
);
}
};
// 按回车搜索
const
handleKeyWordChangeKeyUp
=
(
e
:
any
)
=>
{
if
(
e
.
keyCode
===
13
)
{
getAddTemplateListFun
(
e
.
target
.
value
);
}
};
const
hiddenBoxArr
=
useMemo
(()
=>
{
const
length
=
...
...
@@ -255,7 +260,7 @@ const AddTemplate = (props: IAddTemplateProps) => {
value=
{
templateType
}
radioOptions=
{
radioOptions
}
handleRadio=
{
handleRadio
}
></
RadioGroupOfButtonStyle
>
/
>
{
/* <MyButton
onClick={handleAddTemplate}
size={"small"}
...
...
@@ -272,7 +277,7 @@ const AddTemplate = (props: IAddTemplateProps) => {
</
Box
>
</
Box
>
</
div
>
<
div
className=
{
style
.
templateBox
}
onScroll=
{
onscroll
}
>
<
div
className=
{
style
.
templateBox
}
onScroll=
{
onscroll
}
>
{
templateType
===
"public"
&&
addTemplateList
.
length
===
0
&&
(
<
Box
sx=
{
{
...
...
@@ -342,9 +347,7 @@ const AddTemplate = (props: IAddTemplateProps) => {
<
div
className=
{
style
.
templateLiEditBox
}
>
<
MySwitch
defaultChecked=
{
item
.
favorited
}
onChange=
{
(
e
:
any
)
=>
templateSwitch
(
e
,
item
.
id
)
}
onChange=
{
(
e
:
any
)
=>
templateSwitch
(
e
,
item
.
id
)
}
></
MySwitch
>
</
div
>
...
...
src/views/Project/components/ProjectListPopper/index.module.css
View file @
a4532ce1
...
...
@@ -12,8 +12,8 @@
display
:
flex
;
flex-direction
:
column
;
border-left
:
1px
solid
#dde1e6
;
animation
:
myfirst
0.
4
s
;
-webkit-animation
:
myfirst
0.
4
s
;
/* Safari and Chrome */
animation
:
myfirst
0.
3
s
;
-webkit-animation
:
myfirst
0.
3
s
;
/* Safari and Chrome */
}
.searchBox
{
...
...
src/views/WorkFlowEdit/index.tsx
View file @
a4532ce1
...
...
@@ -226,7 +226,10 @@ const WorkFlowEdit = observer((props: IProps) => {
fontSize
:
"16px"
,
height
:
"30px"
,
}
}
></
RadioGroupOfButtonStyle
>
radioActiveBgBoxStyle=
{
{
height
:
"32px"
,
}
}
/>
</
div
>
{
leftContentType
===
"list"
&&
(
<
OperatorList
...
...
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