更新
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
</input> -->
|
||||
<view @click="inputFocus" class="special-input" >
|
||||
{{ parameter.params.name || '企业名称'}}
|
||||
<image v-if="parameter.params.name" class="close" src="../../../static/close.png" @click="inputClear"></image>
|
||||
<image v-if="parameter.params.name" class="close" src="../../../static/close.png" @click.stop="inputClear"></image>
|
||||
</view>
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
</view>
|
||||
<view style="flex: 1;overflow: hidden;">
|
||||
<scroll-view style="height: 100%;" scroll-y="true" @scrolltolower="scrolltolower">
|
||||
<view v-for="(item,index) in listData">
|
||||
<view v-for="(item,index) in listData" :key="index">
|
||||
<view class="item">
|
||||
<view class="type">{{typeEnum[item.transactionType]}}</view>
|
||||
<view class="top-region">
|
||||
@@ -92,11 +92,9 @@
|
||||
companyId: '',
|
||||
createTimeStart: '',
|
||||
createTimeEnd: '',
|
||||
businessLeader: '',
|
||||
businessLeader: ''
|
||||
},
|
||||
sorted: {
|
||||
|
||||
}
|
||||
sorted: {}
|
||||
},
|
||||
styles: {},
|
||||
listData: [],
|
||||
@@ -134,12 +132,11 @@
|
||||
|
||||
uni.$on('currentEnterprise', (item) => {
|
||||
if (!item.id) return
|
||||
this.parameter.currentPage = 1
|
||||
this.parameter.params.companyId = item.id
|
||||
this.parameter.params.name = item.name
|
||||
|
||||
})
|
||||
},
|
||||
onShow() {
|
||||
|
||||
this.search();
|
||||
},
|
||||
|
||||
@@ -166,6 +163,23 @@
|
||||
this.parameter.params.businessLeader = this.userInfo.id
|
||||
serve.getByPageRecharge(this.parameter).then(res => {
|
||||
if (res.code !== 20000) return
|
||||
if (this.parameter.currentPage == 1) {
|
||||
if(!res.data.list.length) {
|
||||
uni.showToast({
|
||||
title: '暂无数据~',
|
||||
icon:'none'
|
||||
})
|
||||
}
|
||||
this.listData = res.data.list
|
||||
return
|
||||
}
|
||||
if (!res.data.list.length) {
|
||||
uni.showToast({
|
||||
title: '没有更多数据了~',
|
||||
icon:'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
this.listData = this.listData.concat(res.data.list);
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user