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
9f07cea9
Commit
9f07cea9
authored
Jan 03, 2025
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
c925f834
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
OnekeyStartStopPage.vue
src/views/RemotePage/OnekeyStartStopPage.vue
+8
-5
No files found.
src/views/RemotePage/OnekeyStartStopPage.vue
View file @
9f07cea9
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
<div
class=
"loading-spinner"
></div>
<div
class=
"loading-spinner"
></div>
<p>
命令执行中,请稍后......
</p>
<p>
命令执行中,请稍后......
</p>
<p
v-show=
"isStop"
>
倒计时
{{
countDown
}}
秒
</p>
<p
v-show=
"isStop"
>
倒计时
{{
countDown
}}
秒
</p>
<p
v-show=
"isWait"
>
正在获取停止状态,请稍后
</p>
</div>
</div>
<el-dialog
@
close=
"onClose"
:close-on-click-modal=
"false"
v-model=
"dialogFormVisible"
width=
"30%"
title=
"请选择进行一键启动的循环泵:"
center
>
<el-dialog
@
close=
"onClose"
:close-on-click-modal=
"false"
v-model=
"dialogFormVisible"
width=
"30%"
title=
"请选择进行一键启动的循环泵:"
center
>
...
@@ -119,10 +120,11 @@ const stationId = ref(null);
...
@@ -119,10 +120,11 @@ const stationId = ref(null);
const
limit
=
ref
(
0
);
const
limit
=
ref
(
0
);
const
dialogFormVisible
=
ref
(
false
);
const
dialogFormVisible
=
ref
(
false
);
const
isSingle
=
ref
(
false
);
const
isSingle
=
ref
(
false
);
const
countDown
=
ref
(
1
2
0
);
const
countDown
=
ref
(
1
8
0
);
const
props
=
{
multiple
:
false
,
emitPath
:
false
}
const
props
=
{
multiple
:
false
,
emitPath
:
false
}
const
isRunning
=
ref
(
false
);
const
isRunning
=
ref
(
false
);
const
isStop
=
ref
(
false
);
const
isStop
=
ref
(
false
);
const
isWait
=
ref
(
false
);
const
userInfo
=
store
.
getters
.
getUserInfo
();
const
userInfo
=
store
.
getters
.
getUserInfo
();
var
startPercent
=
reactive
(
new
Array
({
var
startPercent
=
reactive
(
new
Array
({
...
@@ -787,7 +789,7 @@ async function OnekeyStop(){
...
@@ -787,7 +789,7 @@ async function OnekeyStop(){
}
}
isStop
.
value
=
true
;
isStop
.
value
=
true
;
countDown
.
value
=
1
2
0
;
countDown
.
value
=
1
8
0
;
isRunning
.
value
=
true
;
isRunning
.
value
=
true
;
startCountdown
();
startCountdown
();
}
catch
(
error
)
{
}
catch
(
error
)
{
...
@@ -834,6 +836,7 @@ async function handleSetOneStartStopTwo( stationId,unitId,runStepsFlag,stopSteps
...
@@ -834,6 +836,7 @@ async function handleSetOneStartStopTwo( stationId,unitId,runStepsFlag,stopSteps
}
}
async
function
OnekeyStopEnd
()
{
async
function
OnekeyStopEnd
()
{
isStop
.
value
=
false
;
stationId
.
value
=
options
[
0
].
children
[
0
].
children
.
find
(
item
=>
item
.
value
===
transferId
.
value
).
stationId
stationId
.
value
=
options
[
0
].
children
[
0
].
children
.
find
(
item
=>
item
.
value
===
transferId
.
value
).
stationId
try
{
try
{
...
@@ -992,7 +995,7 @@ async function OnekeyStopEnd() {
...
@@ -992,7 +995,7 @@ async function OnekeyStopEnd() {
}
}
finally
{
finally
{
isLoading
.
value
=
false
;
isLoading
.
value
=
false
;
is
Stop
.
value
=
false
;
is
Wait
.
value
=
false
;
}
}
}
}
...
@@ -1027,7 +1030,7 @@ function getSteps() {
...
@@ -1027,7 +1030,7 @@ function getSteps() {
startCountdownTwo
();
startCountdownTwo
();
}
else
{
}
else
{
clearInterval
(
timerTwo
)
clearInterval
(
timerTwo
)
countDown
.
value
=
1
2
0
;
countDown
.
value
=
1
8
0
;
isStop
.
value
=
false
;
isStop
.
value
=
false
;
}
}
}
}
...
@@ -1036,7 +1039,7 @@ function getSteps() {
...
@@ -1036,7 +1039,7 @@ function getSteps() {
}
else
{
}
else
{
clearInterval
(
timerTwo
)
clearInterval
(
timerTwo
)
isLoading
.
value
=
false
isLoading
.
value
=
false
countDown
.
value
=
1
2
0
;
countDown
.
value
=
1
8
0
;
isStop
.
value
=
false
;
isStop
.
value
=
false
;
}
}
const
getItem
=
item
?
item
:
itemTwo
const
getItem
=
item
?
item
:
itemTwo
...
...
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