|
@@ -221,10 +221,14 @@ export default {
|
|
orderDTOList:this.sort,//排序
|
|
orderDTOList:this.sort,//排序
|
|
}
|
|
}
|
|
this.$api.queryEvent(params).then(res => {
|
|
this.$api.queryEvent(params).then(res => {
|
|
|
|
+
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.tableData = res.data.data
|
|
this.tableData = res.data.data
|
|
this.total=res.data.total
|
|
this.total=res.data.total
|
|
}
|
|
}
|
|
|
|
+ }).catch(err => {
|
|
|
|
+ this.tableData = []
|
|
|
|
+ this.total=0
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
@@ -316,9 +320,7 @@ export default {
|
|
type: 'warning'
|
|
type: 'warning'
|
|
}).then(() => {
|
|
}).then(() => {
|
|
// 调用接口
|
|
// 调用接口
|
|
- let params = [
|
|
|
|
- row.id
|
|
|
|
- ]
|
|
|
|
|
|
+ let params = [ row.id ]
|
|
this.$api.deleteEvent(params).then(res => {
|
|
this.$api.deleteEvent(params).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.getList()
|
|
this.getList()
|