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
bc29c610
Commit
bc29c610
authored
Jul 15, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 解决一些小BUG
parent
d12799f9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
9 deletions
+10
-9
index.tsx
src/components/BusinessComponents/FileSelect/index.tsx
+3
-2
index.tsx
src/views/Project/ProjectData/index.tsx
+1
-1
index.tsx
src/views/Project/ProjectJobDetail/index.tsx
+4
-4
index.tsx
src/views/WorkFlowEdit/index.tsx
+2
-2
No files found.
src/components/BusinessComponents/FileSelect/index.tsx
View file @
bc29c610
...
...
@@ -36,7 +36,7 @@ const FileSelect = observer((props: FileSelectProps) => {
const
fileToken
=
toJS
(
currentProjectStore
.
currentProjectInfo
.
filetoken
);
const
[
path
,
setPath
]
=
useState
<
String
>
(
"/"
);
const
[
selectFileName
,
setSelectFileName
]
=
useState
(
""
);
const
[
selectItem
,
setSelectItem
]
=
useState
({});
const
[
selectItem
,
setSelectItem
]
=
useState
<
any
>
({});
// 防止用户连续点击文件夹造成路径显示错误
const
[
debounce
,
setDebounce
]
=
useState
(
false
);
// 文件夹、文件列表
...
...
@@ -46,6 +46,7 @@ const FileSelect = observer((props: FileSelectProps) => {
const
[
keyWord
,
setKeyWord
]
=
useState
(
""
);
const
fileSelectOnConfirm
=
()
=>
{
// if (selectItem.type)
console
.
log
(
path
);
console
.
log
(
selectFileName
);
console
.
log
(
selectItem
);
...
...
@@ -404,7 +405,7 @@ const FileSelect = observer((props: FileSelectProps) => {
{
showList
.
length
===
0
&&
(
<
div
className=
{
style
.
noDataBox
}
>
<
img
className=
{
style
.
noDataImg
}
src=
{
noFile
}
alt=
""
/>
<
span
className=
{
style
.
noDataText
}
>
暂
未开启模板
</
span
>
<
span
className=
{
style
.
noDataText
}
>
暂
无数据
</
span
>
</
div
>
)
}
</
div
>
...
...
src/views/Project/ProjectData/index.tsx
View file @
bc29c610
...
...
@@ -680,7 +680,7 @@ const ProjectData = observer(() => {
{
showList
.
length
===
0
&&
(
<
div
className=
{
style
.
noDataBox
}
>
<
img
className=
{
style
.
noDataImg
}
src=
{
noFile
}
alt=
""
/>
<
span
className=
{
style
.
noDataText
}
>
暂
未开启模板
</
span
>
<
span
className=
{
style
.
noDataText
}
>
暂
无数据
</
span
>
</
div
>
)
}
</
div
>
...
...
src/views/Project/ProjectJobDetail/index.tsx
View file @
bc29c610
...
...
@@ -419,10 +419,10 @@ const ProjectSubmitWork = observer(() => {
})
}
</
div
>
)
}
{
workFlowJobInfo
?.
outputs
&&
Object
.
keys
(
workFlowJobInfo
?.
outputs
).
length
===
0
&&
(
<
div
className=
{
styles
.
notResults
}
>
暂无结果文件
</
div
>
)
}
{
(
!
workFlowJobInfo
?.
outputs
||
Object
.
keys
(
workFlowJobInfo
?.
outputs
).
length
===
0
)
&&
(
<
div
className=
{
styles
.
notResults
}
>
暂无结果文件
</
div
>
)
}
<
div
className=
{
styles
.
title
}
>
任务信息
</
div
>
<
div
className=
{
styles
.
taskInfoLi
}
>
<
div
className=
{
styles
.
taskInfoParams
}
>
任务名称
</
div
>
...
...
src/views/WorkFlowEdit/index.tsx
View file @
bc29c610
...
...
@@ -88,11 +88,11 @@ const WorkFlowEdit = observer((props: IProps) => {
let
version
=
res
.
data
.
version
;
let
arr
=
version
.
split
(
"."
);
if
(
arr
.
length
===
3
)
{
if
(
Number
(
arr
[
2
])
<
100
)
{
if
(
Number
(
arr
[
2
])
<
99
)
{
arr
[
2
]
=
String
(
Number
(
arr
[
2
])
+
1
);
}
else
{
arr
[
2
]
=
"0"
;
if
(
Number
(
arr
[
1
])
<
100
)
{
if
(
Number
(
arr
[
1
])
<
99
)
{
arr
[
1
]
=
String
(
Number
(
arr
[
1
])
+
1
);
}
else
{
arr
[
1
]
=
"0"
;
...
...
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