临时提交

This commit is contained in:
648540858
2024-08-26 17:59:29 +08:00
parent c45bf5d6af
commit b2b7426871
16 changed files with 378 additions and 98 deletions

View File

@@ -181,7 +181,10 @@ export default {
},
add: function (row) {
if (!this.groupId) {
this.$message.info("请选择左侧行政区划节点")
this.$message.info({
showClose: true,
message: "请选择左侧行政区划节点"
})
return;
}
let channels = []
@@ -189,7 +192,10 @@ export default {
channels.push(this.multipleSelection[i].gbId)
}
if (channels.length === 0) {
this.$message.info("请选择右侧通道")
this.$message.info({
showClose: true,
message: "请选择右侧通道"
})
return;
}
this.loading = true
@@ -204,16 +210,25 @@ export default {
}
}).then((res)=> {
if (res.data.code === 0) {
this.$message.success("保存成功")
this.$message.success({
showClose: true,
message: "保存成功"
})
this.getChannelList()
// 刷新树节点
this.$refs.groupTree.refresh(this.groupId)
}else {
this.$message.error(res.data.msg)
this.$message.error({
showClose: true,
message: res.data.msg
})
}
this.loading = false
}).catch((error)=> {
this.$message.error(error)
this.$message.error({
showClose: true,
message: error
})
this.loading = false
});
},
@@ -224,7 +239,10 @@ export default {
channels.push(this.multipleSelection[i].gbId)
}
if (channels.length === 0) {
this.$message.info("请选择右侧通道")
this.$message.info({
showClose: true,
message: "请选择右侧通道"
})
return;
}
this.loading = true
@@ -237,16 +255,25 @@ export default {
}
}).then((res)=> {
if (res.data.code === 0) {
this.$message.success("保存成功")
this.$message.success({
showClose: true,
message: "保存成功"
})
this.getChannelList()
// 刷新树节点
this.$refs.groupTree.refresh(this.groupId)
}else {
this.$message.error(res.data.msg)
this.$message.error({
showClose: true,
message: res.data.msg
})
}
this.loading = false
}).catch((error)=> {
this.$message.error(error)
this.$message.error({
showClose: true,
message: error
})
this.loading = false
});
},