|
@@ -454,7 +454,7 @@ export default {
|
|
|
};
|
|
|
let res = await changeShop(params);
|
|
|
console.log(res);
|
|
|
- if (res === "OK") {
|
|
|
+ if (res.status === "success") {
|
|
|
this.getList();
|
|
|
this.selectValue = "";
|
|
|
this.dialogFormVisible = false;
|
|
@@ -464,6 +464,13 @@ export default {
|
|
|
type: "success",
|
|
|
duration: 2000
|
|
|
});
|
|
|
+ } else {
|
|
|
+ this.$notify({
|
|
|
+ title: "失败",
|
|
|
+ message: res.message,
|
|
|
+ type: "fail",
|
|
|
+ duration: 4000
|
|
|
+ });
|
|
|
}
|
|
|
// this.temp.id = parseInt(Math.random() * 100) + 1024 // mock a id
|
|
|
// this.temp.author = 'vue-element-admin'
|