修复bug
This commit is contained in:
parent
b5ef022927
commit
ab48c72825
@ -39,7 +39,7 @@
|
|||||||
<view class="personnel_list">
|
<view class="personnel_list">
|
||||||
<view class="card" v-for="(item, index) in list" :key="item.id">
|
<view class="card" v-for="(item, index) in list" :key="item.id">
|
||||||
<view class="card_head">
|
<view class="card_head">
|
||||||
<text style="font-size: 32rpx">最后更新: {{item.update_time.substring(0, 10)}}</text>
|
<text style="font-size: 32rpx">最后更新: {{updateTime(item.update_time)}}</text>
|
||||||
<text v-if="showView"
|
<text v-if="showView"
|
||||||
@click="navTo(`/subpkg/updateArchives/updateArchives?id=${item.id}&task_id=${task_id}`)">更新档案</text>
|
@click="navTo(`/subpkg/updateArchives/updateArchives?id=${item.id}&task_id=${task_id}`)">更新档案</text>
|
||||||
<text v-if="showView"
|
<text v-if="showView"
|
||||||
@ -158,6 +158,14 @@
|
|||||||
nomoreText: '我也是有底线的~~',
|
nomoreText: '我也是有底线的~~',
|
||||||
status: 'loadmore'
|
status: 'loadmore'
|
||||||
},
|
},
|
||||||
|
loadConfig1: {
|
||||||
|
page: 1,
|
||||||
|
limit: 15,
|
||||||
|
loadingText: '努力加载中',
|
||||||
|
loadmoreText: '轻轻上拉',
|
||||||
|
nomoreText: '我也是有底线的~~',
|
||||||
|
status: 'loadmore'
|
||||||
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
@ -236,12 +244,23 @@
|
|||||||
} else {
|
} else {
|
||||||
this.loadConfig.page++;
|
this.loadConfig.page++;
|
||||||
}
|
}
|
||||||
|
console.log(this.list);
|
||||||
this.list = [...this.list, ...res.data];
|
this.list = [...this.list, ...res.data];
|
||||||
|
console.log(this.list);
|
||||||
},
|
},
|
||||||
changeCurrent(e) {
|
changeCurrent(e) {
|
||||||
this.current = e.index;
|
this.current = e.index;
|
||||||
this.initLoad();
|
this.initLoad();
|
||||||
}
|
},
|
||||||
|
updateTime(e){
|
||||||
|
let str = '';
|
||||||
|
try{
|
||||||
|
str = e.split(' ')[0]
|
||||||
|
}catch(e){
|
||||||
|
str = '无更新时间'
|
||||||
|
}
|
||||||
|
return str
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onPullDownRefresh() {
|
onPullDownRefresh() {
|
||||||
this.initLoad();
|
this.initLoad();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user