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
53d8d5e5
Commit
53d8d5e5
authored
Aug 11, 2022
by
wuyongsheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 点击遮罩关闭
parent
e475c840
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
16 deletions
+21
-16
index.module.css
src/views/Project/ProjectData/UpLoaderFile/index.module.css
+7
-2
index.module.css
src/views/Project/ProjectData/index.module.css
+1
-1
index.tsx
src/views/Project/ProjectJobDetail/index.tsx
+1
-1
ChangePermission.tsx
...ectSetting/ProjectMembers/components/ChangePermission.tsx
+2
-10
index.tsx
src/views/Project/components/CurrentProject/index.tsx
+6
-0
index.tsx
src/views/Project/components/ProjectListPopper/index.tsx
+4
-2
No files found.
src/views/Project/ProjectData/UpLoaderFile/index.module.css
View file @
53d8d5e5
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
.uploderBoxLeft
{
.uploderBoxLeft
{
width
:
300px
;
width
:
300px
;
}
}
.dropTitle
{
.dropTitle
{
line-height
:
22px
;
line-height
:
22px
;
font-size
:
14px
;
font-size
:
14px
;
...
@@ -14,6 +15,7 @@
...
@@ -14,6 +15,7 @@
font-weight
:
600
;
font-weight
:
600
;
}
}
.dropBox
{
.dropBox
{
cursor
:
pointer
;
height
:
300px
;
height
:
300px
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
...
@@ -22,6 +24,9 @@
...
@@ -22,6 +24,9 @@
border
:
1px
dashed
#d1d6de
;
border
:
1px
dashed
#d1d6de
;
border-radius
:
4px
;
border-radius
:
4px
;
}
}
.dropBox
:hover
{
background-color
:
#f7f8fa
;
}
.dropBoxDragActive
{
.dropBoxDragActive
{
background-color
:
#f7f8fa
;
background-color
:
#f7f8fa
;
}
}
...
@@ -54,12 +59,12 @@
...
@@ -54,12 +59,12 @@
justify-content
:
flex-start
;
justify-content
:
flex-start
;
align-items
:
center
;
align-items
:
center
;
}
}
.fileIconBoxText
{
.fileIconBoxText
{
display
:
block
;
display
:
block
;
width
:
260px
;
width
:
260px
;
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
-o-text-overflow
:
ellipsis
;
-o-text-overflow
:
ellipsis
;
white-space
:
nowrap
;
white-space
:
nowrap
;
}
}
.noFile
{
.noFile
{
...
...
src/views/Project/ProjectData/index.module.css
View file @
53d8d5e5
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
width
:
calc
(
100vw
-
220px
);
width
:
calc
(
100vw
-
220px
);
position
:
fixed
;
position
:
fixed
;
bottom
:
0px
;
bottom
:
0px
;
border
:
1px
solid
#ebedf0
;
border
-top
:
1px
solid
#ebedf0
;
z-index
:
100
;
z-index
:
100
;
background-color
:
#fff
;
background-color
:
#fff
;
display
:
flex
;
display
:
flex
;
...
...
src/views/Project/ProjectJobDetail/index.tsx
View file @
53d8d5e5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-06-21 20:03:56
* @Date: 2022-06-21 20:03:56
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditTime: 2022-08-
09 18:28:39
* @LastEditTime: 2022-08-
11 17:13:52
* @FilePath: /bkunyun/src/views/Project/ProjectSubmitWork/index.tsx
* @FilePath: /bkunyun/src/views/Project/ProjectSubmitWork/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
...
src/views/Project/ProjectSetting/ProjectMembers/components/ChangePermission.tsx
View file @
53d8d5e5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-05-31 10:18:13
* @Date: 2022-05-31 10:18:13
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditTime: 2022-08-
08 18:17:20
* @LastEditTime: 2022-08-
11 18:05:06
* @FilePath: /bkunyun/src/views/Project/ProjectSetting/index.tsx
* @FilePath: /bkunyun/src/views/Project/ProjectSetting/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -37,15 +37,7 @@ const ChangePermission = observer((props: IProps) => {
...
@@ -37,15 +37,7 @@ const ChangePermission = observer((props: IProps) => {
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
permissionDialog
?.
isShow
)
{
if
(
permissionDialog
?.
isShow
)
{
http
.
get
<
IResponse
<
any
>
>
("/cpp/project/listroles").then((res) =
>
{
http
.
get
<
IResponse
<
any
>
>
("/cpp/project/listroles").then((res) =
>
{
const
arr
=
[];
setSelectOptions
(
res
.
data
);
const
{
data
}
=
res
;
for
(
const
key
in
data
)
{
arr
.
push
({
label
:
String
(
data
[
key
]),
value
:
key
,
});
}
setSelectOptions
(
arr
);
}
);
}
);
}
}
}, [http, permissionDialog]);
}, [http, permissionDialog]);
...
...
src/views/Project/components/CurrentProject/index.tsx
View file @
53d8d5e5
...
@@ -21,6 +21,11 @@ const CurrentProject = observer(() => {
...
@@ -21,6 +21,11 @@ const CurrentProject = observer(() => {
document
.
addEventListener
(
"click"
,
(
e
)
=>
{
document
.
addEventListener
(
"click"
,
(
e
)
=>
{
setProjectListOpen
(
false
);
setProjectListOpen
(
false
);
});
});
return
()
=>
{
document
.
removeEventListener
(
"click"
,
(
e
)
=>
{
setProjectListOpen
(
false
);
});
};
},
[]);
},
[]);
const
handleShowProjectList
=
(
event
:
React
.
MouseEvent
<
HTMLElement
>
)
=>
{
const
handleShowProjectList
=
(
event
:
React
.
MouseEvent
<
HTMLElement
>
)
=>
{
...
@@ -85,6 +90,7 @@ const CurrentProject = observer(() => {
...
@@ -85,6 +90,7 @@ const CurrentProject = observer(() => {
<
Fade
{
...
TransitionProps
}
timeout=
{
350
}
>
<
Fade
{
...
TransitionProps
}
timeout=
{
350
}
>
<
div
>
<
div
>
<
ProjectListPopper
<
ProjectListPopper
setProjectListOpen=
{
setProjectListOpen
}
handleClickOpen=
{
openAddProject
}
handleClickOpen=
{
openAddProject
}
handleChangeCurrentProject=
{
handleChangeCurrentProject
}
handleChangeCurrentProject=
{
handleChangeCurrentProject
}
/>
/>
...
...
src/views/Project/components/ProjectListPopper/index.tsx
View file @
53d8d5e5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 吴永生 15770852798@163.com
* @Author: 吴永生 15770852798@163.com
* @Date: 2022-08-02 11:43:28
* @Date: 2022-08-02 11:43:28
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditors: 吴永生 15770852798@163.com
* @LastEditTime: 2022-08-
02 19:36:32
* @LastEditTime: 2022-08-
11 18:50:31
* @FilePath: /bkunyun/src/views/Project/components/ProjectListPopper/index.tsx
* @FilePath: /bkunyun/src/views/Project/components/ProjectListPopper/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -19,7 +19,8 @@ import { toJS } from "mobx";
...
@@ -19,7 +19,8 @@ import { toJS } from "mobx";
import
{
observer
}
from
"mobx-react-lite"
;
import
{
observer
}
from
"mobx-react-lite"
;
const
ProjectListPopper
=
observer
((
props
:
any
)
=>
{
const
ProjectListPopper
=
observer
((
props
:
any
)
=>
{
const
{
handleChangeCurrentProject
,
handleClickOpen
}
=
props
;
const
{
handleChangeCurrentProject
,
handleClickOpen
,
setProjectListOpen
}
=
props
;
const
{
currentProjectStore
}
=
useStores
();
const
{
currentProjectStore
}
=
useStores
();
const
projectList
=
toJS
(
currentProjectStore
.
projectList
);
const
projectList
=
toJS
(
currentProjectStore
.
projectList
);
const
currentProjectId
=
toJS
(
currentProjectStore
.
currentProjectInfo
.
id
);
const
currentProjectId
=
toJS
(
currentProjectStore
.
currentProjectInfo
.
id
);
...
@@ -36,6 +37,7 @@ const ProjectListPopper = observer((props: any) => {
...
@@ -36,6 +37,7 @@ const ProjectListPopper = observer((props: any) => {
},
[
projectList
,
name
]);
},
[
projectList
,
name
]);
const
handleProjectBox
=
(
e
:
React
.
SyntheticEvent
)
=>
{
const
handleProjectBox
=
(
e
:
React
.
SyntheticEvent
)
=>
{
setProjectListOpen
(
false
);
e
.
nativeEvent
.
stopImmediatePropagation
();
e
.
nativeEvent
.
stopImmediatePropagation
();
};
};
...
...
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