Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
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
zhouqian
vue-gjjs
Commits
2e057e0a
Commit
2e057e0a
authored
Mar 16, 2022
by
liuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mgrtsk定时任务(前端实现)
parent
65e9d8e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
Tskmgr.vue
src/views/Business/Mgrtsk/Tskmgr.vue
+13
-2
No files found.
src/views/Business/Mgrtsk/Tskmgr.vue
View file @
2e057e0a
...
@@ -335,6 +335,7 @@ export default {
...
@@ -335,6 +335,7 @@ export default {
data
:
[],
data
:
[],
},
},
buttonFlag
:
false
,
buttonFlag
:
false
,
timer
:
null
};
};
},
},
methods
:
{
methods
:
{
...
@@ -352,14 +353,24 @@ export default {
...
@@ -352,14 +353,24 @@ export default {
}
}
},
},
Start
()
{
Start
()
{
this
.
buttonFlag
=
fals
e
;
this
.
buttonFlag
=
tru
e
;
let
rtnmsg
=
this
.
executeRule
(
"wfetsk.tsklist.butstr"
);
let
rtnmsg
=
this
.
executeRule
(
"wfetsk.tsklist.butstr"
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
}
}
//定时任务
var
timeVal
=
this
.
model
.
wfetsk
.
tsklist
.
redotime
*
1000
;
var
that
=
this
;
this
.
timer
=
setInterval
(
function
(){
let
rtnmsg
=
that
.
executeRule
(
"wfetsk.tsklist.butstr"
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
},
timeVal
);
},
},
Stop
()
{
Stop
()
{
this
.
buttonFlag
=
true
;
this
.
buttonFlag
=
false
;
clearInterval
(
this
.
timer
);
let
rtnmsg
=
this
.
executeRule
(
"wfetsk.tsklist.butstp"
);
let
rtnmsg
=
this
.
executeRule
(
"wfetsk.tsklist.butstp"
);
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
...
...
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