临时提交

This commit is contained in:
648540858
2024-08-24 21:54:59 +08:00
parent dddcff8fdb
commit 5216e9723c
7 changed files with 139 additions and 39 deletions

View File

@@ -157,7 +157,7 @@ export default {
}
},
{
label: "重命名",
label: "编辑节点",
icon: "el-icon-edit",
disabled: node.level === 1,
onClick: () => {
@@ -321,15 +321,19 @@ export default {
this.$refs.regionCode.openDialog(form => {
node.loaded = false
node.expand();
}, node.data.deviceId, node.data.id);
}, {
deviceId: "",
name: "",
parentId: node.data.id,
parentDeviceId: node.data.deviceId,
});
},
editCatalog: function (data, node){
// 打开添加弹窗
this.$refs.regionCode.openDialog(form => {
node.loaded = false
node.expand();
}, node.data.deviceId, node.data.id);
}, node.data);
},
nodeClickHandler: function (data, node, tree) {
console.log(data)