|
|
@@ -234,20 +234,26 @@
|
|
|
await validationPersonal();
|
|
|
await this.query();
|
|
|
}
|
|
|
- if (this.data.length) {
|
|
|
- this.defaultExpandedKeys = [this.data[0].id];
|
|
|
- }
|
|
|
+ // if (this.data.length) {
|
|
|
+ // this.defaultExpandedKeys = [this.data[0].id];
|
|
|
+ // }
|
|
|
this.$nextTick(() => {
|
|
|
+ alert(row)
|
|
|
if (this.$route.params.row) {
|
|
|
this.$refs.tree.setCurrentKey(this.$route.params.row.id);
|
|
|
- this.defaultExpandedKeys = [this.$route.params.row.id];
|
|
|
+ this.defaultExpandedKeys = [this.$route.params.row.id];
|
|
|
this.onNodeClick(this.$route.params.row);
|
|
|
} else if (row && row.id) {
|
|
|
this.$refs.tree.setCurrentKey(row.id);
|
|
|
+ this.defaultExpandedKeys = [row.id];
|
|
|
this.onNodeClick(row);
|
|
|
+ } else if (row == 'isDefaultExpandedKeys'&&this.current?.id) {
|
|
|
+ this.$refs.tree.setCurrentKey(this.current.id);
|
|
|
+ this.defaultExpandedKeys = [this.current.id];
|
|
|
+ this.onNodeClick(this.current);
|
|
|
} else {
|
|
|
this.$refs.tree.setCurrentKey(this.data[0].id);
|
|
|
-
|
|
|
+ this.defaultExpandedKeys = [this.data[0].id];
|
|
|
this.onNodeClick(this.data[0]);
|
|
|
}
|
|
|
});
|
|
|
@@ -362,7 +368,7 @@
|
|
|
authority: 1
|
|
|
}).then((msg) => {
|
|
|
this.powerVisible = false;
|
|
|
- this.query();
|
|
|
+ this.query(this.current);
|
|
|
});
|
|
|
},
|
|
|
goTo(name, row) {
|
|
|
@@ -468,7 +474,7 @@
|
|
|
.element-tree-node-line-ver {
|
|
|
border: none;
|
|
|
}
|
|
|
- .el-tree-node > .el-tree-node__children{
|
|
|
+ .el-tree-node > .el-tree-node__children {
|
|
|
overflow: inherit;
|
|
|
}
|
|
|
</style>
|