Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
memberTag-web
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
memberTag
memberTag-web
Commits
ca7ddab7
Commit
ca7ddab7
authored
Jun 28, 2020
by
Kyle_Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加倒计时
parent
719bb8e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
Trash.vue
src/components/Trash.vue
+10
-2
No files found.
src/components/Trash.vue
View file @
ca7ddab7
...
...
@@ -11,7 +11,8 @@
title=
"批处理撕标签"
:visible
.
sync=
"dialogVisible"
width=
"600px"
@
open=
"dialogOpen"
>
@
open=
"dialogOpen"
@
closed=
"dialogClosed"
>
<el-alert
title=
"每次操作一键清除的时间间隔为6小时。"
type=
"info"
...
...
@@ -52,7 +53,8 @@ export default {
trashList
:
[],
stateComponent
:
''
,
dialogVisible
:
false
,
delTime
:
1
delTime
:
1
,
interval
:
undefined
}
},
components
:
{
CycleWrap
,
Success
,
Pending
},
...
...
@@ -87,8 +89,14 @@ export default {
const
{
errorCode
,
message
,
result
}
=
res
;
if
(
errorCode
!=
1
)
return
this
.
$message
.
error
(
message
);
this
.
delTime
=
result
;
this
.
interval
=
setInterval
(
_
=>
{
this
.
delTime
-=
1000
;
},
1000
)
})
},
dialogClosed
()
{
if
(
this
.
interval
)
clearInterval
(
this
.
interval
);
},
getDelTime
()
{
let
s
=
parseInt
(
this
.
delTime
%
(
1000
*
60
)
/
1000
);
let
m
=
parseInt
((
this
.
delTime
%
(
1000
*
60
*
60
))
/
(
1000
*
60
));
...
...
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