|
@@ -4,7 +4,7 @@
|
|
|
<swiper style="height: 100%;background-color:#F3F4F6 ;" :current="current" disable-touch
|
|
|
@animationfinish="animationfinish">
|
|
|
<swiper-item >
|
|
|
- <scroll-view scroll-y style="width: 100%;height: 100%;overflow: auto;box-sizing: border-box;" lower-threshold="0" :refresher-enabled="xlList1[0]" :refresher-triggered="xlList2[0]" @scrolltolower="lower(0)" @refresherrefresh="refresherrefresh(0)" @refresherrestore="refresherrestore(0)">
|
|
|
+ <scroll-view scroll-y style="width: 100%;height: 100%;overflow: auto;box-sizing: border-box;" lower-threshold="10" :refresher-enabled="xlList1[0]" :refresher-triggered="xlList2[0]" @scrolltolower="lower(0)" @refresherrefresh="refresherrefresh(0)" @refresherrestore="refresherrestore(0)">
|
|
|
<view style="padding: 20rpx;background-color: #fff;">
|
|
|
<u-search v-model="db.title" placeholder="请输入标题" :showAction="true" actionText="搜索"
|
|
|
:animation="true" @custom="dbsearch" @clear="dbsearch">
|
|
@@ -28,8 +28,8 @@
|
|
|
</div>
|
|
|
</scroll-view>
|
|
|
</swiper-item>
|
|
|
- <swiper-item >
|
|
|
- <scroll-view scroll-y style="width: 100%;height: 100%;overflow: auto;box-sizing: border-box;" lower-threshold="0" :refresher-enabled="xlList1[1]" :refresher-triggered="xlList2[1]" @scrolltolower="lower(1)" @refresherrefresh="refresherrefresh(1)" @refresherrestore="refresherrestore(1)">
|
|
|
+ <!-- <swiper-item >
|
|
|
+ <scroll-view scroll-y style="width: 100%;height: 100%;overflow: auto;box-sizing: border-box;" lower-threshold="10" :refresher-enabled="xlList1[1]" :refresher-triggered="xlList2[1]" @scrolltolower="lower(1)" @refresherrefresh="refresherrefresh(1)" @refresherrestore="refresherrestore(1)">
|
|
|
<view style="padding: 20rpx;background-color: #fff;">
|
|
|
<u-search v-model="yb.title" placeholder="请输入标题" :showAction="true" actionText="搜索"
|
|
|
:animation="true" @custom="ybsearch" @clear="ybsearch">
|
|
@@ -52,12 +52,12 @@
|
|
|
<u-empty mode="list" icon="/static/list.png" text="暂无内容" textSize="30rpx"></u-empty>
|
|
|
</div>
|
|
|
</scroll-view>
|
|
|
- </swiper-item>
|
|
|
- <!-- <swiper-item >
|
|
|
+ </swiper-item> -->
|
|
|
+ <swiper-item >
|
|
|
<scroll-view scroll-y style="width: 100%;height: 100%;overflow: auto;box-sizing: border-box;" lower-threshold="0" :refresher-enabled="xlList1[1]" :refresher-triggered="xlList2[1]" @scrolltolower="lower(1)" @refresherrefresh="refresherrefresh(1)" @refresherrestore="refresherrestore(1)">
|
|
|
<view style="padding: 20rpx;background-color: #fff;">
|
|
|
- <u-search v-model="yb.title" placeholder="请输入标题" :showAction="true" actionText="搜索"
|
|
|
- :animation="true" @custom="ybsearch" @clear="ybsearch">
|
|
|
+ <u-search v-model="sq.title" placeholder="请输入标题" :showAction="true" actionText="搜索"
|
|
|
+ :animation="true" @custom="sqsearch" @clear="sqsearch">
|
|
|
|
|
|
</u-search>
|
|
|
</view>
|
|
@@ -70,12 +70,15 @@
|
|
|
<view>{{showtime(item.RDT)}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <div style="padding: 10rpx 0;" v-if="statusList[1] == 'loading' || statusList[1] =='nomore'">
|
|
|
+ <div style="padding: 10rpx 0;" v-if="sqList.length > 0">
|
|
|
<u-loadmore :status="statusList[1]" />
|
|
|
</div>
|
|
|
+ <div v-if="sqList.length == 0">
|
|
|
+ <u-empty mode="list" icon="/static/list.png" text="暂无内容" textSize="30rpx"></u-empty>
|
|
|
+ </div>
|
|
|
</scroll-view>
|
|
|
- </swiper-item> -->
|
|
|
- <!-- <swiper-item >
|
|
|
+ </swiper-item>
|
|
|
+ <swiper-item >
|
|
|
<scroll-view scroll-y style="width: 100%;height: 100%;overflow: auto;box-sizing: border-box;" lower-threshold="0" :refresher-enabled="xlList1[2]" :refresher-triggered="xlList2[2]" @scrolltolower="lower(2)" @refresherrefresh="refresherrefresh(2)" @refresherrestore="refresherrestore(2)">
|
|
|
<view style="padding: 20rpx;background-color: #fff;">
|
|
|
<u-search v-model="yb.title" placeholder="请输入标题" :showAction="true" actionText="搜索"
|
|
@@ -92,23 +95,26 @@
|
|
|
<view>{{showtime(item.RDT)}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <div style="padding: 10rpx 0;" v-if="statusList[2] == 'loading' || statusList[2] =='nomore'">
|
|
|
+ <div style="padding: 10rpx 0;" v-if="ybList.length > 0">
|
|
|
<u-loadmore :status="statusList[2]" />
|
|
|
</div>
|
|
|
+ <div v-if="ybList.length == 0">
|
|
|
+ <u-empty mode="list" icon="/static/list.png" text="暂无内容" textSize="30rpx"></u-empty>
|
|
|
+ </div>
|
|
|
</scroll-view>
|
|
|
- </swiper-item> -->
|
|
|
+ </swiper-item>
|
|
|
</swiper>
|
|
|
</view>
|
|
|
<view style="height: 100rpx;border-top: 2px solid #dadbde;box-sizing: border-box;">
|
|
|
- <u-grid :border="true" col="2">
|
|
|
+ <u-grid :border="true" col="3">
|
|
|
<u-grid-item @click="click(0)">
|
|
|
<text class="grid-text" :class="current==0?'choose':''">待办</text>
|
|
|
</u-grid-item>
|
|
|
- <!-- <u-grid-item @click="click(1)">
|
|
|
- <text class="grid-text" :class="current==1?'choose':''">我申请的</text>
|
|
|
- </u-grid-item> -->
|
|
|
<u-grid-item @click="click(1)">
|
|
|
- <text class="grid-text" :class="current==1?'choose':''">已办</text>
|
|
|
+ <text class="grid-text" :class="current==1?'choose':''">我申请的</text>
|
|
|
+ </u-grid-item>
|
|
|
+ <u-grid-item @click="click(2)">
|
|
|
+ <text class="grid-text" :class="current==2?'choose':''">已办</text>
|
|
|
</u-grid-item>
|
|
|
</u-grid>
|
|
|
</view>
|
|
@@ -163,7 +169,6 @@
|
|
|
sqList:[],
|
|
|
sqSearch:null,
|
|
|
sqTotal:0,
|
|
|
-
|
|
|
}
|
|
|
},
|
|
|
onLoad(options){
|
|
@@ -179,10 +184,6 @@
|
|
|
uni.$off()
|
|
|
uni.$on('query', (query) => {
|
|
|
if(query.a=='back'){
|
|
|
- // uni.showLoading({
|
|
|
- // title:'加载中...',
|
|
|
- // mask:true
|
|
|
- // })
|
|
|
setTimeout(()=>{
|
|
|
this.db.pageNum = 1
|
|
|
this.dbList = []
|
|
@@ -198,21 +199,27 @@
|
|
|
methods: {
|
|
|
//点击已办待办
|
|
|
click(i){
|
|
|
- this.current = i
|
|
|
if(i==0){
|
|
|
- this.xlList1[0] = true
|
|
|
- this.xlList1[1] = false
|
|
|
+ this.xlList1[i] = true
|
|
|
+ this.xlList1[this.current] = false
|
|
|
+ this.current = i
|
|
|
if(this.dbList.length == 0){
|
|
|
this.getDbList()
|
|
|
}
|
|
|
}else if(i==1){
|
|
|
- this.xlList1[0] = false
|
|
|
- this.xlList1[1] = true
|
|
|
+ this.xlList1[i] = true
|
|
|
+ this.xlList1[this.current] = false
|
|
|
+ this.current = i
|
|
|
+ if(this.sqList.length == 0){
|
|
|
+ this.getSqList()
|
|
|
+ }
|
|
|
+ }else if(i==2){
|
|
|
+ this.xlList1[i] = true
|
|
|
+ this.xlList1[this.current] = false
|
|
|
+ this.current = i
|
|
|
if(this.ybList.length == 0){
|
|
|
this.getYbList()
|
|
|
}
|
|
|
- }else if(i==2){
|
|
|
-
|
|
|
}
|
|
|
},
|
|
|
//swiper切换
|
|
@@ -241,12 +248,27 @@
|
|
|
uni.hideLoading()
|
|
|
this.ybList = [...this.ybList,...res.list]
|
|
|
if(res.total<=this.yb.pageSize){
|
|
|
+ this.statusList[2] = "nomore"
|
|
|
+ }else{
|
|
|
+ this.statusList[2] = "loadmore"
|
|
|
+ }
|
|
|
+ this.$forceUpdate()
|
|
|
+ this.ybTotal = Math.ceil(res.total / this.yb.pageSize)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //查询我申请的列表
|
|
|
+ getSqList(){
|
|
|
+ uni.$u.http.get('/jflow/restful/DB_MyStartFlowInstanceByFlow',{params:this.sq}).then(res=>{
|
|
|
+ // console.log(res)
|
|
|
+ uni.hideLoading()
|
|
|
+ this.sqList = [...this.sqList,...res.list]
|
|
|
+ if(res.total<=this.sq.pageSize){
|
|
|
this.statusList[1] = "nomore"
|
|
|
}else{
|
|
|
this.statusList[1] = "loadmore"
|
|
|
}
|
|
|
this.$forceUpdate()
|
|
|
- this.ybTotal = Math.ceil(res.total / this.yb.pageSize)
|
|
|
+ this.sqTotal = Math.ceil(res.total / this.sq.pageSize)
|
|
|
})
|
|
|
},
|
|
|
//触底加载
|
|
@@ -263,7 +285,16 @@
|
|
|
this.statusList[e] = "nomore"
|
|
|
this.$forceUpdate()
|
|
|
}
|
|
|
- }else{
|
|
|
+ }else if(e==1){
|
|
|
+ if(this.sq.pageNum != this.sqTotal){
|
|
|
+ this.sq.pageNum++
|
|
|
+ this.getSqList()
|
|
|
+ }else{
|
|
|
+ uni.hideLoading()
|
|
|
+ this.statusList[e] = "nomore"
|
|
|
+ this.$forceUpdate()
|
|
|
+ }
|
|
|
+ }else if(e==2){
|
|
|
if(this.yb.pageNum != this.ybTotal){
|
|
|
this.yb.pageNum++
|
|
|
this.getYbList()
|
|
@@ -286,7 +317,16 @@
|
|
|
this.xlList2[e] = false
|
|
|
this.$forceUpdate()
|
|
|
},2000)
|
|
|
- }else{
|
|
|
+ }else if(e==1){
|
|
|
+ this.xlList2[e] = true
|
|
|
+ this.sq.pageNum = 1
|
|
|
+ this.sqList = []
|
|
|
+ this.getSqList()
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.xlList2[e] = false
|
|
|
+ this.$forceUpdate()
|
|
|
+ },2000)
|
|
|
+ }else if(e==2){
|
|
|
this.xlList2[e] = true
|
|
|
this.yb.pageNum = 1
|
|
|
this.ybList = []
|
|
@@ -312,6 +352,12 @@
|
|
|
this.ybList = []
|
|
|
this.getYbList()
|
|
|
},
|
|
|
+ //申请搜索
|
|
|
+ sqsearch(){
|
|
|
+ this.sq.pageNum = 1
|
|
|
+ this.sqList = []
|
|
|
+ this.getSqList()
|
|
|
+ },
|
|
|
//查看收文发文详情
|
|
|
getinfo(item){
|
|
|
uni.navigateTo({
|