Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
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
CivManage
Commits
2729bc35
Commit
2729bc35
authored
Aug 03, 2023
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '增加接口循环调用时间'
parent
d92e639f
Pipeline
#77092
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
26 deletions
+6
-26
LookModal.jsx
...es/platformCenter/scheduledTasks/components/LookModal.jsx
+4
-2
index.jsx
src/pages/platformCenter/scheduledTasks/index.jsx
+2
-24
No files found.
src/pages/platformCenter/scheduledTasks/components/LookModal.jsx
View file @
2729bc35
...
...
@@ -43,8 +43,10 @@ const LookModal = props => {
const
fixedVariable
=
useRef
([
'昨天'
,
'今天'
,
'上周'
,
'本周'
,
'本月'
,
'上月'
,
'自定义'
]);
useEffect
(()
=>
{
getSiteList
();
getLogList
();
if
(
visible
)
{
getSiteList
();
getLogList
();
}
},
[
visible
]);
const
getSiteList
=
()
=>
{
...
...
src/pages/platformCenter/scheduledTasks/index.jsx
View file @
2729bc35
/* eslint-disable func-names */
/* eslint-disable no-else-return */
/* eslint-disable no-unneeded-ternary */
import
React
,
{
useState
,
useEffect
,
useRef
}
from
'react'
;
...
...
@@ -186,29 +187,6 @@ const ScheduledTasks = () => {
},
[]);
const
getIISAgentLog
=
()
=>
{
// const worker = new Worker('logWorker.js');
// GetIISAgentLog().then(res => {
// if (res.code === 0) {
// debugger;
// worker.postMessage(res.data);
// worker.onmessage = e => {
// setLogList(e.data);
// debugger;
// scroll.current.scrollTop = scroll.current.scrollHeight;
// timer = setTimeout(() => {
// getIISAgentLog();
// }, 2000);
// };
// } else {
// notification.error({
// message: '提示',
// duration: 3,
// description: res.msg,
// });
// clearInterval(timer);
// timer = null;
// }
// });
GetIISAgentLog
().
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
let
arr
=
[];
...
...
@@ -242,7 +220,7 @@ const ScheduledTasks = () => {
scroll
.
current
.
scrollTop
=
scroll
.
current
.
scrollHeight
;
timer
=
setTimeout
(()
=>
{
getIISAgentLog
();
},
2
000
);
},
5
000
);
}
else
{
notification
.
error
({
message
:
'提示'
,
...
...
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