mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 06:16:44 +08:00
overflow-x: auto;导致 List 无法正确地判断滚动容器。解决方法是去除该样式
This commit is contained in:
@@ -47,7 +47,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="table">
|
<div class="table">
|
||||||
<tableDetail :theads="theads" :tableData="tableData"></tableDetail>
|
<van-list v-model="loading" :finished="finished" @load="queryOutOrderListFunc" :immediate-check="false" finished-text="没有更多数据了">
|
||||||
|
<tableDetail :theads="theads" :tableData="tableData"></tableDetail>
|
||||||
|
</van-list>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 二级机构筛选栏 -->
|
<!-- 二级机构筛选栏 -->
|
||||||
@@ -115,8 +117,10 @@ export default {
|
|||||||
maxDate: new Date(),
|
maxDate: new Date(),
|
||||||
filterDate: '',
|
filterDate: '',
|
||||||
postDate: '', //实际给后台传的时间
|
postDate: '', //实际给后台传的时间
|
||||||
|
loading: false,
|
||||||
|
finished: false,
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 5,
|
||||||
manageLv: 1, //当前人机构等级
|
manageLv: 1, //当前人机构等级
|
||||||
// 二级机构筛选是否显示
|
// 二级机构筛选是否显示
|
||||||
isOrgLv2ConditionShow: false,
|
isOrgLv2ConditionShow: false,
|
||||||
@@ -168,12 +172,16 @@ export default {
|
|||||||
this.postDate = date.year + '-' + date.month + '-' + date.date
|
this.postDate = date.year + '-' + date.month + '-' + date.date
|
||||||
}
|
}
|
||||||
this.currentIndex = index == 0 ? 1 : 0
|
this.currentIndex = index == 0 ? 1 : 0
|
||||||
this.queryOutOrderList()
|
this.pageNum = 1
|
||||||
|
this.tableData = []
|
||||||
|
this.queryOutOrderListFunc()
|
||||||
},
|
},
|
||||||
//时间筛选
|
//时间筛选
|
||||||
onDateConfirm(data) {
|
onDateConfirm(data) {
|
||||||
this.postDate = data
|
this.postDate = data
|
||||||
this.queryOutOrderList()
|
this.pageNum = 1
|
||||||
|
this.tableData = []
|
||||||
|
this.queryOutOrderListFunc()
|
||||||
},
|
},
|
||||||
async initData() {
|
async initData() {
|
||||||
// 初始化年份筛选数据
|
// 初始化年份筛选数据
|
||||||
@@ -204,7 +212,7 @@ export default {
|
|||||||
this.OrgLv2Name = this.OrgLv2s[0].name
|
this.OrgLv2Name = this.OrgLv2s[0].name
|
||||||
this.OrgLv2Code = this.OrgLv2s[0].code
|
this.OrgLv2Code = this.OrgLv2s[0].code
|
||||||
// this.orgCode = this.OrgLv2s[0].code
|
// this.orgCode = this.OrgLv2s[0].code
|
||||||
this.onOrgLv2ConditionConfirm(this.OrgLv2Name)
|
this.onOrgLv2ConditionConfirmGetData(this.OrgLv2Name)
|
||||||
} else {
|
} else {
|
||||||
this.$toast(res.resultMessage)
|
this.$toast(res.resultMessage)
|
||||||
}
|
}
|
||||||
@@ -213,15 +221,15 @@ export default {
|
|||||||
this.OrgLv2Name = this.OrgLv2s[0].name
|
this.OrgLv2Name = this.OrgLv2s[0].name
|
||||||
this.OrgLv2Code = this.OrgLv2s[0].code
|
this.OrgLv2Code = this.OrgLv2s[0].code
|
||||||
// this.orgCode = this.OrgLv2s[0].code
|
// this.orgCode = this.OrgLv2s[0].code
|
||||||
this.onOrgLv2ConditionConfirm(this.OrgLv2Name)
|
this.onOrgLv2ConditionConfirmGetData(this.OrgLv2Name)
|
||||||
}
|
}
|
||||||
|
this.queryOutOrderListFunc()
|
||||||
// 查询默认数据
|
// 查询默认数据
|
||||||
// const result = await this.getRankData()
|
// const result = await this.getRankData()
|
||||||
// this.setSummarizingData(result)
|
// this.setSummarizingData(result)
|
||||||
},
|
},
|
||||||
// 查询列表数据
|
// 查询列表数据
|
||||||
queryOutOrderList() {
|
queryOutOrderListFunc() {
|
||||||
queryOutOrderList({
|
queryOutOrderList({
|
||||||
appntDate: this.postDate,
|
appntDate: this.postDate,
|
||||||
distCode: this.OrgLv2Code,
|
distCode: this.OrgLv2Code,
|
||||||
@@ -232,11 +240,52 @@ export default {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.result == 0) {
|
if (res.result == 0) {
|
||||||
if (res.content) {
|
if (res.content) {
|
||||||
|
this.pageNum++
|
||||||
|
//点击其他筛选条件,finished会变为true,需要重置finished数据全部加载完成--false
|
||||||
|
this.finished = false
|
||||||
|
//当下一页为0时 表示全部数据加载完毕
|
||||||
|
if (res.content.nextPage == 0) {
|
||||||
|
this.finished = true
|
||||||
|
}
|
||||||
this.tableData = this.tableData.concat(res.content.list)
|
this.tableData = this.tableData.concat(res.content.list)
|
||||||
|
// this.tableData.push(...res.content.list)
|
||||||
|
this.loading = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 筛选二级机构-区--数据加载
|
||||||
|
async onOrgLv2ConditionConfirmGetData(data) {
|
||||||
|
this.isOrgLv2ConditionShow = false
|
||||||
|
let OrgLv2 = this.OrgLv2s.find(item => item.name === data)
|
||||||
|
if (OrgLv2) {
|
||||||
|
this.OrgLv2Code = OrgLv2.code
|
||||||
|
this.params.manageCode = this.OrgLv2Code
|
||||||
|
this.params.manageLv = '02'
|
||||||
|
}
|
||||||
|
if (data === '全国') {
|
||||||
|
this.params.manageCode = '86'
|
||||||
|
this.params.manageLv = '01'
|
||||||
|
}
|
||||||
|
this.OrgLv2Name = data
|
||||||
|
this.OrgLv4Name = '全部'
|
||||||
|
this.OrgLv3Name = '全部'
|
||||||
|
this.OrgLv3Code = ''
|
||||||
|
this.areaCode = ''
|
||||||
|
// // 点击其他筛选条件-重置当前页为第一页
|
||||||
|
// this.pageNum = 1
|
||||||
|
// this.tableData = []
|
||||||
|
// this.queryOutOrderListFunc()
|
||||||
|
// 查询三级机构
|
||||||
|
const res = await getOrgList({
|
||||||
|
bussinessType: 'normal',
|
||||||
|
manageCode: this.OrgLv2Code,
|
||||||
|
manageLv: '05'
|
||||||
|
})
|
||||||
|
this.OrgLv3s.splice(0)
|
||||||
|
this.OrgLv3s.push(...res.content)
|
||||||
|
// this.setRankData()
|
||||||
|
},
|
||||||
// 筛选二级机构-区
|
// 筛选二级机构-区
|
||||||
async onOrgLv2ConditionConfirm(data) {
|
async onOrgLv2ConditionConfirm(data) {
|
||||||
this.isOrgLv2ConditionShow = false
|
this.isOrgLv2ConditionShow = false
|
||||||
@@ -255,9 +304,10 @@ export default {
|
|||||||
this.OrgLv3Name = '全部'
|
this.OrgLv3Name = '全部'
|
||||||
this.OrgLv3Code = ''
|
this.OrgLv3Code = ''
|
||||||
this.areaCode = ''
|
this.areaCode = ''
|
||||||
|
// 点击其他筛选条件-重置当前页为第一页
|
||||||
this.pageNum = 1
|
this.pageNum = 1
|
||||||
this.queryOutOrderList()
|
this.tableData = []
|
||||||
|
this.queryOutOrderListFunc()
|
||||||
// 查询三级机构
|
// 查询三级机构
|
||||||
const res = await getOrgList({
|
const res = await getOrgList({
|
||||||
bussinessType: 'normal',
|
bussinessType: 'normal',
|
||||||
@@ -285,9 +335,10 @@ export default {
|
|||||||
this.OrgLv3Name = '全部'
|
this.OrgLv3Name = '全部'
|
||||||
// this.OrgLv2Code = ''
|
// this.OrgLv2Code = ''
|
||||||
this.areaCode = ''
|
this.areaCode = ''
|
||||||
|
// 点击其他筛选条件-重置当前页为第一页
|
||||||
this.pageNum = 1
|
this.pageNum = 1
|
||||||
this.queryOutOrderList()
|
this.tableData = []
|
||||||
|
this.queryOutOrderListFunc()
|
||||||
// 查询四级机构
|
// 查询四级机构
|
||||||
const res = await getOrgList({
|
const res = await getOrgList({
|
||||||
bussinessType: 'normal',
|
bussinessType: 'normal',
|
||||||
@@ -314,8 +365,10 @@ export default {
|
|||||||
}
|
}
|
||||||
// this.OrgLv2Code = ''
|
// this.OrgLv2Code = ''
|
||||||
// this.OrgLv3Code = ''
|
// this.OrgLv3Code = ''
|
||||||
|
// 点击其他筛选条件-重置当前页为第一页
|
||||||
this.pageNum = 1
|
this.pageNum = 1
|
||||||
this.queryOutOrderList()
|
this.tableData = []
|
||||||
|
this.queryOutOrderListFunc()
|
||||||
// this.setRankData()
|
// this.setRankData()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -366,7 +419,8 @@ export default {
|
|||||||
width: 0px;
|
width: 0px;
|
||||||
}
|
}
|
||||||
.table {
|
.table {
|
||||||
overflow-x: auto;
|
//overflow-x: auto;导致 List 无法正确地判断滚动容器。解决方法是去除该样式
|
||||||
|
// overflow-x: auto;
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
|||||||
Reference in New Issue
Block a user