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
1acabf78
Commit
1acabf78
authored
Jan 15, 2020
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test'
parents
e0d3213d
b0ab75ac
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
4 deletions
+12
-4
EquipmentOperationDetails.js
...ts/EquipmentOperationDetails/EquipmentOperationDetails.js
+0
-0
EquipmentOperationDetails.ts
...ts/EquipmentOperationDetails/EquipmentOperationDetails.ts
+9
-2
EquipmentWarning.js
...ram/pages/components/EquipmentWarning/EquipmentWarning.js
+0
-0
EquipmentWarning.ts
...ram/pages/components/EquipmentWarning/EquipmentWarning.ts
+2
-1
EquipmentWarning.wxml
...m/pages/components/EquipmentWarning/EquipmentWarning.wxml
+1
-1
No files found.
miniprogram/pages/components/EquipmentOperationDetails/EquipmentOperationDetails.js
View file @
1acabf78
This diff is collapsed.
Click to expand it.
miniprogram/pages/components/EquipmentOperationDetails/EquipmentOperationDetails.ts
View file @
1acabf78
import
{
statisticsFetch
}
from
'../../../api/fetch'
;
import
{
formatPrice
}
from
'../../../utils/util'
;
// pages/components/EquipmentOperationDetails/EquipmentOperationDetails.js
Component
({
...
...
@@ -113,7 +114,10 @@ Component({
const
{
list
}
=
res
.
data
;
this
.
setData
({
pageNum
:
1
,
dataList
:
list
,
dataList
:
list
.
map
(
item
=>
({
...
item
,
consumeAmount
:
formatPrice
(
item
.
consumeAmount
),
})),
});
})
.
catch
(
err
=>
{
...
...
@@ -131,7 +135,10 @@ Component({
})
.
then
(
res
=>
{
wx
.
hideLoading
();
const
{
list
}
=
res
.
data
;
const
list
=
res
.
data
.
list
.
map
(
item
=>
({
...
item
,
consumeAmount
:
formatPrice
(
item
.
consumeAmount
),
}));
if
(
list
&&
list
.
length
)
{
this
.
setData
!
({
dataList
:
[...
this
.
data
.
dataList
,
...
list
],
...
...
miniprogram/pages/components/EquipmentWarning/EquipmentWarning.js
View file @
1acabf78
This diff is collapsed.
Click to expand it.
miniprogram/pages/components/EquipmentWarning/EquipmentWarning.ts
View file @
1acabf78
...
...
@@ -82,13 +82,14 @@ Component({
if
(
this
.
data
.
deviceLocation
)
{
entity
.
deviceLocation
=
this
.
data
.
deviceLocation
;
}
console
.
log
(
'areaId: '
,
this
.
data
.
areaId
);
return
deviceFetch
({
url
:
'/device/warning/paging'
,
method
:
'POST'
,
data
:
{
warnLevel
:
1
,
operator
:
true
,
area
Id
:
this
.
data
.
areaId
,
campus
Id
:
this
.
data
.
areaId
,
pageNum
:
this
.
data
.
pageNum
,
pageSize
:
this
.
data
.
pageSize
,
...
entity
,
...
...
miniprogram/pages/components/EquipmentWarning/EquipmentWarning.wxml
View file @
1acabf78
...
...
@@ -5,7 +5,7 @@
<c-select ex-class="EquipmentWarning-filters-levelInput" mode="selector" value="{{warningLevel}}" range="{{warningLevelRange}}" rangeKey="value" bindchange="changeWarningType" />
</view>
<view class="EquipmentWarning-location">
<input class="EquipmentWarning-location-input" type="text" placeholder="设备位置" bindconfirm="changeLocation" />
<input class="EquipmentWarning-location-input" type="text" placeholder="设备位置" bind
blur="changeLocation" bind
confirm="changeLocation" />
</view>
</view>
<view class="EquipmentWarning-elist">
...
...
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