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
ebe9c6f4
Commit
ebe9c6f4
authored
Oct 25, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一键启停代码修改
parent
c0d04b6f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
17 deletions
+32
-17
OnekeyStartStopPage.vue
src/views/RemotePage/OnekeyStartStopPage.vue
+32
-17
No files found.
src/views/RemotePage/OnekeyStartStopPage.vue
View file @
ebe9c6f4
...
...
@@ -6,7 +6,7 @@
<p
v-show=
"isStop"
>
倒计时
{{
countDown
}}
秒
</p>
</div>
<el-dialog
v-model=
"dialogFormVisible"
width=
"30%"
title=
"请选择进行一键启动的循环泵:"
center
>
<el-dialog
@
close=
"onClose"
:close-on-click-modal=
"false"
v-model=
"dialogFormVisible"
width=
"30%"
title=
"请选择进行一键启动的循环泵:"
center
>
<div
style=
"display: flex;justify-content: center;align-items: center; height: 150px;"
>
<el-button
type=
"primary"
:loading=
"isLoading"
@
click=
"OneKeyStart(1)"
style=
"margin-right: 50px;"
>
一号循环泵
</el-button>
<el-button
type=
"primary"
:loading=
"isLoading"
@
click=
"OneKeyStart(2)"
>
二号循环泵
</el-button>
...
...
@@ -684,7 +684,7 @@ async function TransferOpen() {
await
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
1000
));
activeStep
.
value
=
7
;
handleSetOneStartStop
(
stationId
.
value
,
transferId
.
value
,
false
,
undefined
,
8
,
undefined
)
handleSetOneStartStop
Two
(
stationId
.
value
,
transferId
.
value
,
false
,
undefined
,
8
,
undefined
)
dialogFormVisible
.
value
=
true
;
}
else
{
scheduledTasks
()
// 定时查询
...
...
@@ -728,10 +728,13 @@ function TransferClose() {
});
}
async
function
OneKeyStart
(
num
)
{
async
function
onClose
()
{
dialogFormVisible
.
value
=
false
;
scheduledTasks
()
// 定时查询
}
async
function
OneKeyStart
(
num
)
{
console
.
log
(
'timerQuery'
,
timerQuery
)
dialogFormVisible
.
value
=
false
;
isLoading
.
value
=
true
;
try
{
const
userId
=
userInfo
.
userId
;
...
...
@@ -741,10 +744,10 @@ async function OneKeyStart(num) {
if
(
result
.
success
)
{
activeStep
.
value
=
8
;
startPercent
[
7
].
color
=
"rgb(103 194 58)"
;
await
handleSetOneStartStop
(
stationId
.
value
,
transferId
.
value
,
true
,
undefined
,
8
,
undefined
)
await
handleSetOneStartStop
Two
(
stationId
.
value
,
transferId
.
value
,
true
,
undefined
,
8
,
undefined
)
}
else
{
startPercent
[
7
].
color
=
"rgb(176 63 63)"
;
await
handleSetOneStartStop
(
stationId
.
value
,
transferId
.
value
,
false
,
undefined
,
8
,
undefined
)
await
handleSetOneStartStop
Two
(
stationId
.
value
,
transferId
.
value
,
false
,
undefined
,
8
,
undefined
)
}
ElMessage
.
success
(
result
.
message
);
}
else
{
...
...
@@ -809,6 +812,18 @@ async function handleSetOneStartStop( stationId,unitId,runStepsFlag,stopStepsFla
scheduledTasks
()
// 定时查询
})
}
async
function
handleSetOneStartStopTwo
(
stationId
,
unitId
,
runStepsFlag
,
stopStepsFlag
,
runSteps
,
stopSteps
)
{
const
params
=
{
stationId
:
stationId
,
unitId
:
unitId
,
runStepsFlag
:
runStepsFlag
,
stopStepsFlag
:
stopStepsFlag
,
runSteps
:
runSteps
,
stopSteps
:
stopSteps
,
}
setOneStartStop
(
params
).
then
(
res
=>
{
})
}
async
function
OnekeyStopEnd
()
{
stationId
.
value
=
options
[
0
].
children
[
0
].
children
.
find
(
item
=>
item
.
value
===
transferId
.
value
).
stationId
...
...
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