临时提交

This commit is contained in:
648540858
2024-07-29 17:44:34 +08:00
parent e285257f24
commit 112cb2dfd8
9 changed files with 197 additions and 20 deletions

View File

@@ -249,6 +249,7 @@ export default {
label: "删除节点",
icon: "el-icon-delete",
disabled: node.level === 1,
divided: true,
onClick: () => {
this.$confirm('确定删除?', '提示', {
confirmButtonText: '确定',
@@ -261,6 +262,22 @@ export default {
});
}
},
{
label: "添加设备",
icon: "el-icon-plus",
disabled: node.level === 1,
onClick: () => {
this.addChannelFormDevice(data.id, node)
}
},
{
label: "移除设备",
icon: "el-icon-delete",
disabled: node.level === 1,
onClick: () => {
this.removeChannelFormDevice(data.id, node)
}
},
// {
// label: "导出",
// icon: "el-icon-download",
@@ -307,6 +324,12 @@ export default {
.catch(function (error) {
console.log(error);
});
},
addChannelFormDevice: function (id, node) {
},
removeChannelFormDevice: function (id, node) {
},
refreshNode: function (node) {
node.loaded = false