Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
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
海康威视
web-project
Commits
6505a2d5
Commit
6505a2d5
authored
Jan 14, 2025
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一键停止倒计时结束后添加文字提示
parent
87220694
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
OnekeyStartStopPage.vue
src/views/RemotePage/OnekeyStartStopPage.vue
+7
-3
No files found.
src/views/RemotePage/OnekeyStartStopPage.vue
View file @
6505a2d5
...
@@ -787,7 +787,7 @@ async function OnekeyStop(){
...
@@ -787,7 +787,7 @@ async function OnekeyStop(){
isLoading
.
value
=
false
;
isLoading
.
value
=
false
;
return
;
return
;
}
}
isWait
.
value
=
false
isStop
.
value
=
true
;
isStop
.
value
=
true
;
countDown
.
value
=
180
;
countDown
.
value
=
180
;
isRunning
.
value
=
true
;
isRunning
.
value
=
true
;
...
@@ -995,7 +995,6 @@ async function OnekeyStopEnd() {
...
@@ -995,7 +995,6 @@ async function OnekeyStopEnd() {
}
}
finally
{
finally
{
isLoading
.
value
=
false
;
isLoading
.
value
=
false
;
isWait
.
value
=
false
;
}
}
}
}
...
@@ -1018,7 +1017,8 @@ function getSteps() {
...
@@ -1018,7 +1017,8 @@ function getSteps() {
// 一键启动
// 一键启动
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
// 获取的数组里,runStart和stopStart有一个是true就输出
// 获取的数组里,runStart和stopStart有一个是true就输出
const
item
=
res
.
data
.
find
(
item
=>
(
item
.
runStart
===
true
&&
item
.
stopStart
===
false
)
||
(
item
.
runStart
===
false
&&
item
.
stopStart
===
true
))
// const item = res.data.find(item => (item.runStart === true && item.stopStart === false) || (item.runStart === false && item.stopStart === true ))
const
item
=
res
.
data
.
find
(
item
=>
(
item
.
runStart
===
true
||
item
.
stopStart
===
true
))
// 获取的数组里,都是false就输出第一个
// 获取的数组里,都是false就输出第一个
const
itemTwo
=
res
.
data
.
find
(
item
=>
item
.
unitId
===
transferId
.
value
)
const
itemTwo
=
res
.
data
.
find
(
item
=>
item
.
unitId
===
transferId
.
value
)
// console.log('item',item)
// console.log('item',item)
...
@@ -1027,6 +1027,7 @@ function getSteps() {
...
@@ -1027,6 +1027,7 @@ function getSteps() {
if
(
isLoading
.
value
===
false
)
{
if
(
isLoading
.
value
===
false
)
{
if
(
item
.
stopStart
===
true
)
{
if
(
item
.
stopStart
===
true
)
{
isStop
.
value
=
true
;
isStop
.
value
=
true
;
isWait
.
value
=
false
startCountdownTwo
();
startCountdownTwo
();
}
else
{
}
else
{
clearInterval
(
timerTwo
)
clearInterval
(
timerTwo
)
...
@@ -1120,6 +1121,7 @@ const startTimer = () => {
...
@@ -1120,6 +1121,7 @@ const startTimer = () => {
if
(
isRunning
.
value
===
true
&&
countDown
.
value
>
0
)
{
if
(
isRunning
.
value
===
true
&&
countDown
.
value
>
0
)
{
countDown
.
value
--
;
countDown
.
value
--
;
}
else
{
}
else
{
isWait
.
value
=
true
clearInterval
(
timer
);
clearInterval
(
timer
);
isRunning
.
value
=
false
;
isRunning
.
value
=
false
;
}
}
...
@@ -1132,6 +1134,8 @@ const startTimerTwo = () => {
...
@@ -1132,6 +1134,8 @@ const startTimerTwo = () => {
if
(
countDown
.
value
>
0
)
{
if
(
countDown
.
value
>
0
)
{
countDown
.
value
--
;
countDown
.
value
--
;
}
else
{
}
else
{
isStop
.
value
=
false
isWait
.
value
=
true
clearInterval
(
timerTwo
);
clearInterval
(
timerTwo
);
}
}
},
1000
);
},
1000
);
...
...
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