|
@@ -23,7 +23,9 @@
|
|
|
<view>
|
|
|
<button class="p_zk" @click="p_zk()">{{kgName}}</button>
|
|
|
</view>
|
|
|
-
|
|
|
+ <view class="font-forty total">
|
|
|
+ 合计: <text class="font-fifty-six SourceHanSansCN red">{{total}}</text>
|
|
|
+ </view>
|
|
|
<view v-for="(item,index) in list" :key="index">
|
|
|
<view @click="gotopage(`/pages/historyConstruction/historyDetail?id=${item.id}`)">
|
|
|
<view class="type">
|
|
@@ -57,9 +59,6 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="font-forty total">
|
|
|
- 合计: <text class="font-fifty-six SourceHanSansCN red">{{list.length}}</text>
|
|
|
- </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -83,6 +82,7 @@
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
},
|
|
|
+ total:0
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
@@ -110,8 +110,8 @@
|
|
|
pageNum: 1,
|
|
|
}).then(res => {
|
|
|
this.list = res.records;
|
|
|
- that.total = res.total || 0;
|
|
|
- that.params.pageNum = res.current + 1;
|
|
|
+ this.total = res.total || 0;
|
|
|
+ this.params.pageNum = res.current + 1;
|
|
|
})
|
|
|
},
|
|
|
getNextListFn(){
|
|
@@ -124,9 +124,9 @@
|
|
|
pageSize: this.params.pageSize,
|
|
|
pageNum: this.params.pageNum,
|
|
|
}).then(response => {
|
|
|
- that.params.pageNum = response.current + 1
|
|
|
+ this.params.pageNum = response.current + 1
|
|
|
response.records.forEach(item =>{
|
|
|
- that.list.push(item)
|
|
|
+ this.list.push(item)
|
|
|
})
|
|
|
})
|
|
|
}
|