Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NLT-e-cigarette
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
张伯涛
NLT-e-cigarette
Commits
088af825
Commit
088af825
authored
Sep 06, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页定时任务bug修改
parent
bb5e4780
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
+18
-11
homePageTable.vue
src/views/homePageTable.vue
+18
-11
No files found.
src/views/homePageTable.vue
View file @
088af825
...
...
@@ -629,6 +629,8 @@ export default {
name
:
'HomePageTable'
,
data
()
{
return
{
intercal
:
undefined
,
intercalType
:
false
,
queryParams1
:
{
lineNo
:
''
},
...
...
@@ -714,15 +716,17 @@ export default {
}
},
created
()
{
this
.
getStaTable
()
this
.
intercalType
=
true
this
.
intercal
=
setInterval
(
_
=>
{
this
.
getStaTable
()
},
2000
)
},
mounted
()
{
},
beforeDestroy
()
{
this
.
intercalType
=
false
clearInterval
(
this
.
intercal
)
},
destroyed
()
{
clearInterval
(
this
.
intercal
)
this
.
intercal
=
undefined
},
methods
:
{
/**
...
...
@@ -853,11 +857,6 @@ export default {
},
// 获取表数据
getStaTable
()
{
this
.
intercal
=
setInterval
(
_
=>
{
this
.
getStaTableChild
()
},
2000
)
},
getStaTableChild
()
{
clearInterval
(
this
.
intercal
)
const
params
=
{}
getTableData
(
params
).
then
(
res
=>
{
...
...
@@ -888,10 +887,18 @@ export default {
// this.monitoringData[i].tableData.push(row)
}
if
(
this
.
intercalType
)
{
this
.
intercal
=
setInterval
(
_
=>
{
this
.
getStaTable
()
},
2000
)
}
console
.
log
(
'this.monitoringData'
,
this
.
monitoringData
)
this
.
getStaTable
()
}).
catch
(
_
=>
{
this
.
getStaTable
()
if
(
this
.
intercalType
)
{
this
.
intercal
=
setInterval
(
_
=>
{
this
.
getStaTable
()
},
2000
)
}
})
},
openModel
(
row
,
item
,
data
)
{
...
...
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