|
|
@@ -104,7 +104,7 @@ export default {
|
|
|
sNodeList: [],
|
|
|
//默认显示及展开的node
|
|
|
nodes: [],
|
|
|
- treeProps:{
|
|
|
+ treeProps:{
|
|
|
disabled: this.getNodedisabled,
|
|
|
children: "children",
|
|
|
label: "name",
|
|
|
@@ -154,7 +154,7 @@ export default {
|
|
|
handler(n) {
|
|
|
if (n) {
|
|
|
this.treeProps.label=n.label;
|
|
|
- this.treeProps.children=n.children;
|
|
|
+ this.treeProps.children=n.children;
|
|
|
}
|
|
|
},
|
|
|
}
|
|
|
@@ -187,11 +187,13 @@ export default {
|
|
|
},
|
|
|
getNodedisabled(node) {
|
|
|
//console.log("getNodedisabled",node,this.enabledCheckOrgTypes)
|
|
|
- if (this.enabledCheckOrgTypes) {
|
|
|
+ return false;
|
|
|
+ if (this.enabledCheckOrgTypes) {
|
|
|
if (Array.isArray(node)) {
|
|
|
+ debugger;
|
|
|
if (this.params.enabledOrgTypeList.findIndex((x) => x === node.type) == -1) {
|
|
|
return true;
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
else {
|
|
|
if (this.enabledCheckOrgTypes !== node.type) {
|