修复bug

This commit is contained in:
weipengfei 2023-08-24 12:29:12 +08:00
parent b5ef022927
commit ab48c72825

View File

@ -39,7 +39,7 @@
<view class="personnel_list">
<view class="card" v-for="(item, index) in list" :key="item.id">
<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"
@click="navTo(`/subpkg/updateArchives/updateArchives?id=${item.id}&task_id=${task_id}`)">更新档案</text>
<text v-if="showView"
@ -158,6 +158,14 @@
nomoreText: '我也是有底线的~~',
status: 'loadmore'
},
loadConfig1: {
page: 1,
limit: 15,
loadingText: '努力加载中',
loadmoreText: '轻轻上拉',
nomoreText: '我也是有底线的~~',
status: 'loadmore'
},
}
},
onLoad(options) {
@ -236,12 +244,23 @@
} else {
this.loadConfig.page++;
}
console.log(this.list);
this.list = [...this.list, ...res.data];
console.log(this.list);
},
changeCurrent(e) {
this.current = e.index;
this.initLoad();
}
},
updateTime(e){
let str = '';
try{
str = e.split(' ')[0]
}catch(e){
str = '无更新时间'
}
return str
}
},
onPullDownRefresh() {
this.initLoad();