|
|
|
@ -117,7 +117,13 @@ export default {
|
|
|
|
|
updateChannelapi(this.formdata)
|
|
|
|
|
.then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.$message.success("修改成功");
|
|
|
|
|
// this.$message.success("修改成功");
|
|
|
|
|
this.$message({
|
|
|
|
|
duration: 1500,
|
|
|
|
|
showClose: true,
|
|
|
|
|
message: "添加成功",
|
|
|
|
|
type: "success",
|
|
|
|
|
});
|
|
|
|
|
this.$parent.deviceList();
|
|
|
|
|
this.isShow = false;
|
|
|
|
|
} else {
|
|
|
|
@ -125,7 +131,13 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
this.$message.error("修改失败");
|
|
|
|
|
//this.$message.error("修改失败");
|
|
|
|
|
this.$message({
|
|
|
|
|
duration: 1500,
|
|
|
|
|
showClose: true,
|
|
|
|
|
message: "修改失败",
|
|
|
|
|
type: "error",
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|