|
@@ -252,13 +252,13 @@ export default {
|
|
|
this.loading = true;
|
|
|
const { id } = prop;
|
|
|
console.log(id, 'id');
|
|
|
- // const { code, msg } = await remove(id);
|
|
|
- // if (code === 200) {
|
|
|
- // this.$notify.success({ title: msg });
|
|
|
- // this.fetchList(this.params, this.page);
|
|
|
- // } else {
|
|
|
- // this.$notify.warning({ title: msg });
|
|
|
- // }
|
|
|
+ const { code, msg } = await orderApi.remove(id);
|
|
|
+ if (code === 200) {
|
|
|
+ this.$notify.success({ title: msg });
|
|
|
+ this.fetchList(this.params, this.page);
|
|
|
+ } else {
|
|
|
+ this.$notify.warning({ title: msg });
|
|
|
+ }
|
|
|
} catch (err) {
|
|
|
this.$notify.error({ title: "error", message: err });
|
|
|
} finally {
|