Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
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
pseer
gxpt_wechat
Commits
077d4999
Commit
077d4999
authored
Jan 22, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备操作细节优化
parent
7c01e522
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
index.vue
pages/deviceManage/index.vue
+8
-4
No files found.
pages/deviceManage/index.vue
View file @
077d4999
...
...
@@ -62,7 +62,7 @@
<view
v-if=
"val.deviceList.el.status >=1"
class=
""
>
<!--
<button
@
tap=
"onDeviceRun(20,val.deviceList.el.devId)"
class=
"cu-btn bg-blue margin-right-sm"
>
开启
</button>
<button
@
tap=
"onDeviceRun(40,val.deviceList.el.devId)"
class=
"cu-btn bg-blue"
>
关闭
</button>
-->
<switch
class=
'red'
data-type=
"door"
:data-index=
"index"
:data-k=
"k"
:data-id=
"val.deviceList.el.devId"
@
change=
"onSwitchDoor"
:class=
"val.deviceList.el.status==3?'checked':''"
:checked=
"val.deviceList.el.status==3?true:false"
color=
"#e54d42"
></switch>
<switch
data-type=
"door"
:data-index=
"index"
:data-k=
"k"
:data-id=
"val.deviceList.el.devId"
@
change=
"onSwitchDoor"
:class=
"val.deviceList.el.status==3?'checked':''"
:checked=
"val.deviceList.el.status==3?true:false"
color=
"#e54d42"
></switch>
</view>
<view
v-else
class=
""
>
<text>
离线
</text>
...
...
@@ -134,8 +134,12 @@ import moment from "@/common/moment";
cleanStatusEnum
:{},
switchDoor
:
true
,
switchEl
:
true
,
deviceTime
:{
deviceTime
:{},
optionStatus
:{
10
:
'开门'
,
20
:
'取电'
,
30
:
'锁门'
,
40
:
'断电'
}
};
},
...
...
@@ -257,7 +261,7 @@ import moment from "@/common/moment";
if
(
res
.
data
.
code
===
200
){
uni
.
showToast
({
icon
:
"success"
,
title
:
"操作
成功"
title
:
this
.
optionStatus
[
opType
]
+
"
成功"
})
return
((
id
)
=>
{
...
...
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