add 压制订单
This commit is contained in:
@@ -79,7 +79,7 @@ export default {
|
||||
/** dialog configs 或许可以从 tableConfig 计算出来 computed... */
|
||||
dialogConfigs: {
|
||||
type: Object,
|
||||
default: () => null
|
||||
default: () => null,
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
@@ -340,6 +340,26 @@ export default {
|
||||
},
|
||||
});
|
||||
}
|
||||
case "detach": {
|
||||
return this.$http.post(this.urls.detach, { id: data }).then(({ data: res }) => {
|
||||
if (res.code === 0) {
|
||||
this.$message({
|
||||
message: "下发成功",
|
||||
type: "success",
|
||||
duration: 1500,
|
||||
onClose: () => {
|
||||
this.getList();
|
||||
},
|
||||
});
|
||||
} else {
|
||||
this.$message({
|
||||
message: `${res.code}: ${res.msg}`,
|
||||
type: "error",
|
||||
duration: 1500,
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user