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
c873ce9d
Commit
c873ce9d
authored
Jan 14, 2020
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into test
parents
06a620e3
c1f36f5e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
5 deletions
+34
-5
EquipmentWarning.js
...ram/pages/components/EquipmentWarning/EquipmentWarning.js
+5
-2
EquipmentWarning.ts
...ram/pages/components/EquipmentWarning/EquipmentWarning.ts
+3
-0
equipment.js
miniprogram/pages/equipment/equipment.js
+13
-2
equipment.ts
miniprogram/pages/equipment/equipment.ts
+13
-1
No files found.
miniprogram/pages/components/EquipmentWarning/EquipmentWarning.js
View file @
c873ce9d
...
...
@@ -40,6 +40,9 @@ Component({
var
_this
=
this
;
fetch_1
.
deviceFetch
({
url
:
'/device/warning/dict/illegalOperations'
,
data
:
{
warnLevel
:
1
,
},
})
.
then
(
function
(
res
)
{
console
.
log
(
res
);
...
...
@@ -168,4 +171,4 @@ Component({
},
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXF1aXBtZW50V2FybmluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIkVxdWlwbWVudFdhcm5pbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLDRDQUFpRDtBQUdqRCxTQUFTLENBQUM7SUFDUixTQUF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ICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgICAgICBkYXRhTGlzdDogbGlzdCxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH1cbiAgICAgICAgfSlcbiAgICAgICAgLmNhdGNoKGVyciA9PiB7XG4gICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICB9KTtcbiAgICB9LFxuICAgIGdldE1vcmVMaXN0SXRlbSgpIHtcbiAgICAgIHd4LnNob3dMb2FkaW5nKHtcbiAgICAgICAgdGl0bGU6ICfliqDovb3kuK0nLFxuICAgICAgfSk7XG4gICAgICBsZXQgbmV4dFBhZ2UgPSB0aGlzLmRhdGEucGFnZU51bSArIDE7XG4gICAgICB0aGlzLmZldGNoTGlzdCh7XG4gICAgICAgIHBhZ2VOdW06IG5leHRQYWdlLFxuICAgICAgfSlcbiAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgIGNvbnNvbGUubG9nKHJlcyk7XG4gICAgICAgICAgY29uc3QgeyBsaXN0LCBwYWdlTnVtIH0gPSByZXMuZGF0YTtcbiAgICAgICAgICBpZiAobGlzdCAmJiBsaXN0Lmxlbmd0aCkge1xuICAgICAgICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgICAgICAgZGF0YUxpc3Q6IFsuLi50aGlzLmRhdGEuZGF0YUxpc3QsIC4uLmxpc3RdLFxuICAgICAgICAgICAgICBwYWdlTnVtLFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfVxuICAgICAgICB9KVxuICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgIH0pO1xuICAgIH0sXG4gICAgb3BlbkVxdWlwbWVudChlKSB7XG4gICAgICBjb25zdCB7IGNvZGUsIHR5cGUgfSA9IGUuY3VycmVudFRhcmdldC5kYXRhc2V0O1xuICAgICAgY29uc29sZS5sb2coY29kZSk7XG4gICAgICBkZXZpY2VGZXRjaCh7XG4gICAgICAgIHVybDogYC9kZXZpY2UvJHtjb2RlfS8ke3R5cGV9L2VuYWJsZWAsXG4gICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgfSlcbiAgICAgICAgLnRoZW4ocmVzID0+IHtcbiAgICAgICAgICB3eC5zaG93VG9hc3Qoe1xuICAgICAgICAgICAgdGl0bGU6IHJlcy5tc2cgfHwgJ+aTjeS9nOaIkOWKnycsXG4gICAgICAgICAgfSk7XG4gICAgICAgICAgdGhpcy5yZWZyZXNoTGlzdCgpO1xuICAgICAgICB9KVxuICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgICB9KTtcbiAgICB9LFxuICAgIGNsb3NlRXF1aXBtZW50KGUpIHtcbiAgICAgIGNvbnN0IHsgY29kZSwgdHlwZSB9ID0gZS5jdXJyZW50VGFyZ2V0LmRhdGFzZXQ7XG4gICAgICBjb25zb2xlLmxvZyhjb2RlKTtcbiAgICAgIGRldmljZUZldGNoKHtcbiAgICAgICAgdXJsOiBgL2RldmljZS8ke2NvZGV9LyR7dHlwZX0vZm9yYmlkZGVuYCxcbiAgICAgICAgbWV0aG9kOiAnUE9TVCcsXG4gICAgICB9KVxuICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgICB0aXRsZTogcmVzLm1zZyB8fCAn5pON5L2c5oiQ5YqfJyxcbiAgICAgICAgICB9KTtcbiAgICAgICAgICB0aGlzLnJlZnJlc2hMaXN0KCk7XG4gICAgICAgIH0pXG4gICAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgIH0pO1xuICAgIH0sXG4gIH0sXG59KT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0gPSB0aGlzLmRhdGEud2FybmluZ0xldmVsUmFuZ2VbaW5kZXhdO1xuICAgICAgY29uc29sZS5sb2coaXRlbSk7XG4gICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICB3YXJuTGV2ZWxJbmRleDogaW5kZXgsXG4gICAgICAgIHdhcm5MZXZlbDogaXRlbS5rZXksXG4gICAgICB9KTtcbiAgICAgIHRoaXMucmVmcmVzaExpc3QoKTtcbiAgICB9LFxuICAgIGNoYW5nZUxvY2F0aW9uKGUpIHtcbiAgICAgIGNvbnN0IHsgdmFsdWUgfSA9IGUuZGV0YWlsO1xuICAgICAgY29uc29sZS5sb2codmFsdWUpO1xuICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgZGV2aWNlTG9jYXRpb246IHZhbHVlLFxuICAgICAgfSk7XG4gICAgICB0aGlzLnJlZnJlc2hMaXN0KCk7XG4gICAgfSxcbiAgICBmZXRjaExpc3QoZW50aXR5KSB7XG4gICAgICBpZiAodGhpcy5kYXRhLndhcm5MZXZlbCkge1xuICAgICAgICBlbnRpdHkub3BlcmF0aW9uID0gdGhpcy5kYXRhLndhcm5MZXZlbDtcbiAgICAgIH1cbiAgICAgIGlmICh0aGlzLmRhdGEuZGV2aWNlTG9jYXRpb24pIHtcbiAgICAgICAgZW50aXR5LmRldmljZUxvY2F0aW9uID0gdGhpcy5kYXRhLmRldmljZUxvY2F0aW9uO1xuICAgICAgfVxuICAgICAgcmV0dXJuIGRldmljZUZldGNoKHtcbiAgICAgICAgdXJsOiAnL2RldmljZS93YXJuaW5nL3BhZ2luZycsXG4gICAgICAgIG1ldGhvZDogJ1BPU1QnLFxuICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgYXJlYUlkOiB0aGlzLmRhdGEuYXJlYUlkLFxuICAgICAgICAgIHBhZ2VOdW06IHRoaXMuZGF0YS5wYWdlTnVtLFxuICAgICAgICAgIHBhZ2VTaXplOiB0aGlzLmRhdGEucGFnZVNpemUsXG4gICAgICAgICAgLi4uZW50aXR5LFxuICAgICAgICB9LFxuICAgICAgfSk7XG4gICAgfSxcbiAgICByZWZyZXNoTGlzdCgpIHtcbiAgICAgIHd4LnNob3dMb2FkaW5nKHtcbiAgICAgICAgdGl0bGU6ICfliqDovb3kuK0nLFxuICAgICAgfSk7XG4gICAgICB0aGlzLmZldGNoTGlzdCgpXG4gICAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgICAgd3guaGlkZUxvYWRpbmcoKTtcbiAgICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICAgIGNvbnN0IHsgbGlzdCB9ID0gcmVzLmRhdGE7XG4gICAgICAgICAgaWYgKGxpc3QgJiYgbGlzdC5sZW5ndGgpIHtcbiAgICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICAgIGRhdGFMaXN0OiBsaXN0LFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfVxuICAgICAgICB9KVxuICAgICAgICAuY2F0Y2goZXJyID0+IHtcbiAgICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICAgIGNvbnNvbGUubG9nKGVycik7XG4gICAgICAgIH0pO1xuICAgIH0sXG4gICAgZ2V0TW9yZUxpc3RJdGVtKCkge1xuICAgICAgd3guc2hvd0xvYWRpbmcoe1xuICAgICAgICB0aXRsZTogJ+WKoOi9veS4rScsXG4gICAgICB9KTtcbiAgICAgIGxldCBuZXh0UGFnZSA9IHRoaXMuZGF0YS5wYWdlTnVtICsgMTtcbiAgICAgIHRoaXMuZmV0Y2hMaXN0KHtcbiAgICAgICAgcGFnZU51bTogbmV4dFBhZ2UsXG4gICAgICB9KVxuICAgICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgICAgY29uc29sZS5sb2cocmVzKTtcbiAgICAgICAgICBjb25zdCB7IGxpc3QsIHBhZ2VOdW0gfSA9IHJlcy5kYXRhO1xuICAgICAgICAgIGlm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2goe1xuICAgICAgICB1cmw6IGAvZGV2aWNlLyR7Y29kZX0vJHt0eXBlfS9mb3JiaWRkZW5gLFxuICAgICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgIH0pXG4gICAgICAgIC50aGVuKHJlcyA9PiB7XG4gICAgICAgICAgd3guc2hvd1RvYXN0KHtcbiAgICAgICAgICAgIHRpdGxlOiByZXMubXNnIHx8ICfmk43kvZzmiJDlip8nLFxuICAgICAgICAgIH0pO1xuICAgICAgICAgIHRoaXMucmVmcmVzaExpc3QoKTtcbiAgICAgICAgfSlcbiAgICAgICAgLmNhdGNoKGVyciA9PiB7XG4gICAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgICAgfSk7XG4gICAgfSxcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file
miniprogram/pages/components/EquipmentWarning/EquipmentWarning.ts
View file @
c873ce9d
...
...
@@ -42,6 +42,9 @@ Component({
fetchWarningLevelList
()
{
deviceFetch
({
url
:
'/device/warning/dict/illegalOperations'
,
data
:
{
warnLevel
:
1
,
},
})
.
then
(
res
=>
{
console
.
log
(
res
);
...
...
miniprogram/pages/equipment/equipment.js
View file @
c873ce9d
...
...
@@ -10,14 +10,19 @@ Page({
total
:
0
,
},
onLoad
:
function
(
options
)
{
console
.
log
(
'in onLoad'
);
this
.
fetchList
();
},
fetchList
:
function
()
{
var
_this
=
this
;
wx
.
showLoading
({
title
:
'加载中'
,
});
fetch_1
.
deviceFetch
({
url
:
'/device/report/mainPage'
,
})
.
then
(
function
(
res
)
{
wx
.
hideLoading
();
console
.
log
(
res
);
var
_a
=
res
.
data
,
areaDeviceAmount
=
_a
.
areaDeviceAmount
,
statusAmount
=
_a
.
statusAmount
,
totalAmount
=
_a
.
totalAmount
;
var
total
=
totalAmount
.
reduce
(
function
(
count
,
item
)
{
return
count
+
item
.
value
;
},
0
);
...
...
@@ -29,6 +34,12 @@ Page({
});
})
.
catch
(
function
(
err
)
{
wx
.
hideLoading
();
wx
.
showToast
({
title
:
err
.
msg
||
'网络错误'
,
icon
:
'none'
,
duration
:
4000
,
});
console
.
log
(
err
);
});
},
...
...
@@ -43,4 +54,4 @@ Page({
});
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXF1aXBtZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZXF1aXBtZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEseUNBQThDO0FBRzlDLElBQUksQ0FBQztJQUlILElBQUksRUFBRTtRQUNKLE1BQU0sRUFBRSxDQUFDLFNBQVMsRUFBRSxTQUFTLEVBQUUsU0FBUyxFQUFFLFNBQVMsQ0FBQztRQUNwRCxnQkFBZ0IsRUFBRSxFQUFFO1FBQ3BCLFlBQVksRUFBRSxFQUFFO1FBQ2hCLFdBQVcsRUFBRSxFQUFFO1FBQ2YsS0FBSyxFQUFFLENBQUM7S0FDVDtJQUtELE1BQU0sRUFBRSxVQUFTLE9BQU87UUFDdEIsSUFBSSxDQUFDLFNBQVMsRUFBRSxDQUFDO0lBQ25CLENBQUM7SUFDRCxTQUFTO1FBQVQsaUJBa0JDO1FBakJDLG1CQUFXLENBQUM7WUFDVixHQUFHLEVBQUUseUJBQXlCO1NBQy9CLENBQUM7YUFDQyxJQUFJLENBQUMsVUFBQSxHQUFHO1lBQ1AsT0FBTyxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQztZQUNYLElBQUEsYUFBMEQsRUFBeEQsc0NBQWdCLEVBQUUsOEJBQVksRUFBRSw0QkFBVyxDQUFjO1lBQ2pFLElBQUksS0FBSyxHQUFHLFdBQVcsQ0FBQyxNQUFNLENBQUMsVUFBQyxLQUFLLEVBQUUsSUFBSSxJQUFLLE9BQUEsS0FBSyxHQUFHLElBQUksQ0FBQyxLQUFLLEVBQWxCLENBQWtCLEVBQUUsQ0FBQyxDQUFDLENBQUM7WUFDdkUsS0FBSSxDQUFDL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IHtcbiAgICB3eC5zaG93TG9hZGluZyh7XG4gICAgICB0aXRsZTogJ+WKoOi9veS4rScsXG4gICAgfSk7XG4gICAgZGV2aWNlRmV0Y2goe1xuICAgICAgdXJsOiAnL2RldmljZS9yZXBvcnQvbWFpblBhZ2UnLFxuICAgIH0pXG4gICAgICAudGhlbihyZXMgPT4ge1xuICAgICAgICB3eC5oaWRlTG9hZGluZygpO1xuICAgICAgICBjb25zb2xlLmxvZyhyZXMpO1xuICAgICAgICBjb25zdCB7IGFyZWFEZXZpY2VBbW91bnQsIHN0YXR1c0Ftb3VudCwgdG90YWxBbW91bnQgfSA9IHJlcy5kYXRhO1xuICAgICAgICBsZXQgdG90YWwgPSB0b3RhbEFtb3VudC5yZWR1Y2UoKGNvdW50LCBpdGVtKSA9PiBjb3VudCArIGl0ZW0udmFsdWUsIDApO1xuICAgICAgICB0aGlzLnNldERhdGEhKHtcbiAgICAgICAgICBhcmVhRGV2aWNlQW1vdW50LFxuICAgICAgICAgIHN0YXR1c0Ftb3VudCxcbiAgICAgICAgICB0b3RhbEFtb3VudCxcbiAgICAgICAgICB0b3RhbCxcbiAgICAgICAgfSk7XG4gICAgICB9KVxuICAgICAgLmNhdGNoKGVyciA9PiB7XG4gICAgICAgIHd4LmhpZGVMb2FkaW5nKCk7XG4gICAgICAgIHd4LnNob3dUb2FzdCh7XG4gICAgICAgICAgdGl0bGU6IGVyci5tc2cgfHwgJ+e9kee7nOmUmeivrycsXG4gICAgICAgICAgaWNvbjogJ25vbmUnLFxuICAgICAgICAgIGR1cmF0aW9uOiA0MDAwLFxuICAgICAgICB9KTtcbiAgICAgICAgY29uc29sZS5sb2coZXJyKTtcbiAgICAgIH0pO1xuICB9LFxuICBnb1JlcG9ydFBhZ2UoZSkge1xuICAgIGNvbnN0IHsgaW5kZXggfSA9IGUuY3VycmVudFRhcmdldC5kYXRhc2V0O1xuICAgIGNvbnN0IGl0ZW0gPSB0aGlzLmRhdGEuYXJlYURldmljZUFtb3VudFtpbmRleF07XG4gICAgd3gubmF2aWdhdGVUbyh7XG4gICAgICB1cmw6IGAvcGFnZXMvZXF1aXBtZW50UmVwb3J0L2VxdWlwbWVudFJlcG9ydD9hcmVhSWQ9JHtpdGVtLmFyZWFJZH0mYXJlYU5hbWU9JHtpdGVtLmFyZWFOYW1lfWAsXG4gICAgICBzdWNjZXNzOiBmdW5jdGlvbihyZXMpIHtcbiAgICAgICAgLy8g6YCa6L+HZXZlbnRDaGFubmVs5ZCR6KKr5omT5byA6aG16Z2i5Lyg6YCB5pWw5o2uXG4gICAgICAgIHJlcy5ldmVudENoYW5uZWwuZW1pdCgnYWNjZXB0RGF0YUZyb21PcGVuZXJQYWdlJywgeyBkYXRhOiBpdGVtIH0pO1xuICAgICAgfSxcbiAgICB9KTtcbiAgfSxcbn0pO1xuIl19
\ No newline at end of file
miniprogram/pages/equipment/equipment.ts
View file @
c873ce9d
...
...
@@ -16,14 +16,20 @@ Page({
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
onLoad
(
options
)
{
console
.
log
(
'in onLoad'
);
this
.
fetchList
();
},
fetchList
()
{
wx
.
showLoading
({
title
:
'加载中'
,
});
deviceFetch
({
url
:
'/device/report/mainPage'
,
})
.
then
(
res
=>
{
wx
.
hideLoading
();
console
.
log
(
res
);
const
{
areaDeviceAmount
,
statusAmount
,
totalAmount
}
=
res
.
data
;
let
total
=
totalAmount
.
reduce
((
count
,
item
)
=>
count
+
item
.
value
,
0
);
...
...
@@ -35,6 +41,12 @@ Page({
});
})
.
catch
(
err
=>
{
wx
.
hideLoading
();
wx
.
showToast
({
title
:
err
.
msg
||
'网络错误'
,
icon
:
'none'
,
duration
:
4000
,
});
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