'产说会查询详情分页'

This commit is contained in:
proudlx
2021-04-25 13:30:13 +08:00
parent 9d3460bb8a
commit dad2167303
2 changed files with 25 additions and 21 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class="table">
<div>
<van-list
v-model="loading"
:immediate-check="false"
@@ -8,11 +8,11 @@
error-text="请求失败点击重新加载"
:error.sync="error"
@load="loadMore"
class="pb45"
>
<statisticalTable @goLink="goLink" :theads="theads" :tableData="tableData" :isLink="true"></statisticalTable>
</van-list>
<!-- <table cellspacing="0" summary cellpadding="1">
<div class="table">
<statisticalTable @goLink="goLink" :theads="theads" :tableData="tableData" :isLink="true"></statisticalTable>
<!-- <table cellspacing="0" summary cellpadding="1">
<thead>
<tr>
<th class="th-fixed">机构</th>
@@ -36,6 +36,8 @@
</tr>
</tbody>
</table> -->
</div>
</van-list>
</div>
</template>
@@ -45,7 +47,7 @@ import statisticalTable from '@/components/ebiz/productionSay/statisticsTable'
export default {
name: 'statistics',
components: {
statisticalTable,
statisticalTable
},
data() {
return {
@@ -55,9 +57,9 @@ export default {
currentPage: 1, //当前页数
error: false,
finishedText: '没有更多了',
pageSize: 10, //每页数据条数
pageSize: 20, //每页数据条数
tableData: [],
theads: ['机构', '计划场次', '预估人数', '预估保费', '实际场次', '实际人数', '预签保费'],
theads: ['机构', '计划场次', '预估人数', '预估保费', '实际场次', '实际人数', '预签保费']
}
},
created() {
@@ -69,7 +71,7 @@ export default {
console.log('加载表单')
let pageInfo = {
pageNum: this.currentPage, //当前页数
pageSize: this.pageSize, //当前页对应条数
pageSize: this.pageSize //当前页对应条数
}
this.selectAllStatistical(pageInfo)
},
@@ -80,7 +82,7 @@ export default {
// 禁用背景点击
forbidClick: true,
loadingType: 'spinner',
message: '加载中……',
message: '加载中……'
})
selectAllStatistical(data).then((res) => {
if (res.result == 0) {
@@ -106,20 +108,20 @@ export default {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/productionSay/statisticsItem?convokeOrganization=' + item.convokeOrganization,
url: location.origin + '/#/productionSay/statisticsItem?convokeOrganization=' + item.convokeOrganization
},
routerInfo: {
path: '/productionSay/statisticsItem?convokeOrganization=' + item.convokeOrganization,
},
path: '/productionSay/statisticsItem?convokeOrganization=' + item.convokeOrganization
}
})
},
},
}
}
}
</script>
<style lang="scss" scoped>
.table {
// overflow-x: auto;
overflow-x: auto;
margin: 5px;
box-sizing: border-box;
background: #fff;

View File

@@ -1,5 +1,5 @@
<template>
<div class="table">
<div>
<van-list
v-model="loading"
:immediate-check="false"
@@ -10,7 +10,9 @@
@load="loadMore"
class="pb45"
>
<statisticalTable :theads="theads" :tableData="tableData" :isLink="false"></statisticalTable>
<div class="table">
<statisticalTable :theads="theads" :tableData="tableData" :isLink="false"></statisticalTable>
</div>
</van-list>
</div>
</template>
@@ -31,14 +33,14 @@ export default {
currentPage: 1, //当前页数
error: false,
finishedText: '没有更多了',
pageSize: 10, //每页数据条数
pageSize: 20, //每页数据条数
tableData: [],
theads: ['机构', '计划场次', '预估人数', '预估保费', '实际场次', '实际人数', '预签保费']
}
},
created() {
if (this.$route.query.convokeOrganization) {
this.loadMore();
this.loadMore()
}
},
methods: {
@@ -88,7 +90,7 @@ export default {
<style lang="scss" scoped>
.table {
// overflow-x: auto;
overflow-x: auto;
margin: 5px;
box-sizing: border-box;
background: #fff;