|
|
|
@ -72,9 +72,13 @@ export default {
|
|
|
|
|
formArr.push(this.formdata);
|
|
|
|
|
addChannelapi({ list: formArr })
|
|
|
|
|
.then((res) => {
|
|
|
|
|
this.isShow = false;
|
|
|
|
|
this.$message.success("添加成功");
|
|
|
|
|
this.$parent.deviceList();
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.$message.success("添加成功");
|
|
|
|
|
this.$parent.deviceList();
|
|
|
|
|
this.isShow = false;
|
|
|
|
|
}else{
|
|
|
|
|
this.$message.error(res.msg);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
this.$message.error("添加失败");
|
|
|
|
@ -82,9 +86,13 @@ export default {
|
|
|
|
|
} else {
|
|
|
|
|
updateChannelapi(this.formdata)
|
|
|
|
|
.then((res) => {
|
|
|
|
|
this.isShow = false;
|
|
|
|
|
this.$message.success("修改成功");
|
|
|
|
|
this.$parent.deviceList();
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.$message.success("修改成功");
|
|
|
|
|
this.$parent.deviceList();
|
|
|
|
|
this.isShow = false;
|
|
|
|
|
}else{
|
|
|
|
|
this.$message.error(res.msg);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
this.$message.error("修改失败");
|
|
|
|
|