Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-boss
Project
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
姜雷
wx-boss
Commits
f7508ced
Commit
f7508ced
authored
Jan 15, 2020
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into test
parents
b0ab75ac
78aec937
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
92 additions
and
7 deletions
+92
-7
EquipmentState.js
...program/pages/components/EquipmentState/EquipmentState.js
+18
-2
EquipmentState.ts
...program/pages/components/EquipmentState/EquipmentState.ts
+16
-0
EquipmentState.wxss
...ogram/pages/components/EquipmentState/EquipmentState.wxss
+4
-1
EquipmentWarning.js
...ram/pages/components/EquipmentWarning/EquipmentWarning.js
+28
-3
EquipmentWarning.ts
...ram/pages/components/EquipmentWarning/EquipmentWarning.ts
+26
-1
No files found.
miniprogram/pages/components/EquipmentState/EquipmentState.js
View file @
f7508ced
...
...
@@ -160,6 +160,11 @@ Component({
},
openEquipment
:
function
(
e
)
{
var
_this
=
this
;
wx
.
showModal
({
title
:
'提示'
,
content
:
'是否启用设备'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
var
_a
=
e
.
currentTarget
.
dataset
,
code
=
_a
.
code
,
type
=
_a
.
type
;
console
.
log
(
code
);
fetch_1
.
deviceFetch
({
...
...
@@ -175,9 +180,17 @@ Component({
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
});
}
},
});
},
closeEquipment
:
function
(
e
)
{
var
_this
=
this
;
wx
.
showModal
({
title
:
'提示'
,
content
:
'是否禁用设备'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
var
_a
=
e
.
currentTarget
.
dataset
,
code
=
_a
.
code
,
type
=
_a
.
type
;
console
.
log
(
code
);
fetch_1
.
deviceFetch
({
...
...
@@ -193,7 +206,10 @@ Component({
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
});
}
},
});
},
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXF1aXBtZW50U3RhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJFcXVpcG1lbnRTdGF0ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEsNENBQWlEO0FBR2pELFNBQVMsQ0FBQztJQUNSLFNBQVMsRUFBRTtRQUNULFFBQVEsZ0JBQUksQ0FBQztLQUNkO0lBSUQsVUFBVSxFQUFFO1FBQ1YsTUFBTSxFQUFFO1lBQ04sSUFBSSxFQUFFLE1BQU07WUFDWixLQUFLLEVBQUUsQ0FBQztZQUNSLFFBQVEsWUFBQyxNQUFNO2dCQUNiLElBQUksQ0FBQyxRQUFRLEVBQUUsQ0FBQztZQUNsQixDQUFDO1NBQ0Y7S0FDRjtJQUtELElBQUksRUFBRTtRQUNKLE1BQU0sRUFBRSxRQUFRO1FBQ2hCLElBQUksRUFBRSxFQUFFO1FBQ1IsVUFBVSxFQUFFO1lBQ1YsTUFBTSxFQUFFO2dCQUNOLE9BQU8sRUFBRSxDQUFDO2dCQUNWLFFBQVEsRUFBRSxFQUFFO2FBQ2I7WUFDRCxTQUFTLEVBQUU7Z0JBQ1QsT0FBTyxFQUFFLENBQUM7Z0JBQ1YsUUFBUSxFQUFFLEVBQUU7YUFDYjtZQUNELE1BQU0sRUFBRTtnQkFDTixPQUFPLEVBQUUsQ0FBQztnQkFDVixRQUFRLEVBQUUsRUFBRTthQUNiO1lBQ0QsT0FBTyxFQUFFO2dCQUNQLE9BQU8sRUFBRSxDQUFDO2d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AgICBicmVhaztcbiAgICAgICAgICAgICAgY2FzZSAnZm9yYmlkZGVuJzpcbiAgICAgICAgICAgICAgICBsYWJlbCA9ICfnpoHnlKjorr7lpIcnO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICBjYXNlICdvbmxpbmUnOlxuICAgICAgICAgICAgICAgIGxhYmVsID0gJ+WcqOe6v+iuvuWkhyc7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgIGNhc2UgJ29mZmxpbmUnOlxuICAgICAgICAgICAgICAgIGxhYmVsID0gJ+emu+e6v+iuvuWkhyc7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgICAuLi5pdGVtLFxuICAgICAgICAgICAgICBsYWJlbCxcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgfSk7XG4gICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgIHRhYnM6IGxpc3QsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0pXG4gICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgIH0pO1xuICAgIH0sXG4gICAgZmV0Y2hMaXN0KGVudGl0eSkge1xuICAgICAgcmV0dXJuIGRldmljZUZldGNoKHtcbiAgICAgICAgdXJsOiBgL2RldmljZS9yZXBvcnQvc3RhdHVzLyR7dGhpcy5kYXRhLnN0YXR1c31gLFxuICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgYXJlYUlkOiB0aGlzLmRhdGEuYXJlYUlkLFxuICAgICAgICAgIHBhZ2VOdW06IHRoaXMuZGF0YS5wYWdpbmF0aW9uW3RoaXMuZGF0YS5zdGF0dXNdLnBhZ2VOdW0sXG4gICAgICAgICAgcGFnZVNpemU6IHRoaXMuZGF0YS5wYWdpbmF0aW9uW3RoaXMuZGF0YS5zdGF0dXNdLnBhZ2VTaXplLFxuICAgICAgICAgIC4uLmVudGl0eSxcbiAgICAgICAgfSxcbiAgICAgIH0pO1xuICAgIH0sXG4gICAgcmVmcmVzaExpc3QoKSB7XG4gICAgICB3eC5zaG93TG9hZGluZyh7XG4gICAgICAgIHRpdGxlOiAn5Yqg6L295LitJyxcbiAgICAgICAgbWFzazogdHJ1ZSxcbiAgICAgIH0pO1xuICAgICAgdGhpcy5mZXRjaExpc3QoKVxuICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICBpZiAocmVzLmRhdGEgJiYgcmVzLmRhdGEubGVuZ3RoKSB7XG4gICAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgICBbJ2RhdGFMaXN0LicgKyB0aGlzLmRhdGEuc3RhdHVzXTogcmVzLmRhdGEsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICAgWydkYXRhTGlzdC4nICsgdGhpcy5kYXRhLnN0YXR1c106IFtdLFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfVxuICAgICAgICB9KVxuICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgIH0pO1xuICAgIH0sXG4gICAgZ2V0TW9yZUxpc3RJdGVtKCkge1xuICAgICAgd3guc2hvd0xvYWRpbmcoe1xuICAgICAgICB0aXRsZTogJ+WKoOi9veS4rScsXG4gICAgICAgIG1hc2s6IHRydWUsXG4gICAgICB9KTtcbiAgICAgIGxldCBuZXh0UGFnZSA9IHRoaXMuZGF0YS5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RoaXMucmVmcmVzaExpc3QoKTtcbiAgICB9LFxuICAgIG9wZW5FcXVpcG1lbnQoZSkge1xuICAgICAgY29uc3QgeyBjb2RlLCB0eXBlIH0gPSBlLmN1cnJlbnRUYXJnZXQuZGF0YXNldDtcbiAgICAgIGNvbnNvbGUubG9nKGNvZGUpO1xuICAgICAgZGV2aWNlRmV0Y2goe1xuICAgICAgICB1cmw6IGAvZGV2aWNlLyR7Y29kZX0vJHt0eXBlfS9lbmFibGVgLFxuICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgIH0pXG4gICAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgIHRpdGxlOiByZXMubXNnIHx8ICfmk43kvZzmiJDlip8nLFxuICAgICAgICAgIH0pO1xuICAgICAgICAgIHRoaXMucmVmcmVzaExpc3QoKTtcbiAgICAgICAgfSlcbiAgICAgICAgLmNhdGNoKGVyciA9PiB7XG4gICAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgICAgfSk7XG4gICAgfSxcbiAgICBjbG9zZUVxdWlwbWVudChlKSB7XG4gICAgICBjb25zdCB7IGNvZGUsIHR5cGUgfSA9IGUuY3VycmVudFRhcmdldC5kYXRhc2V0O1xuICAgICAgY29uc29sZS5sb2coY29kZSk7XG4gICAgICBkZXZpY2VGZXRjaCh7XG4gICAgICAgIHVybDogYC9kZXZpY2UvJHtjb2RlfS8ke3R5cGV9L2ZvcmJpZGRlbmAsXG4gICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgfSlcbiAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgdGl0bGU6IHJlcy5tc2cgfHwgJ+aTjeS9nOaIkOWKnycsXG4gICAgICAgICAgfSk7XG4gICAgICAgICAgdGhpcy5yZWZyZXNoTGlzdCgpO1xuICAgICAgICB9KVxuICAgICAgICAuY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AgICAgZGV2aWNlRmV0Y2goe1xuICAgICAgICB1cmw6IGAvZGV2aWNlL3JlcG9ydC9kZXZpY2VTdGF1dHNDb3VudC8ke3RoaXMuZGF0YS5hcmVhSWR9YCxcbiAgICAgIH0pXG4gICAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICBjb25zdCBsaXN0ID0gcmVzLmRhdGEubWFwKGl0ZW0gPT4ge1xuICAgICAgICAgICAgbGV0IGxhYmVsID0gJyc7XG4gICAgICAgICAgICBzd2l0Y2ggKGl0ZW0uc3RhdHVzKSB7XG4gICAgICAgICAgICAgIGNhc2UgJ2VuYWJsZSc6XG4gICAgICAgICAgICAgICAgbGFiZWwgPSAn5ZCv55So6K6+5aSHJztcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgY2FzZSAnZm9yYmlkZGVuJzpcbiAgICAgICAgICAgICAgICBsYWJlbCA9ICfnpoHnlKjorr7lpIcnO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICBjYXNlICdvbmxpbmUnOlxuICAgICAgICAgICAgICAgIGxhYmVsID0gJ+WcqOe6v+iuvuWkhyc7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgIGNhc2UgJ29mZmxpbmUnOlxuICAgICAgICAgICAgICAgIGxhYmVsID0gJ+emu+e6v+iuvuWkhyc7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgICAuLi5pdGVtLFxuICAgICAgICAgICAgICBsYWJlbCxcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgfSk7XG4gICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgIHRhYnM6IGxpc3QsXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0pXG4gICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgIH0pO1xuICAgIH0sXG4gICAgZmV0Y2hMaXN0KGVudGl0eSkge1xuICAgICAgcmV0dXJuIGRldmljZUZldGNoKHtcbiAgICAgICAgdXJsOiBgL2RldmljZS9yZXBvcnQvc3RhdHVzLyR7dGhpcy5kYXRhLnN0YXR1c31gLFxuICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgYXJlYUlkOiB0aGlzLmRhdGEuYXJlYUlkLFxuICAgICAgICAgIHBhZ2VOdW06IHRoaXMuZGF0YS5wYWdpbmF0aW9uW3RoaXMuZGF0YS5zdGF0dXNdLnBhZ2VOdW0sXG4gICAgICAgICAgcGFnZVNpemU6IHRoaXMuZGF0YS5wYWdpbmF0aW9uW3RoaXMuZGF0YS5zdGF0dXNdLnBhZ2VTaXplLFxuICAgICAgICAgIC4uLmVudGl0eSxcbiAgICAgICAgfSxcbiAgICAgIH0pO1xuICAgIH0sXG4gICAgcmVmcmVzaExpc3QoKSB7XG4gICAgICB3eC5zaG93TG9hZGluZyh7XG4gICAgICAgIHRpdGxlOiAn5Yqg6L295LitJyxcbiAgICAgICAgbWFzazogdHJ1ZSxcbiAgICAgIH0pO1xuICAgICAgdGhpcy5mZXRjaExpc3QoKVxuICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICBpZiAocmVzLmRhdGEgJiYgcmVzLmRhdGEubGVuZ3RoKSB7XG4gICAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgICBbJ2RhdGFMaXN0LicgKyB0aGlzLmRhdGEuc3RhdHVzXTogcmVzLmRhdGEsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICAgWydkYXRhTGlzdC4nICsgdGhpcy5kYXRhLnN0YXR1c106IFtdLFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfVxuICAgICAgICB9KVxuICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgIH0pO1xuICAgIH0sXG4gICAgZ2V0TW9yZUxpc3RJdGVtKCkge1xuICAgICAgd3guc2hvd0xvYWRpbmcoe1xuICAgICAgICB0aXRsZTogJ+WKoOi9veS4rScsXG4gICAgICAgIG1hc2s6IHRydWUsXG4gICAgICB9KTtcbiAgICAgIGxldCBuZXh0UGFnZSA9IHRoaXMuZGF0YS5wYWdpbmF0aW9uW3RoaXMuZGF0YS5zdGF0dXNdLnBhZ2VOdW0gKyAxO1xuICAgICAgdGhpcy5mZXRjaExpc3Qoe1xuICAgICAgICBwYWdlTnVtOiBuZXh0UGFnZSxcbiAgICAgIH0pXG4gICAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgIGlmIChyZXMuZGF0YSAmJiByZXMuZGF0YS5sZW5ndGgpIHtcbiAgICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICAgIFsnZGF0YUxpc3QuJyArIHRoaXMuZGF0YS5zdGF0dXNdOiBbXG4gICAgICAgICAgICAgICAgLi4udGhpcy5kYXRhLmRhdGFMaXN0W3RoaXMuZGF0YS5zdGF0dXNdLFxuICAgICAgICAgICAgICAgIC4uLnJlcy5kYXRhLFxuICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICBbJ3BhZ2luYXRpb24uJyArIHRoaXMuZGF0YS5zdGF0dXMgKyAnLnBhZ2VOdW0nXTogbmV4dFBhZ2UsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0pXG4gICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgICAgfSk7XG4gICAgfSxcbiAgICBjaGFuZ2VUYWIoZSkge1xuICAgICAgY29uc3QgeyBzdGF0dXMgfSA9IGUuY3VycmVudFRhcmdldC5kYXRhc2V0O1xuICAgICAgY29uc29sZS5sb2coZSwgc3RhdHVzKTtcbiAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgIHN0YXR1cyxcbiAgICAgIH0pO1xuICAgICAgaWYgKCF0aGlzLmRhdGEuZGF0YUxpc3Rbc3RhdHVzXS5sZW5ndGgpIHRoaXMucmVmcmVzaExpc3QoKTtcbiAgICB9LFxuICAgIG9wZW5FcXVpcG1lbnQoZSkge1xuICAgICAgd3guc2hvd01vZGFsKHtcbiAgICAgICAgdGl0bGU6ICfmj5DnpLonLFxuICAgICAgICBjb250ZW50OiAn5piv5ZCm5ZCv55So6K6+5aSHJyxcbiAgICAgICAgc3VjY2VzczogcmVzID0+IHtcbiAgICAgICAgICBpZiAocmVzLmNvbmZpcm0pIHtcbiAgICAgICAgICAgIGNvbnN0IHsgY29kZSwgdHlwZSB9ID0gZS5jdXJyZW50VGFyZ2V0LmRhdGFzZXQ7XG4gICAgICAgICAgICBjb25zb2xlLmxvZyhjb2RlKTtcbiAgICAgICAgICAgIGRldmljZUZldGNoKHtcbiAgICAgICAgICAgICAgdXJsOiBgL2RldmljZS8ke2NvZGV9LyR7dHlwZX0vZW5hYmxlYCxcbiAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgICAgICB0aXRsZTogcmVzLm1zZyB8fCAn5pON5L2c5oiQ5YqfJyxcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB0aGlzLnJlZnJlc2hMaXN0KCk7XG4gICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgIH0pO1xuICAgIH0sXG4gICAgY2xvc2VFcXVpcG1lbnQoZSkge1xuICAgICAgd3guc2hvd01vZGFsKHtcbiAgICAgICAgdGl0bGU6ICfmj5DnpLonLFxuICAgICAgICBjb250ZW50OiAn5piv5ZCm56aB55So6K6+5aSHJyxcbiAgICAgICAgc3VjY2VzczogcmVzID0+IHtcbiAgICAgICAgICBpZiAocmVzLmNvbmZpcm0pIHtcbiAgICAgICAgICAgIGNvbnN0IHsgY29kZSwgdHlwZSB9ID0gZS5jdXJyZW50VGFyZ2V0LmRhdGFzZXQ7XG4gICAgICAgICAgICBjb25zb2xlLmxvZyhjb2RlKTtcbiAgICAgICAgICAgIGRldmljZUZldGNoKHtcbiAgICAgICAgICAgICAgdXJsOiBgL2RldmljZS8ke2NvZGV9LyR7dHlwZX0vZm9yYmlkZGVuYCxcbiAgICAgICAgICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICAgICAgICB0aXRsZTogcmVzLm1zZyB8fCAn5pON5L2c5oiQ5YqfJyxcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB0aGlzLnJlZnJlc2hMaXN0KCk7XG4gICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgIH0pO1xuICAgIH0sXG4gIH0sXG59KTtcbiJdfQ==
\ No newline at end of file
miniprogram/pages/components/EquipmentState/EquipmentState.ts
View file @
f7508ced
...
...
@@ -166,6 +166,11 @@ Component({
if
(
!
this
.
data
.
dataList
[
status
].
length
)
this
.
refreshList
();
},
openEquipment
(
e
)
{
wx
.
showModal
({
title
:
'提示'
,
content
:
'是否启用设备'
,
success
:
res
=>
{
if
(
res
.
confirm
)
{
const
{
code
,
type
}
=
e
.
currentTarget
.
dataset
;
console
.
log
(
code
);
deviceFetch
({
...
...
@@ -181,8 +186,16 @@ Component({
.
catch
(
err
=>
{
console
.
log
(
err
);
});
}
},
});
},
closeEquipment
(
e
)
{
wx
.
showModal
({
title
:
'提示'
,
content
:
'是否禁用设备'
,
success
:
res
=>
{
if
(
res
.
confirm
)
{
const
{
code
,
type
}
=
e
.
currentTarget
.
dataset
;
console
.
log
(
code
);
deviceFetch
({
...
...
@@ -198,6 +211,9 @@ Component({
.
catch
(
err
=>
{
console
.
log
(
err
);
});
}
},
});
},
},
});
miniprogram/pages/components/EquipmentState/EquipmentState.wxss
View file @
f7508ced
...
...
@@ -53,7 +53,10 @@
}
.EquipmentState-elist-ItemLocation {
margin-left: 20rpx;
flex: 1;
width: 340rpx;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.EquipmentState-elist-ItemBtn {
width: 80rpx;
...
...
miniprogram/pages/components/EquipmentWarning/EquipmentWarning.js
View file @
f7508ced
...
...
@@ -9,6 +9,7 @@ var __assign = (this && this.__assign) || Object.assign || function(t) {
};
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
var
fetch_1
=
require
(
"../../../api/fetch"
);
var
warningLevelRangeOption
=
{
key
:
null
,
value
:
''
};
Component
({
lifetimes
:
{
attached
:
function
()
{
...
...
@@ -47,7 +48,7 @@ Component({
.
then
(
function
(
res
)
{
console
.
log
(
res
);
_this
.
setData
({
warningLevelRange
:
res
.
data
,
warningLevelRange
:
[
warningLevelRangeOption
].
concat
(
res
.
data
)
,
});
})
.
catch
(
function
(
err
)
{
...
...
@@ -60,10 +61,18 @@ Component({
return
;
var
item
=
this
.
data
.
warningLevelRange
[
index
];
console
.
log
(
item
);
if
(
item
.
key
)
{
this
.
setData
({
warnLevelIndex
:
index
,
warnLevel
:
item
.
key
,
});
}
else
{
this
.
setData
({
warnLevelIndex
:
''
,
warnLevel
:
0
,
});
}
this
.
refreshList
();
},
changeLocation
:
function
(
e
)
{
...
...
@@ -143,6 +152,11 @@ Component({
},
openEquipment
:
function
(
e
)
{
var
_this
=
this
;
wx
.
showModal
({
title
:
'提示'
,
content
:
'是否启用设备'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
var
_a
=
e
.
currentTarget
.
dataset
,
code
=
_a
.
code
,
type
=
_a
.
type
;
console
.
log
(
code
);
fetch_1
.
deviceFetch
({
...
...
@@ -158,9 +172,17 @@ Component({
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
});
}
},
});
},
closeEquipment
:
function
(
e
)
{
var
_this
=
this
;
wx
.
showModal
({
title
:
'提示'
,
content
:
'是否禁用设备'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
var
_a
=
e
.
currentTarget
.
dataset
,
code
=
_a
.
code
,
type
=
_a
.
type
;
console
.
log
(
code
);
fetch_1
.
deviceFetch
({
...
...
@@ -176,7 +198,10 @@ Component({
.
catch
(
function
(
err
)
{
console
.
log
(
err
);
});
}
},
});
},
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXF1aXBtZW50V2FybmluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIkVxdWlwbWVudFdhcm5pbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLDRDQUFpRDtB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AgICAgIGRhdGE6IHtcbiAgICAgICAgICB3YXJuTGV2ZWw6IDEsXG4gICAgICAgICAgb3BlcmF0b3I6IHRydWUsXG4gICAgICAgICAgY2FtcHVzSWQ6IHRoaXMuZGF0YS5hcmVhSWQsXG4gICAgICAgICAgcGFnZU51bTogdGhpcy5kYXRhLnBhZ2VOdW0sXG4gICAgICAgICAgcGFnZVNpemU6IHRoaXMuZGF0YS5wYWdlU2l6ZSxcbiAgICAgICAgICAuLi5lbnRpdHksXG4gICAgICAgIH0sXG4gICAgICB9KTtcbiAgICB9LFxuICAgIHJlZnJlc2hMaXN0KCkge1xuICAgICAgd3guc2hvd0xvYWRpbmcoe1xuICAgICAgICB0aXRsZTogJ+WKoOi9veS4rScsXG4gICAgICAgIG1hc2s6IHRydWUsXG4gICAgICB9KTtcbiAgICAgIHRoaXMuZmV0Y2hMaXN0KHt9KVxuICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICBjb25zdCB7IGxpc3QgfSA9IHJlcy5kYXRhO1xuICAgICAgICAgIGlmIChsaXN0ICYmIGxpc3QubGVuZ3RoKSB7XG4gICAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgICBkYXRhTGlzdDogbGlzdCxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgICBkYXRhTGlzdDogW10sXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0pXG4gICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgICAgfSk7XG4gICAgfSxcbiAgICBnZXRNb3JlTGlzdEl0ZW0oKSB7XG4gICAg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9PiB7XG4gICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgIHRpdGxlOiByZXMubXNnIHx8ICfmk43kvZzmiJDlip8nLFxuICAgICAgICAgIH0pO1xuICAgICAgICAgIHRoaXMucmVmcmVzaExpc3QoKTtcbiAgICAgICAgfSlcbiAgICAgICAgLmNhdGNoKGVyciA9PiB7XG4gICAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgICAgfSk7XG4gICAgfSxcbiAgICBjbG9zZUVxdWlwbWVudChlKSB7XG4gICAgICBjb25zdCB7IGNvZGUsIHR5cGUgfSA9IGUuY3VycmVudFRhcmdldC5kYXRhc2V0O1xuICAgICAgY29uc29sZS5sb2coY29kZSk7XG4gICAgICBkZXZpY2VGZXRjaCh7XG4gICAgICAgIHVybDogYC9kZXZpY2UvJHtjb2RlfS8ke3R5cGV9L2ZvcmJpZGRlbmAsXG4gICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgfSlcbiAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgdGl0bGU6IHJlcy5tc2cgfHwgJ+aTjeS9nOaIkOWKnycsXG4gICAgICAgICAgfSk7XG4gICAgICAgICAgdGhpcy5yZWZyZXNoTGlzdCgpO1xuICAgICAgICB9KVxuICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICB9KTtcbiAgICB9LFxuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXF1aXBtZW50V2FybmluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIkVxdWlwbWVudFdhcm5pbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLDRDQUFpRDtBQUVqRCxJQUF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hcmVhSWQ6ICcsIHRoaXMuZGF0YS5hcmVhSWQpO1xuICAgICAgcmV0dXJuIGRldmljZUZldGNoKHtcbiAgICAgICAgdXJsOiAnL2RldmljZS93YXJuaW5nL3BhZ2luZycsXG4gICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgd2FybkxldmVsOiAxLFxuICAgICAgICAgIG9wZXJhdG9yOiB0cnVlLFxuICAgICAgICAgIGNhbXB1c0lkOiB0aGlzLmRhdGEuYXJlYUlkLFxuICAgICAgICAgIHBhZ2VOdW06IHRoaXMuZGF0YS5wYWdlTnVtLFxuICAgICAgICAgIHBhZ2VTaXplOiB0aGlzLmRhdGEucGFnZVNpemUsXG4gICAgICAgICAgLi4uZW50aXR5LFxuICAgICAgICB9LFxuICAgICAgfSk7XG4gICAgfSxcbiAgICByZWZyZXNoTGlzdCgpIHtcbiAgICAgIHd4LnNob3dMb2FkaW5nKHtcbiAgICAgICAgdGl0bGU6ICfliqDovb3kuK0nLFxuICAgICAgICBtYXNrOiB0cnVlLFxuICAgICAgfSk7XG4gICAgICB0aGlzLmZldGNoTGlzdCh7fSlcbiAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgY29uc3QgeyBsaXN0IH0gPSByZXMuZGF0YTtcbiAgICAgICAgICBpZiAobGlzdCAmJiBsaXN0Lmxlbmd0aCkge1xuICAgICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICAgZGF0YUxpc3Q6IGxpc3QsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICAgZGF0YUxpc3Q6IFtdLFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfVxuICAgICAgICB9KVxuICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgIH0pO1xuICAgIH0sXG4gICAgZ2V0TW9yZUxpc3RJdGVtKCkge1xuICAgICAgd3guc2hvd0xvYWRpbmcoe1xuICAgICAgICB0aXRsZTogJ+WKoOi9veS4rScsXG4gICAgICAgIG1hc2s6IHRydWUsXG4gICAgICB9KTtcbiAgICAgIGxldCBuZXh0UGFnZSA9IHRoaXMuZGF0YS5wYWdlTnVtICsgMTtcbiAgICAgIHRoaXMuZmV0Y2hMaXN0KHtcbiAgICAgICAgcGFnZU51bTogbmV4dFBhZ2UsXG4gICAgICB9KVxuICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICBjb25zdCB7IGxpc3QsIHBhZ2VOdW0gfSA9IHJlcy5kYXRhO1xuICAgICAgICAgIGlmIChsaXN0ICYmIGxpc3QubGVuZ3RoKSB7XG4gICAgICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgICBkYXRhTGlzdDogWy4uLnRoaXMuZGF0YS5kYXRhTGlzdCwgLi4ubGlzdF0sXG4gICAgICAgICAgICAgIHBhZ2VOdW0sXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0pXG4gICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgICAgfSk7XG4gICAgfSxcbiAgICBvcGVuRXF1aXBtZW50KGUpIHtcbiAgICAgIHd4LnNob3dNb2RhbCh7XG4gICAgICAgIHRpdGxlOiAn5o+Q56S6JyxcbiAgICAgICAgY29udGVudDogJ+aYr+WQpuWQr+eUqOiuvuWkhycsXG4gICAgICAgIHN1Y2Nlc3M6IHJlcyA9PiB7XG4gICAgICAgICAgaWYgKHJlcy5jb25maXJtKSB7XG4gICAgICAgICAgICBjb25zdCB7IGNvZGUsIHR5cGUgfSA9IGUuY3VycmVudFRhcmdldC5kYXRhc2V0O1xuICAgICAgICAgICAgY29uc29sZS5sb2coY29kZSk7XG4gICAgICAgICAgICBkZXZpY2VGZXRjaCh7XG4gICAgICAgICAgICAgIHVybDogYC9kZXZpY2UvJHtjb2RlfS8ke3R5cGV9L2VuYWJsZWAsXG4gICAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgICAgdGl0bGU6IHJlcy5tc2cgfHwgJ+aTjeS9nOaIkOWKnycsXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgdGhpcy5yZWZyZXNoTGlzdCgpO1xuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICB9KTtcbiAgICB9LFxuICAgIGNsb3NlRXF1aXBtZW50KGUpIHtcbiAgICAgIHd4LnNob3dNb2RhbCh7XG4gICAgICAgIHRpdGxlOiAn5o+Q56S6JyxcbiAgICAgICAgY29udGVudDogJ+aYr+WQpuemgeeUqOiuvuWkhycsXG4gICAgICAgIHN1Y2Nlc3M6IHJlcyA9PiB7XG4gICAgICAgICAgaWYgKHJlcy5jb25maXJtKSB7XG4gICAgICAgICAgICBjb25zdCB7IGNvZGUsIHR5cGUgfSA9IGUuY3VycmVudFRhcmdldC5kYXRhc2V0O1xuICAgICAgICAgICAgY29uc29sZS5sb2coY29kZSk7XG4gICAgICAgICAgICBkZXZpY2VGZXRjaCh7XG4gICAgICAgICAgICAgIHVybDogYC9kZXZpY2UvJHtjb2RlfS8ke3R5cGV9L2ZvcmJpZGRlbmAsXG4gICAgICAgICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgICAgICAgdGl0bGU6IHJlcy5tc2cgfHwgJ+aTjeS9nOaIkOWKnycsXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgdGhpcy5yZWZyZXNoTGlzdCgpO1xuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICB9KTtcbiAgICB9LFxuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
miniprogram/pages/components/EquipmentWarning/EquipmentWarning.ts
View file @
f7508ced
import
{
deviceFetch
}
from
'../../../api/fetch'
;
let
warningLevelRangeOption
=
{
key
:
null
,
value
:
''
};
// pages/components/EquipmentWarning/EquipmentWarning.js
Component
({
lifetimes
:
{
...
...
@@ -49,7 +50,7 @@ Component({
.
then
(
res
=>
{
console
.
log
(
res
);
this
.
setData
({
warningLevelRange
:
res
.
data
,
warningLevelRange
:
[
warningLevelRangeOption
,
...
res
.
data
]
,
});
})
.
catch
(
err
=>
{
...
...
@@ -61,10 +62,18 @@ Component({
if
(
index
===
this
.
data
.
warnLevelIndex
)
return
;
const
item
=
this
.
data
.
warningLevelRange
[
index
];
console
.
log
(
item
);
if
(
item
.
key
)
{
this
.
setData
({
warnLevelIndex
:
index
,
warnLevel
:
item
.
key
,
});
}
else
{
this
.
setData
({
warnLevelIndex
:
''
,
warnLevel
:
0
,
});
}
this
.
refreshList
();
},
changeLocation
(
e
)
{
...
...
@@ -147,6 +156,11 @@ Component({
});
},
openEquipment
(
e
)
{
wx
.
showModal
({
title
:
'提示'
,
content
:
'是否启用设备'
,
success
:
res
=>
{
if
(
res
.
confirm
)
{
const
{
code
,
type
}
=
e
.
currentTarget
.
dataset
;
console
.
log
(
code
);
deviceFetch
({
...
...
@@ -162,8 +176,16 @@ Component({
.
catch
(
err
=>
{
console
.
log
(
err
);
});
}
},
});
},
closeEquipment
(
e
)
{
wx
.
showModal
({
title
:
'提示'
,
content
:
'是否禁用设备'
,
success
:
res
=>
{
if
(
res
.
confirm
)
{
const
{
code
,
type
}
=
e
.
currentTarget
.
dataset
;
console
.
log
(
code
);
deviceFetch
({
...
...
@@ -179,6 +201,9 @@ Component({
.
catch
(
err
=>
{
console
.
log
(
err
);
});
}
},
});
},
},
});
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