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
a0bd3079
Commit
a0bd3079
authored
Sep 01, 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
cba70674
ad039d33
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
139 additions
and
113 deletions
+139
-113
public.css
src/assets/style/public.css
+1
-1
MyInput.tsx
src/components/mui/MyInput.tsx
+1
-0
usePass.ts
src/hooks/usePass.ts
+7
-0
index.module.css
src/views/ConsoleLayout/index.module.css
+1
-10
index.module.css
src/views/Project/ProjectOverview/TaskCard/index.module.css
+2
-2
index.module.css
src/views/Project/ProjectOverview/index.module.css
+73
-74
index.tsx
src/views/Project/ProjectOverview/index.tsx
+0
-0
index.module.css
...ews/Project/components/ProjectListPopper/index.module.css
+10
-13
index.tsx
src/views/Project/components/ProjectListPopper/index.tsx
+44
-13
No files found.
src/assets/style/public.css
View file @
a0bd3079
...
@@ -7,7 +7,7 @@ main::-webkit-scrollbar {
...
@@ -7,7 +7,7 @@ main::-webkit-scrollbar {
div
::-webkit-scrollbar-track
,
div
::-webkit-scrollbar-track
,
main
::-webkit-scrollbar-track
{
main
::-webkit-scrollbar-track
{
background-color
:
#fff
;
background-color
:
transparent
;
-webkit-border-radius
:
3em
;
-webkit-border-radius
:
3em
;
-moz-border-radius
:
3em
;
-moz-border-radius
:
3em
;
border-radius
:
3em
;
border-radius
:
3em
;
...
...
src/components/mui/MyInput.tsx
View file @
a0bd3079
...
@@ -66,6 +66,7 @@ const MyInput = (props: MyInputProps) => {
...
@@ -66,6 +66,7 @@ const MyInput = (props: MyInputProps) => {
styleOverrides
:
{
styleOverrides
:
{
root
:
{
root
:
{
top
:
"-9px"
,
top
:
"-9px"
,
fontSize
:
"14px"
,
},
},
shrink
:
{
shrink
:
{
top
:
0
,
top
:
0
,
...
...
src/hooks/usePass.ts
View file @
a0bd3079
...
@@ -9,6 +9,13 @@ const roleList: any[] = [
...
@@ -9,6 +9,13 @@ const roleList: any[] = [
{
OWNER
:
4
}
{
OWNER
:
4
}
]
]
export
const
roleMap
=
{
VIEWER
:
'查看者'
,
USER
:
'研究员'
,
MANAGER
:
'管理员'
,
OWNER
:
'所有者'
,
}
const
usePass
=
()
=>
{
const
usePass
=
()
=>
{
const
{
permissionStore
}
=
useStores
();
const
{
permissionStore
}
=
useStores
();
const
{
currentProjectStore
}
=
useStores
();
const
{
currentProjectStore
}
=
useStores
();
...
...
src/views/ConsoleLayout/index.module.css
View file @
a0bd3079
...
@@ -54,6 +54,7 @@
...
@@ -54,6 +54,7 @@
z-index
:
1002
;
z-index
:
1002
;
}
}
.productLi
{
.productLi
{
min-width
:
142px
;
height
:
36px
;
height
:
36px
;
padding
:
7px
50px
7px
16px
;
padding
:
7px
50px
7px
16px
;
font-size
:
14px
;
font-size
:
14px
;
...
@@ -109,16 +110,6 @@
...
@@ -109,16 +110,6 @@
color
:
#8a9099
;
color
:
#8a9099
;
transform
:
rotate
(
180deg
);
transform
:
rotate
(
180deg
);
}
}
/* .ArrowDropDownIconRoot {
color: #8a9099;
transition: all 0.2s !important;
transform: rotate(0);
}
.ArrowDropDownIconRootOpen {
color: #8a9099;
transform: rotate(180deg);
} */
.menuPaper
{
.menuPaper
{
border
:
1px
solid
#f0f2f5
;
border
:
1px
solid
#f0f2f5
;
...
...
src/views/Project/ProjectOverview/TaskCard/index.module.css
View file @
a0bd3079
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
.taskProgress
{
.taskProgress
{
height
:
32px
;
height
:
32px
;
margin
:
12px
0
;
margin
:
12px
0
16px
;
}
}
.progressInfo
{
.progressInfo
{
...
@@ -157,7 +157,7 @@
...
@@ -157,7 +157,7 @@
margin-right
:
8px
;
margin-right
:
8px
;
}
}
.outputTitle
{
.outputTitle
{
display
:
inline-block
;
display
:
inline-block
;
height
:
22px
;
height
:
22px
;
line-height
:
22px
;
line-height
:
22px
;
...
...
src/views/Project/ProjectOverview/index.module.css
View file @
a0bd3079
.topFixed
{
.topFixed
{
position
:
sticky
;
position
:
sticky
;
top
:
0
;
top
:
0
;
z-index
:
10
;
z-index
:
10
;
background-color
:
#fff
;
background-color
:
#fff
;
}
}
.basicInformation
{
.basicInformation
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
margin
:
0
24px
;
margin
:
0
24px
;
padding
:
20px
0
;
padding
:
24px
0
20px
;
border-bottom
:
1px
solid
#EDEFF
2
;
border-bottom
:
1px
solid
#edeff
2
;
}
}
.basicInformationRight
{
.basicInformationRight
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
font-size
:
12px
;
font-size
:
12px
;
}
}
.titleBox
{
.titleBox
{
display
:
flex
;
display
:
flex
;
align-items
:
flex-end
;
align-items
:
flex-end
;
}
}
.projectName
{
.projectName
{
margin-left
:
12px
;
margin-left
:
12px
;
font-size
:
18px
;
font-size
:
18px
;
line-height
:
26px
;
line-height
:
26px
;
font-weight
:
600
;
font-weight
:
600
;
}
}
.otherInformation
{
.otherInformation
{
display
:
flex
;
display
:
flex
;
font-size
:
12px
;
font-size
:
12px
;
margin-top
:
16px
;
margin-top
:
16px
;
}
}
.informationcolor
{
.informationcolor
{
color
:
#8A
9099
;
color
:
#8a
9099
;
}
}
.otherInformationBox
{
.otherInformationBox
{
margin-right
:
24px
;
margin-right
:
24px
;
color
:
#565C
66
;
color
:
#565c
66
;
}
}
.otherInformationBoxRight
{
.otherInformationBoxRight
{
line-height
:
22px
;
line-height
:
22px
;
margin-bottom
:
4px
;
margin-bottom
:
4px
;
color
:
#565C
66
;
color
:
#565c
66
;
}
}
.numberDisplay
{
.numberDisplay
{
font-size
:
20px
;
font-size
:
20px
;
font-weight
:
600
;
font-weight
:
600
;
color
:
#1E
2633
;
color
:
#1e
2633
;
margin-right
:
8px
;
margin-right
:
8px
;
}
}
.verticalLine
{
.verticalLine
{
height
:
32px
;
height
:
32px
;
border-right
:
1px
solid
#EBEDF
0
;
border-right
:
1px
solid
#ebedf
0
;
margin-left
:
28px
;
margin-left
:
28px
;
margin-right
:
28px
;
margin-right
:
28px
;
}
}
.searchBox
{
.searchBox
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
margin
:
24px
24px
0
24px
;
margin
:
24px
24px
0
24px
;
padding-bottom
:
20px
;
padding-bottom
:
20px
;
}
}
.searchLineLeft
{
.searchLineLeft
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
}
}
.taskOverview
{
.taskOverview
{
font-size
:
16px
;
font-size
:
16px
;
font-weight
:
500
;
font-weight
:
500
;
margin-right
:
18px
;
margin-right
:
18px
;
}
}
.projectDataSearch
{
.projectDataSearch
{
padding-left
:
12px
;
padding-left
:
12px
;
padding-right
:
8px
;
padding-right
:
8px
;
border-radius
:
4px
;
border-radius
:
4px
;
border
:
1px
solid
#ebedf0
;
border
:
1px
solid
#ebedf0
;
}
}
.taskDisplay
{
.taskDisplay
{
position
:
relative
;
position
:
relative
;
margin
:
0
24px
20px
;
margin
:
0
24px
20px
;
padding-bottom
:
16px
;
padding-bottom
:
16px
;
overflow
:
hidden
;
overflow
:
hidden
;
background
:
#F7F8FA
;
background
:
#f7f8fa
;
border-radius
:
8px
;
border-radius
:
8px
;
min-height
:
calc
(
100vh
-
291px
);
min-height
:
calc
(
100vh
-
291px
);
}
}
.noDataBox
{
.noDataBox
{
position
:
absolute
;
position
:
absolute
;
top
:
50%
;
top
:
50%
;
left
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
}
}
.noDataText
{
.noDataText
{
margin-top
:
8px
;
margin-top
:
8px
;
font-size
:
14px
;
font-size
:
14px
;
line-height
:
22px
;
line-height
:
22px
;
color
:
#8a9099
;
color
:
#8a9099
;
}
}
.loadingBox
{
.loadingBox
{
width
:
100%
;
width
:
100%
;
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
height
:
calc
(
100vh
-
100px
);
height
:
calc
(
100vh
-
100px
);
}
}
\ No newline at end of file
src/views/Project/ProjectOverview/index.tsx
View file @
a0bd3079
This diff is collapsed.
Click to expand it.
src/views/Project/components/ProjectListPopper/index.module.css
View file @
a0bd3079
...
@@ -2,14 +2,6 @@
...
@@ -2,14 +2,6 @@
width
:
calc
(
100vw
-
220px
);
width
:
calc
(
100vw
-
220px
);
height
:
calc
(
100vh
-
57px
);
height
:
calc
(
100vh
-
57px
);
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
/* width: 260px;
height: calc(100vh - 57px); */
/* width: 260px;
height: calc(100vh - 57px);
background-color: #fff;
border-right: 1px solid #ebedf0;
display: flex;
flex-direction: column; */
}
}
.mainBox
{
.mainBox
{
...
@@ -25,10 +17,11 @@
...
@@ -25,10 +17,11 @@
.searchBox
{
.searchBox
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
height
:
56px
;
height
:
56px
;
padding
:
1
7
px
;
padding
:
1
2px
8px
12px
24
px
;
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
}
}
.searchButton
{
.searchButton
{
width
:
22px
;
width
:
22px
;
...
@@ -48,8 +41,11 @@
...
@@ -48,8 +41,11 @@
}
}
.add
{
.add
{
padding
:
0
15px
;
padding
:
0
15px
;
width
:
22px
;
width
:
32px
;
height
:
22px
;
height
:
32px
;
}
.add
:hover
{
border-radius
:
4px
;
}
}
.addIcon
{
.addIcon
{
color
:
#1e2633
;
color
:
#1e2633
;
...
@@ -96,13 +92,14 @@
...
@@ -96,13 +92,14 @@
overflow
:
hidden
;
overflow
:
hidden
;
}
}
.projectOwnerTime
{
.projectOwnerTime
{
font-size
:
12px
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.projectOwner
{
.projectOwner
{
font-size
:
12px
;
color
:
#565c66
;
color
:
#565c66
;
line-height
:
20px
;
line-height
:
20px
;
font-size
:
14px
;
margin-right
:
32px
;
margin-right
:
32px
;
max-width
:
60px
;
max-width
:
60px
;
white-space
:
nowrap
;
white-space
:
nowrap
;
...
@@ -113,5 +110,5 @@
...
@@ -113,5 +110,5 @@
.projectTime
{
.projectTime
{
color
:
#8a9099
;
color
:
#8a9099
;
line-height
:
20px
;
line-height
:
20px
;
font-size
:
1
4
px
;
font-size
:
1
2
px
;
}
}
src/views/Project/components/ProjectListPopper/index.tsx
View file @
a0bd3079
...
@@ -14,8 +14,8 @@ import AddIcon from "@mui/icons-material/Add";
...
@@ -14,8 +14,8 @@ import AddIcon from "@mui/icons-material/Add";
import
classNames
from
"classnames"
;
import
classNames
from
"classnames"
;
import
{
useStores
}
from
"@/store/index"
;
import
{
useStores
}
from
"@/store/index"
;
import
moment
from
"moment"
;
import
moment
from
"moment"
;
import
React
,
{
useMemo
,
useState
}
from
"react"
;
import
React
,
{
useMemo
,
useState
}
from
"react"
;
import
{
useClickAway
}
from
'ahooks'
;
import
{
useClickAway
}
from
"ahooks"
;
import
{
toJS
}
from
"mobx"
;
import
{
toJS
}
from
"mobx"
;
import
{
observer
}
from
"mobx-react-lite"
;
import
{
observer
}
from
"mobx-react-lite"
;
...
@@ -31,26 +31,52 @@ const ProjectListPopper = observer((props: any) => {
...
@@ -31,26 +31,52 @@ const ProjectListPopper = observer((props: any) => {
setName
(
e
.
target
.
value
);
setName
(
e
.
target
.
value
);
};
};
const
getPower
=
(
projectRole
:
string
)
=>
{
if
(
projectRole
===
"VIEWER"
)
{
return
"查看者"
;
}
else
if
(
projectRole
===
"USER"
)
{
return
"研究员"
;
}
else
if
(
projectRole
===
"MANAGER"
)
{
return
"管理员"
;
}
else
if
(
projectRole
===
"OWNER"
)
{
return
"所有者"
;
}
else
{
return
""
;
}
};
const
list
=
useMemo
(()
=>
{
const
list
=
useMemo
(()
=>
{
return
projectList
.
filter
((
item
:
any
)
=>
{
return
projectList
return
item
.
name
?.
indexOf
(
name
)
!==
-
1
;
.
filter
((
item
:
any
)
=>
{
});
return
item
.
name
?.
indexOf
(
name
)
!==
-
1
;
})
.
map
((
item
)
=>
{
return
{
...
item
,
power
:
getPower
(
item
.
projectRole
||
""
),
};
});
},
[
projectList
,
name
]);
},
[
projectList
,
name
]);
console
.
log
(
list
);
const
handleProjectBox
=
(
e
:
React
.
SyntheticEvent
)
=>
{
const
handleProjectBox
=
(
e
:
React
.
SyntheticEvent
)
=>
{
setProjectListOpen
(
false
);
setProjectListOpen
(
false
);
};
};
useClickAway
(
useClickAway
(
()
=>
{
()
=>
{
setProjectListOpen
(
false
);
setProjectListOpen
(
false
);
},
},
()
=>
document
.
getElementById
(
'use-click-projectList-mainBox'
),
()
=>
document
.
getElementById
(
"use-click-projectList-mainBox"
)
);
);
return
(
return
(
<
div
className=
{
style
.
projectBox
}
onClick=
{
handleProjectBox
}
>
<
div
className=
{
style
.
projectBox
}
onClick=
{
handleProjectBox
}
>
<
div
className=
{
style
.
mainBox
}
id=
"use-click-projectList-mainBox"
onClick=
{
(
e
:
any
)
=>
e
.
stopPropagation
()
}
>
<
div
className=
{
style
.
mainBox
}
id=
"use-click-projectList-mainBox"
onClick=
{
(
e
:
any
)
=>
e
.
stopPropagation
()
}
>
<
div
className=
{
style
.
searchBox
}
>
<
div
className=
{
style
.
searchBox
}
>
<
IconButton
<
IconButton
type=
"submit"
type=
"submit"
...
@@ -59,7 +85,7 @@ const ProjectListPopper = observer((props: any) => {
...
@@ -59,7 +85,7 @@ const ProjectListPopper = observer((props: any) => {
>
>
<
SearchIcon
<
SearchIcon
className=
{
style
.
searchIcon
}
className=
{
style
.
searchIcon
}
style=
{
{
color
:
"
rgba(153, 153, 153, 1)
"
}
}
style=
{
{
color
:
"
#8A9099"
,
fontSize
:
"22px
"
}
}
/>
/>
</
IconButton
>
</
IconButton
>
<
InputBase
<
InputBase
...
@@ -68,6 +94,11 @@ const ProjectListPopper = observer((props: any) => {
...
@@ -68,6 +94,11 @@ const ProjectListPopper = observer((props: any) => {
inputProps=
{
{
"aria-label"
:
"请输入项目名称"
}
}
inputProps=
{
{
"aria-label"
:
"请输入项目名称"
}
}
value=
{
name
}
value=
{
name
}
onChange=
{
nameChange
}
onChange=
{
nameChange
}
sx=
{
{
fontSize
:
"14px"
,
// color: "rgba(194, 198, 204, 1)",
height
:
"22px"
,
}
}
/>
/>
<
IconButton
<
IconButton
onClick=
{
handleClickOpen
}
onClick=
{
handleClickOpen
}
...
@@ -95,7 +126,7 @@ const ProjectListPopper = observer((props: any) => {
...
@@ -95,7 +126,7 @@ const ProjectListPopper = observer((props: any) => {
<
div
className=
{
style
.
projectName
}
>
{
item
.
name
}
</
div
>
<
div
className=
{
style
.
projectName
}
>
{
item
.
name
}
</
div
>
<
div
className=
{
style
.
projectOwnerTime
}
>
<
div
className=
{
style
.
projectOwnerTime
}
>
<
span
className=
{
style
.
projectOwner
}
title=
{
item
.
owner
}
>
<
span
className=
{
style
.
projectOwner
}
title=
{
item
.
owner
}
>
{
item
.
own
er
}
{
item
.
pow
er
}
</
span
>
</
span
>
<
span
className=
{
style
.
projectTime
}
>
<
span
className=
{
style
.
projectTime
}
>
{
moment
(
item
.
createdAt
).
format
(
"YYYY-MM-DD"
)
}
{
moment
(
item
.
createdAt
).
format
(
"YYYY-MM-DD"
)
}
...
...
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