临时提交
parent
5a259aaa63
commit
dddcff8fdb
|
@ -323,6 +323,14 @@ export default {
|
||||||
node.expand();
|
node.expand();
|
||||||
}, node.data.deviceId, node.data.id);
|
}, 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) {
|
nodeClickHandler: function (data, node, tree) {
|
||||||
console.log(data)
|
console.log(data)
|
||||||
console.log(node)
|
console.log(node)
|
||||||
|
|
|
@ -100,11 +100,8 @@ export default {
|
||||||
|
|
||||||
},
|
},
|
||||||
addCatalog: function (parentId, node){
|
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.loaded = false
|
||||||
node.expand();
|
node.expand();
|
||||||
});
|
});
|
||||||
|
@ -121,9 +118,8 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
editCatalog: function (data, node){
|
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.loaded = false
|
||||||
node.parent.expand();
|
node.parent.expand();
|
||||||
if (data.id === this.chooseId && newData.name !== data.name) {
|
if (data.id === this.chooseId && newData.name !== data.name) {
|
||||||
|
|
|
@ -166,8 +166,6 @@ export default {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
if (parentDeviceId) {
|
if (parentDeviceId) {
|
||||||
console.log(parentDeviceId)
|
|
||||||
console.log(parentDeviceId.length)
|
|
||||||
if (parentDeviceId.length >= 2) {
|
if (parentDeviceId.length >= 2) {
|
||||||
this.allVal[0].val = parentDeviceId.substring(0, 2)
|
this.allVal[0].val = parentDeviceId.substring(0, 2)
|
||||||
this.activeKey = "1"
|
this.activeKey = "1"
|
||||||
|
|
Loading…
Reference in New Issue