临时提交
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user