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
fcdfe186
Commit
fcdfe186
authored
Aug 04, 2022
by
jiangzijing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:一些交互修改
parent
cd3761aa
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
5 deletions
+23
-5
index.tsx
src/views/Project/ProjectData/AddFolder/index.tsx
+4
-2
index.module.css
src/views/Project/ProjectOverview/TaskCard/index.module.css
+5
-0
index.tsx
src/views/Project/ProjectOverview/index.tsx
+6
-0
index.tsx
src/views/Project/ProjectWorkbench/workbenchList/index.tsx
+6
-1
index.tsx
src/views/Project/components/AddProject/index.tsx
+1
-1
index.tsx
src/views/WorkFlowEdit/components/ParameterSetting/index.tsx
+1
-1
No files found.
src/views/Project/ProjectData/AddFolder/index.tsx
View file @
fcdfe186
...
...
@@ -60,7 +60,9 @@ const AddFolder = (props: IAddFolderProps) => {
const
handleFileNameChange
=
(
e
:
any
)
=>
{
const
fileName
=
e
.
target
.
value
;
setFileName
(
fileName
);
if
(
fileName
.
length
<=
30
)
{
setFileName
(
fileName
);
}
if
(
!
fileName
)
{
setFileNameCheck
({
error
:
true
,
...
...
@@ -123,7 +125,7 @@ const AddFolder = (props: IAddFolderProps) => {
helperText=
{
fileNameCheck
.
help
}
InputProps=
{
{
endAdornment
:
(
<
InputAdornment
position=
"end"
>
<
InputAdornment
position=
"end"
style=
{
{
color
:
fileName
.
length
>=
30
?
"#d32f2f"
:
"#C2C6CC"
}
}
>
{
fileName
.
length
}
/30
</
InputAdornment
>
),
...
...
src/views/Project/ProjectOverview/TaskCard/index.module.css
View file @
fcdfe186
...
...
@@ -36,12 +36,17 @@
}
.taskName
{
min-width
:
100px
;
font-size
:
14px
;
line-height
:
22px
;
font-weight
:
500
;
cursor
:
pointer
;
}
.taskName
:hover
{
color
:
#1370FF
;
}
.taskStatus
{
display
:
flex
;
align-items
:
center
;
...
...
src/views/Project/ProjectOverview/index.tsx
View file @
fcdfe186
...
...
@@ -43,6 +43,7 @@ const ProjectOverview = observer(() => {
setTaskList
(
result
.
data
.
content
);
},
});
useEffect
(()
=>
{
if
(
currentProjectStore
.
currentProjectInfo
.
id
)
{
getOverview
({
...
...
@@ -69,6 +70,10 @@ const ProjectOverview = observer(() => {
}
}
const
handleKeyWordChangeBlur
=
(
e
:
any
)
=>
{
setJobName
(
e
.
target
.
value
);
}
const
storageUnitFromB
=
(
b
:
number
)
=>
{
if
(
b
<=
0
)
{
return
{
data
:
'0.00'
,
unit
:
'KB'
};
...
...
@@ -142,6 +147,7 @@ const ProjectOverview = observer(() => {
</
div
>
<
SearchInput
onKeyUp=
{
handleKeyWordChangeKeyUp
}
onBlur=
{
handleKeyWordChangeBlur
}
sx=
{
{
width
:
340
}
}
/>
</
div
>
...
...
src/views/Project/ProjectWorkbench/workbenchList/index.tsx
View file @
fcdfe186
...
...
@@ -38,6 +38,7 @@ import { observer } from "mobx-react-lite";
import
usePass
from
"@/hooks/usePass"
;
import
MyProgress
from
"@/components/mui/MyProgress"
;
import
SearchInput
from
"@/components/BusinessComponents/SearchInput"
;
import
MyCircularProgress
from
"@/components/mui/MyCircularProgress"
;
import
moment
from
"moment"
;
import
styles
from
"./index.module.css"
;
...
...
@@ -77,6 +78,7 @@ const ProjectMembers = observer(() => {
const
[
size
,
setSize
]
=
useState
(
10
);
const
[
rowsPerPage
,
setRowsPerPage
]
=
useState
(
10
);
const
[
count
,
setCount
]
=
useState
(
0
);
const
[
loading
,
setLoading
]
=
useState
(
false
)
/** 简单弹窗 */
const
[
jobData
,
setJobData
]
=
useState
(
""
);
const
[
openDialog
,
setOpenDialog
]
=
useState
(
false
);
...
...
@@ -86,6 +88,7 @@ const ProjectMembers = observer(() => {
onSuccess
:
(
result
:
any
)
=>
{
setJobList
(
result
.
data
.
content
);
setCount
(
result
.
data
.
totalElements
);
setLoading
(
false
);
timer
&&
clearTimeout
(
timer
as
number
);
timer
=
null
;
timer
=
setTimeout
(()
=>
{
...
...
@@ -347,13 +350,15 @@ const ProjectMembers = observer(() => {
name
:
jobName
,
state
:
currency
===
"ALL"
?
""
:
currency
,
});
setLoading
(
true
)
}
}
>
<
img
alt=
""
src=
{
onload
}
/>
</
Box
>
</
Box
>
<
Box
className=
{
styles
.
body
}
>
<
Box
className=
{
styles
.
body
}
style=
{
{
position
:
"relative"
}
}
>
<
MyCircularProgress
loading=
{
loading
}
/>
{
jobList
.
length
===
0
&&
(
<
Box
sx=
{
{
...
...
src/views/Project/components/AddProject/index.tsx
View file @
fcdfe186
...
...
@@ -221,7 +221,7 @@ const AddProject = (props: IAddProjectProps) => {
position
:
"absolute"
,
bottom
:
"7px"
,
right
:
"12px"
,
color
:
"rgba(194, 198, 204, 1)"
,
color
:
desc
.
length
>=
100
?
"#d32f2f"
:
"#C2C6CC"
}
}
>
{
desc
.
length
}
/100
...
...
src/views/WorkFlowEdit/components/ParameterSetting/index.tsx
View file @
fcdfe186
...
...
@@ -478,7 +478,7 @@ const ParameterSetting = (props: IParameterSettingProps) => {
onChange=
{
(
e
:
any
)
=>
handleParameterChange
(
e
,
parameter
.
name
||
""
)
}
placeholder=
"
请输入
"
placeholder=
"
可输入默认值
"
error=
{
parameter
.
error
||
false
}
helperText=
{
parameter
.
helperText
}
disabled=
{
parameter
.
parameterGroup
===
"out"
}
...
...
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