Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TOSTUMI
Project
Project
Details
Activity
Releases
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
Maple
TOSTUMI
Commits
2e28f266
Commit
2e28f266
authored
Mar 05, 2021
by
cellee
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'final' of
http://120.77.240.215:9701/Maple/tostumi.git
into final
parents
03c88b80
390289bb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
18 deletions
+25
-18
ResultPage.tsx
src/pages/UserManagement/LIFEUserManagement/ResultPage.tsx
+23
-17
ServiceProviderManagement.tsx
...t/ServiceProviderManagement/ServiceProviderManagement.tsx
+2
-1
No files found.
src/pages/UserManagement/LIFEUserManagement/ResultPage.tsx
View file @
2e28f266
...
@@ -5,25 +5,31 @@ import { connect, history } from 'umi';
...
@@ -5,25 +5,31 @@ import { connect, history } from 'umi';
const
module
=
'User'
;
const
module
=
'User'
;
const
ResultPage
=
()
=>
{
const
ResultPage
=
()
=>
{
const
[
resultTime
,
setResultTime
]
=
useState
(
3
);
const
[
resultTime
,
setResultTime
]
=
useState
(
3
);
let
timer
:
NodeJS
.
Timeout
;
function
loop
(
i
:
number
)
{
function
loop
(
i
:
number
)
{
if
(
i
<
4
)
{
setResultTime
(
i
);
console
.
log
(
i
);
timer
=
setInterval
(()
=>
{
if
(
i
<=
0
)
{
setResultTime
(
4
-
i
);
clearInterval
(
timer
);
setTimeout
(
function
()
{
loop
(
++
i
);
},
1000
);
}
else
{
setResultTime
(
0
);
history
.
go
(
-
1
);
history
.
go
(
-
1
);
return
;
}
}
setResultTime
(
--
i
);
},
1000
);
}
}
useEffect
(()
=>
{
useEffect
(()
=>
{
loop
(
1
);
loop
(
3
);
return
()
=>
{
clearInterval
(
timer
);
};
},
[]);
},
[]);
const
backPage
=
()
=>
{};
const
backPage
=
()
=>
{
clearTimeout
(
timer
);
history
.
go
(
-
1
);
};
return
(
return
(
<
div
style=
{
{
width
:
'100%'
,
minWidth
:
1020
,
padding
:
34
,
backgroundColor
:
'#ffffff'
}
}
>
<
div
style=
{
{
width
:
'100%'
,
minWidth
:
1020
,
padding
:
34
,
backgroundColor
:
'#ffffff'
}
}
>
<
Result
<
Result
...
@@ -36,9 +42,9 @@ const ResultPage = () => {
...
@@ -36,9 +42,9 @@ const ResultPage = () => {
</
p
>
</
p
>
}
}
extra=
{
[
extra=
{
[
<
Button
type=
"primary"
key=
"ok"
onClick=
{
backPage
}
>
//
<Button type="primary" key="ok" onClick=
{
backPage
}
>
Ok
//
Ok
</
Button
>,
//
</Button>,
<
Button
key=
"back"
onClick=
{
backPage
}
>
<
Button
key=
"back"
onClick=
{
backPage
}
>
Back
Back
</
Button
>,
</
Button
>,
...
...
src/pages/UserManagement/ServiceProviderManagement/ServiceProviderManagement.tsx
View file @
2e28f266
...
@@ -254,13 +254,14 @@ const ServiceProviderManagement = (props: propsType) => {
...
@@ -254,13 +254,14 @@ const ServiceProviderManagement = (props: propsType) => {
{
{
name
:
[
'status'
,
'Services Available'
],
name
:
[
'status'
,
'Services Available'
],
data
:
[...
options
],
data
:
[...
options
],
default
:
readyData
.
serviceScope
||
undefined
,
},
},
]
}
]
}
community=
"serviceCommunityList"
community=
"serviceCommunityList"
onSubmit=
{
CallBackTitleSearch
}
onSubmit=
{
CallBackTitleSearch
}
defaultValue=
{
{
defaultValue=
{
{
providerName
:
readyData
.
providerName
,
providerName
:
readyData
.
providerName
,
// status:,
// status:
readyData.serviceScope
,
}
}
}
}
checklist=
{
checklist=
{
readyData
.
serviceCommunityList
.
length
!==
0
?
readyData
.
serviceCommunityList
:
null
readyData
.
serviceCommunityList
.
length
!==
0
?
readyData
.
serviceCommunityList
:
null
...
...
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