缴费
This commit is contained in:
+35
-13
@@ -3,8 +3,7 @@
|
||||
<view class="" v-if="sysType == 2">
|
||||
<button type="primary" @tap="newlyAddedCases">新增案件</button>
|
||||
</view>
|
||||
<List class="caseList" v-for="(item,index) in caseList" :defalutVal='item' :key="index"
|
||||
v-if="item.pendingStatus == 0" :sysType='sysType'>
|
||||
<List class="caseList" v-for="(item,index) in caseList" :defalutVal='item' :key="index" :sysType='sysType'>
|
||||
</List>
|
||||
<view class="emptyBox" v-if="caseList.length == 0">
|
||||
<luanqing-empty :show="true" textColor="#000"></luanqing-empty>
|
||||
@@ -29,7 +28,8 @@
|
||||
caseList: [],
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
sysType: null
|
||||
sysType: null,
|
||||
total: null,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -38,7 +38,7 @@
|
||||
respondentList(parms).then(res => {
|
||||
// this.caseList = res.rows;
|
||||
if (res.data) {
|
||||
this.caseList = res.data;
|
||||
this.caseList = [...this.caseList, ...res.data];
|
||||
} else {
|
||||
this.caseList = []
|
||||
}
|
||||
@@ -102,9 +102,9 @@
|
||||
} else if (this.sysType == 2) {
|
||||
parms.miniProgressFlag = 1;
|
||||
caseApplicationTj(parms).then(res => {
|
||||
// this.caseList = res.rows;
|
||||
this.total = res.total;
|
||||
if (res.rows) {
|
||||
this.caseList = res.rows;
|
||||
this.caseList = [...this.caseList, ...res.rows];
|
||||
} else {
|
||||
this.caseList = []
|
||||
}
|
||||
@@ -113,22 +113,44 @@
|
||||
|
||||
},
|
||||
// 新增案件
|
||||
newlyAddedCases(){
|
||||
newlyAddedCases() {
|
||||
uni.navigateTo({
|
||||
url:`/pages/handlecase/component/newlyAddedCase?title=新增案件`
|
||||
url: `/pages/handlecase/component/newlyAddedCase?title=新增案件`
|
||||
})
|
||||
},
|
||||
// 触底
|
||||
onReachBottom() {
|
||||
if (this.caseList.length < 1) {
|
||||
return
|
||||
} else if (this.total == this.caseList.length) {
|
||||
uni.showToast({
|
||||
title: '没有数据啦',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
return
|
||||
} else if (this.caseList.length < 10) {
|
||||
uni.showToast({
|
||||
title: '没有数据啦',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
})
|
||||
return
|
||||
}
|
||||
let obj = {
|
||||
pageNum: this.pageNum,
|
||||
pageSize: this.pageSize,
|
||||
caseStatus: 4
|
||||
this.pageNum++;
|
||||
let obj = {};
|
||||
if (this.sysType == 1) {
|
||||
obj = {
|
||||
pageNum: this.pageNum,
|
||||
pageSize: this.pageSize,
|
||||
caseStatus: 4
|
||||
}
|
||||
} else if (this.sysType == 2) {
|
||||
obj = {
|
||||
pageNum: this.pageNum,
|
||||
pageSize: this.pageSize,
|
||||
}
|
||||
}
|
||||
obj.pageNum = obj.pageNum + 1
|
||||
this.getList(obj)
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user