临时提交

pull/1642/head
648540858 2024-08-24 00:29:40 +08:00
parent 5a259aaa63
commit dddcff8fdb
3 changed files with 10 additions and 8 deletions

View File

@ -323,6 +323,14 @@ export default {
node.expand();
}, node.data.deviceId, node.data.id);
},
editCatalog: function (data, node){
//
this.$refs.regionCode.openDialog(form => {
node.loaded = false
node.expand();
}, node.data.deviceId, node.data.id);
},
nodeClickHandler: function (data, node, tree) {
console.log(data)
console.log(node)

View File

@ -100,11 +100,8 @@ export default {
},
addCatalog: function (parentId, node){
let that = this;
console.log(this.platformId)
console.log(parentId)
//
that.$refs.catalogEdit.openDialog(false, null, null, parentId, node.level, ()=>{
this.$refs.catalogEdit.openDialog(false, null, null, parentId, node.level, ()=>{
node.loaded = false
node.expand();
});
@ -121,9 +118,8 @@ export default {
}
},
editCatalog: function (data, node){
let that = this;
//
that.$refs.catalogEdit.openDialog(true, data.id, data.name, data.parentId, (newData)=>{
this.$refs.catalogEdit.openDialog(true, data.id, data.name, data.parentId, node.level, (newData)=>{
node.parent.loaded = false
node.parent.expand();
if (data.id === this.chooseId && newData.name !== data.name) {

View File

@ -166,8 +166,6 @@ export default {
}
]
if (parentDeviceId) {
console.log(parentDeviceId)
console.log(parentDeviceId.length)
if (parentDeviceId.length >= 2) {
this.allVal[0].val = parentDeviceId.substring(0, 2)
this.activeKey = "1"