Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
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
ReactWeb5
CivWeb
Commits
ce5c9c28
Commit
ce5c9c28
authored
Apr 11, 2024
by
周宏民
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref: 演示功能 临时项目账号权限 支持项目多选
parent
e2b63006
Pipeline
#87153
waiting for manual action with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
index.js
src/components/LoadPage/index.js
+0
-1
index.js
src/pages/bootpage/demonstration/index.js
+10
-2
No files found.
src/components/LoadPage/index.js
View file @
ce5c9c28
...
...
@@ -19,7 +19,6 @@ export default props => {
useEffect
(()
=>
{
if
(
percent
==
undefined
)
return
;
if
(
extra
.
progressCustom
)
return
;
console
.
log
(
percent
,
'percent'
);
// progresRef.current.style.animationDuration = `${10 * percent}s`;
// containerRef.current.style.transitionDuration = `${5 * (percent - lastCurrent.current)}s`;
// lastCurrent.current = percent;
...
...
src/pages/bootpage/demonstration/index.js
View file @
ce5c9c28
...
...
@@ -291,13 +291,21 @@ const Demonstration = props => {
const
data
=
dataStr
?
JSON
.
parse
(
dataStr
)
:
[];
const
obj
=
{};
data
.
forEach
(
d
=>
{
if
(
!
d
[
'项目平台名称'
])
return
;
if
(
!
d
[
'开始时间'
])
return
false
;
if
(
!
d
[
'结束时间'
]
&&
moment
().
isAfter
(
d
[
'开始时间'
]))
{
obj
[
d
[
'项目平台名称'
]]
=
true
;
const
arr
=
d
[
'项目平台名称'
].
split
(
','
);
arr
.
forEach
(
a
=>
{
obj
[
a
]
=
true
;
});
return
;
}
if
(
moment
().
isBetween
(
d
[
'开始时间'
],
d
[
'结束时间'
]))
{
obj
[
d
[
'项目平台名称'
]]
=
true
;
const
arr
=
d
[
'项目平台名称'
].
split
(
','
);
arr
.
forEach
(
a
=>
{
obj
[
a
]
=
true
;
});
}
});
setProjectConfig
(
obj
);
...
...
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