|
@@ -20,7 +20,9 @@
|
|
<span class="color55f868" v-show="iten.result" v-text="iten.result"></span>
|
|
<span class="color55f868" v-show="iten.result" v-text="iten.result"></span>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</li>
|
|
- <a class="vongi-lodtext">加载更多统计数据<span class="iconfont icon-xiajiantou_huaban"></span></a>
|
|
|
|
|
|
+ <li v-if="item.totalPage>1 && item.pageNumber<item.totalPage" class="mui-table-view-cell">
|
|
|
|
+ <a @click="loadMore(item.companyId,index)" class="vongi-lodtext">加载更多统计数据<span class="iconfont icon-xiajiantou_huaban"></span></a>
|
|
|
|
+ </li>
|
|
</ul>
|
|
</ul>
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
@@ -173,6 +175,27 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ //加载更多
|
|
|
|
+ loadMore(companyId, index) {
|
|
|
|
+ this.isLoading = true;
|
|
|
|
+ this.recordList[index]['pageNumber']++;
|
|
|
|
+ let data = {
|
|
|
|
+ queryDate: this.subForm.queryDate,
|
|
|
|
+ alarmConfigId: this.subForm.alarmConfigId,
|
|
|
|
+ pageNum: this.recordList[index]['pageNumber'],
|
|
|
|
+ companyId: companyId,
|
|
|
|
+ };
|
|
|
|
+ API_Attendance.getMoreList(data).then(response => {
|
|
|
|
+ this.isLoading = false;
|
|
|
|
+
|
|
|
|
+ this.recordList[index]['personList'] = this.recordList[index]['personList'].concat(response['groupList'][0][
|
|
|
|
+ 'personList'
|
|
|
|
+ ])
|
|
|
|
+ }).catch(error => {
|
|
|
|
+ this.isLoading = false;
|
|
|
|
+ mui.toast(error);
|
|
|
|
+ })
|
|
|
|
+ },
|
|
asynCallBack() {
|
|
asynCallBack() {
|
|
|
|
|
|
},
|
|
},
|