Commit a1fcbc57 by 姜雷

Merge branch 'develop' into test

parents e2b19766 b28d20b9
...@@ -3,10 +3,7 @@ import { statisticsFetch } from '../../../api/fetch'; ...@@ -3,10 +3,7 @@ import { statisticsFetch } from '../../../api/fetch';
// pages/components/EquipmentOperationDetails/EquipmentOperationDetails.js // pages/components/EquipmentOperationDetails/EquipmentOperationDetails.js
Component({ Component({
lifetimes: { lifetimes: {
attached() { attached() {},
this.fetchData();
this.refreshList();
},
}, },
/** /**
* 组件的属性列表 * 组件的属性列表
...@@ -15,8 +12,13 @@ Component({ ...@@ -15,8 +12,13 @@ Component({
totalAmount: { totalAmount: {
type: Array, type: Array,
value: [], value: [],
observer(newVal) { },
console.log('totalAmount', newVal); areaId: {
type: Number,
value: 0,
observer() {
this.fetchData();
this.refreshList();
}, },
}, },
}, },
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</view> </view>
</view> </view>
<view class="equipmentReport-content"> <view class="equipmentReport-content">
<equipment-operation-details wx:if="{{type === 0}}" timeType="{{timeType}}" totalAmount="{{totalAmount}}" /> <equipment-operation-details wx:if="{{type === 0}}" timeType="{{timeType}}" totalAmount="{{totalAmount}}" areaId="{{areaId}}" />
<equipment-state wx:if="{{type === 1}}" areaId="{{areaId}}" /> <equipment-state wx:if="{{type === 1}}" areaId="{{areaId}}" />
<equipment-warning wx:if="{{type === 2}}" areaId="{{areaId}}" /> <equipment-warning wx:if="{{type === 2}}" areaId="{{areaId}}" />
</view> </view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment