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
705ad9a5
Commit
705ad9a5
authored
Jan 11, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
9caf358d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
index.vue
pages/deviceManage/index.vue
+19
-0
No files found.
pages/deviceManage/index.vue
View file @
705ad9a5
...
...
@@ -127,6 +127,9 @@ import moment from "@/common/moment";
cleanStatusEnum
:{},
switchDoor
:
true
,
switchEl
:
true
,
deviceTime
:{
}
};
},
filters
:{
...
...
@@ -217,6 +220,15 @@ import moment from "@/common/moment";
this
.
$forceUpdate
();
},
onDeviceRun
(
opType
,
devId
){
let
that
=
this
;
if
(
this
.
deviceTime
[
devId
]){
uni
.
showToast
({
icon
:
"none"
,
title
:
"操作频繁,请稍微再试"
})
return
}
this
.
deviceTime
[
devId
]
=
true
;
uni
.
showLoading
({
title
:
"请求中"
})
...
...
@@ -230,6 +242,13 @@ import moment from "@/common/moment";
icon
:
"success"
,
title
:
"操作成功"
})
return
((
id
)
=>
{
setTimeout
(()
=>
{
that
.
deviceTime
[
id
]
=
false
;
},
5000
)
})(
devId
)
}
})
}
...
...
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