调整:我的上报 刷新

master
masong 2 years ago
parent bd1aa4658f
commit a5138e19ee
  1. 24
      subPackWork/myReport/myReport.vue

@ -82,25 +82,7 @@
currentTab: 0, //sweiper
pages: [1, 1, 1, 1, 1, 1, 1, 1], //swiper
list: [
// [
// {
// "id": 62,
// "reportTime": "2023-04-17 16:39:55",
// "title": "",
// "waringName": "",
// "statusName": "",
// "status": "1"
// },
// {
// "id": 63,
// "reportTime": "2023-04-17 16:49:29",
// "title": "",
// "waringName": "",
// "statusName": "",
// "status": "1"
// }
// ],[],[],[],[],[],[],[],
list: [
], //
baseUrls: '',
pageBottoms: []
@ -230,15 +212,13 @@
}
getEventReportData(data).then(res => {
if (res.code === 200) {
console.log(res.rows)
res.rows.forEach(item => {
this.list[this.currentTab].push(item)
})
console.log(this.list[this.currentTab])
if (res.total == this.list[this.currentTab].length) {
this.pageBottoms[this.currentTab] = true
}
this.$forceUpdate()
}
})
},

Loading…
Cancel
Save