|
|
|
|
@ -157,15 +157,15 @@ export default { |
|
|
|
|
row.locationStatus = Number(newStatus); |
|
|
|
|
console.log(row,'更新状态'); |
|
|
|
|
// // 调用更新接口 |
|
|
|
|
// locationUpdate(row) |
|
|
|
|
// .then(() => { |
|
|
|
|
// this.$message.success('状态修改成功'); |
|
|
|
|
// this.onLoad(this.page, this.query); |
|
|
|
|
// }) |
|
|
|
|
// .catch(err => { |
|
|
|
|
// this.$message.error('状态修改失败'); |
|
|
|
|
// console.error(err); |
|
|
|
|
// }); |
|
|
|
|
locationUpdate(row) |
|
|
|
|
.then(() => { |
|
|
|
|
this.$message.success('状态修改成功'); |
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
}) |
|
|
|
|
.catch(err => { |
|
|
|
|
this.$message.error('状态修改失败'); |
|
|
|
|
console.error(err); |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
.catch(() => { |
|
|
|
|
// 用户取消 |
|
|
|
|
|