|
@@ -35,7 +35,8 @@
|
|
|
data() {
|
|
|
return {
|
|
|
messageList: [],
|
|
|
- newId:''
|
|
|
+ newId:'',
|
|
|
+ list: []
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -73,8 +74,17 @@
|
|
|
// this.getMessageList()
|
|
|
this.$u.api.getMessageList({pageSize:pageSize ,pageNum: pageNum})
|
|
|
.then(res=>{
|
|
|
+ if(res.code == 200){
|
|
|
console.log(res)
|
|
|
- this.newId = res.data.rows[0].id;
|
|
|
+ this.list=[],
|
|
|
+ res.data.rows.forEach(item =>{
|
|
|
+ const obj = {
|
|
|
+ id: item.id,
|
|
|
+ }
|
|
|
+ this.list.push(obj)
|
|
|
+ console.log(obj)
|
|
|
+ })
|
|
|
+ this.newId = this.list[0]
|
|
|
console.log(this.newId)
|
|
|
// 接口返回的当前页数据列表 (数组)
|
|
|
let curPageData = res.data.rows;
|
|
@@ -97,7 +107,15 @@
|
|
|
setTimeout(()=>{
|
|
|
this.mescroll.endSuccess(curPageLen)
|
|
|
},20)
|
|
|
- })
|
|
|
+ }else{
|
|
|
+ this.mescroll.endErr()
|
|
|
+ }
|
|
|
+ }).catch(err=>{
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ title: err.msg,
|
|
|
+ type: 'error',
|
|
|
+ });
|
|
|
+ });
|
|
|
|
|
|
},
|
|
|
goDetails(content,createTime,title){
|