|
|
@ -260,6 +260,13 @@ export default { |
|
|
|
arr.push(row.orderId); |
|
|
|
arr.push(row.orderId); |
|
|
|
this.$post(this.api.orderDelete, { ids: arr }).then(res => { |
|
|
|
this.$post(this.api.orderDelete, { ids: arr }).then(res => { |
|
|
|
this.$message.success("删除成功"); |
|
|
|
this.$message.success("删除成功"); |
|
|
|
|
|
|
|
if(this.orderData.length == 2){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
if(this.pageNo > 1){ |
|
|
|
|
|
|
|
this.pageNo = this.pageNo-1 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
this.getData(); |
|
|
|
this.getData(); |
|
|
|
}).catch(res => { |
|
|
|
}).catch(res => { |
|
|
|
}); |
|
|
|
}); |
|
|
@ -289,6 +296,13 @@ export default { |
|
|
|
this.$post(this.api.orderDelete, { ids: this.multipleSelection }).then(res => { |
|
|
|
this.$post(this.api.orderDelete, { ids: this.multipleSelection }).then(res => { |
|
|
|
this.multipleSelection = []; |
|
|
|
this.multipleSelection = []; |
|
|
|
this.$message.success("删除成功"); |
|
|
|
this.$message.success("删除成功"); |
|
|
|
|
|
|
|
if(this.multipleSelection.length == this.orderData.length){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
if(this.pageNo > 1){ |
|
|
|
|
|
|
|
this.pageNo = this.pageNo-1 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
this.getData(); |
|
|
|
this.getData(); |
|
|
|
}).catch(err => { |
|
|
|
}).catch(err => { |
|
|
|
}); |
|
|
|
}); |
|
|
|