Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yindong-tongbai-automation
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lichunliang
yindong-tongbai-automation
Commits
bcd98cac
Commit
bcd98cac
authored
Apr 24, 2025
by
lei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:排水系统弹窗控制修复
parent
ea56db5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
16 deletions
+22
-16
psxt.vue
src/views/Screen/items/psxt.vue
+22
-16
No files found.
src/views/Screen/items/psxt.vue
View file @
bcd98cac
...
...
@@ -33,14 +33,14 @@
<div
class=
"button on"
:class=
"item.status == 1 ? 'active' : ''"
@
click=
"openWaterPump(item)"
@
click=
"openWaterPump(item
, 1
)"
>
开启
</div>
<div
class=
"button off"
:class=
"item.status == 0 ? 'active' : ''"
@
click=
"closeWaterPump(item)"
@
click=
"closeWaterPump(item
, 0
)"
>
关闭
</div>
...
...
@@ -94,8 +94,8 @@
<el-input
placeholder=
""
v-model=
"password"
show-password
></el-input>
</div>
<div>
<div
class=
"button close"
@
click=
"
submitPumpPassword(0)"
>
关闭
</div>
<div
class=
"button"
@
click=
"submitPumpPassword(
1)"
>
开启
</div>
<div
class=
"button close"
@
click=
"
upWindowShow = false"
>
取消
</div>
<div
class=
"button"
@
click=
"submitPumpPassword(
)"
>
确认
</div>
</div>
</div>
</div>
...
...
@@ -120,6 +120,7 @@ export default {
],
sumpData
:
[],
pumpList
:
[],
pumpStatus
:
0
,
//水泵状态
};
},
created
()
{
...
...
@@ -139,34 +140,39 @@ export default {
});
},
// 水泵开启按钮
openWaterPump
(
item
)
{
openWaterPump
(
item
,
status
)
{
this
.
upWindowShow
=
true
;
// this.submitPumpPassword(pumpId, this.password, 0);
this
.
pumpId
=
item
.
pumpId
;
this
.
pumpStatus
=
status
;
},
// 水泵关闭按钮
closeWaterPump
(
item
)
{
closeWaterPump
(
item
,
status
)
{
this
.
upWindowShow
=
true
;
this
.
pumpId
=
item
.
pumpId
;
this
.
pumpStatus
=
status
;
this
.
password
=
""
;
},
//提交水泵密码
submitPumpPassword
(
status
)
{
submitPumpPassword
()
{
let
pumpId
=
this
.
pumpId
;
let
password
=
this
.
password
;
if
(
!
password
)
{
return
this
.
$modal
.
msgError
(
"
请输入密码
"
);
}
updatePumpSwitch
({
pumpId
,
password
,
status
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
upWindowShow
=
false
;
this
.
password
=
""
;
this
.
$modal
.
msgSuccess
(
res
.
msg
);
this
.
initPumpList
();
}
else
{
this
.
$modal
.
msgError
(
res
.
msg
);
updatePumpSwitch
({
pumpId
,
password
,
status
:
this
.
pumpStatus
}).
then
(
(
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
upWindowShow
=
false
;
this
.
password
=
""
;
this
.
$modal
.
msgSuccess
(
res
.
msg
);
this
.
initPumpList
();
}
else
{
this
.
$modal
.
msgError
(
res
.
msg
);
}
}
}
);
);
},
},
filters
:
{
...
...
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