mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 20:56:45 +08:00
Merge branch 'feature/GFRS-2266【需求】产说会需求' into dev
This commit is contained in:
@@ -1,6 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="table">
|
<div class="table">
|
||||||
|
<van-list
|
||||||
|
v-model="loading"
|
||||||
|
:immediate-check="false"
|
||||||
|
:finished="finished"
|
||||||
|
:finished-text="finishedText"
|
||||||
|
error-text="请求失败,点击重新加载"
|
||||||
|
:error.sync="error"
|
||||||
|
@load="loadMore"
|
||||||
|
class="pb45"
|
||||||
|
>
|
||||||
<statisticalTable @goLink="goLink" :theads="theads" :tableData="tableData" :isLink="true"></statisticalTable>
|
<statisticalTable @goLink="goLink" :theads="theads" :tableData="tableData" :isLink="true"></statisticalTable>
|
||||||
|
</van-list>
|
||||||
<!-- <table cellspacing="0" summary cellpadding="1">
|
<!-- <table cellspacing="0" summary cellpadding="1">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -33,30 +44,71 @@ import { selectAllStatistical } from '@/api/ebiz/productionSay/productionSay.js'
|
|||||||
import statisticalTable from '@/components/ebiz/productionSay/statisticsTable'
|
import statisticalTable from '@/components/ebiz/productionSay/statisticsTable'
|
||||||
export default {
|
export default {
|
||||||
name: 'statistics',
|
name: 'statistics',
|
||||||
components:{
|
components: {
|
||||||
statisticalTable,
|
statisticalTable,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
loading: false,
|
||||||
|
finished: false,
|
||||||
|
total: '', //总页数
|
||||||
|
currentPage: 1, //当前页数
|
||||||
|
error: false,
|
||||||
|
finishedText: '没有更多了',
|
||||||
|
pageSize: 10, //每页数据条数
|
||||||
tableData: [],
|
tableData: [],
|
||||||
theads: ['机构', '计划场次', '预估人数', '预估保费', '实际场次', '实际人数', '预签保费'],
|
theads: ['机构', '计划场次', '预估人数', '预估保费', '实际场次', '实际人数', '预签保费'],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
selectAllStatistical({}).then((res) => {
|
this.loadMore()
|
||||||
this.tableData = res.content.list
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goLink(item){
|
// 加载列表
|
||||||
|
loadMore() {
|
||||||
|
console.log('加载表单')
|
||||||
|
let pageInfo = {
|
||||||
|
pageNum: this.currentPage, //当前页数
|
||||||
|
pageSize: this.pageSize, //当前页对应条数
|
||||||
|
}
|
||||||
|
this.selectAllStatistical(pageInfo)
|
||||||
|
},
|
||||||
|
selectAllStatistical(data) {
|
||||||
|
this.$toast.loading({
|
||||||
|
// 持续展示 toast
|
||||||
|
duration: 0,
|
||||||
|
// 禁用背景点击
|
||||||
|
forbidClick: true,
|
||||||
|
loadingType: 'spinner',
|
||||||
|
message: '加载中……',
|
||||||
|
})
|
||||||
|
selectAllStatistical(data).then((res) => {
|
||||||
|
if (res.result == 0) {
|
||||||
|
this.currentPage++
|
||||||
|
// this.saleList = this.saleList.concat(res.content.list)
|
||||||
|
this.tableData = this.tableData.concat(res.content.list)
|
||||||
|
this.loading = false
|
||||||
|
this.finished = false
|
||||||
|
if (res.content.nextPage == 0) {
|
||||||
|
this.finished = true
|
||||||
|
this.finishedText = '已经全部加载'
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.loading = false
|
||||||
|
this.finished = true
|
||||||
|
this.finishedText = '已经全部加载'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
goLink(item) {
|
||||||
console.log(item)
|
console.log(item)
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + '/#/productionSay/statisticsItem?convokeOrganization='+item.convokeOrganization,
|
url: location.origin + '/#/productionSay/statisticsItem?convokeOrganization=' + item.convokeOrganization,
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: '/productionSay/statisticsItem?convokeOrganization='+item.convokeOrganization,
|
path: '/productionSay/statisticsItem?convokeOrganization=' + item.convokeOrganization,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -67,9 +119,9 @@ export default {
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.table {
|
.table {
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
margin:5px;
|
margin: 5px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background:#fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
.table th {
|
.table th {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
|
|||||||
Reference in New Issue
Block a user