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
b28d20b9
Commit
b28d20b9
authored
Jan 14, 2020
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改传参
parent
51b56225
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
EquipmentOperationDetails.js
...ts/EquipmentOperationDetails/EquipmentOperationDetails.js
+0
-0
EquipmentOperationDetails.ts
...ts/EquipmentOperationDetails/EquipmentOperationDetails.ts
+8
-6
equipmentReport.wxml
miniprogram/pages/equipmentReport/equipmentReport.wxml
+1
-1
No files found.
miniprogram/pages/components/EquipmentOperationDetails/EquipmentOperationDetails.js
View file @
b28d20b9
This diff is collapsed.
Click to expand it.
miniprogram/pages/components/EquipmentOperationDetails/EquipmentOperationDetails.ts
View file @
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
();
},
},
},
},
},
},
...
...
miniprogram/pages/equipmentReport/equipmentReport.wxml
View file @
b28d20b9
...
@@ -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>
...
...
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