|
|
|
@ -14,7 +14,7 @@
|
|
|
|
|
checkable |
|
|
|
|
class="my-dept-select-tree" |
|
|
|
|
:treeData="treeData" |
|
|
|
|
:checkStrictly="true" |
|
|
|
|
:checkStrictly="false" |
|
|
|
|
@check="onCheck" |
|
|
|
|
@select="onSelect" |
|
|
|
|
@expand="onExpand" |
|
|
|
@ -78,6 +78,13 @@
|
|
|
|
|
this.checkedRows=[] |
|
|
|
|
this.checkedKeys=[] |
|
|
|
|
}, |
|
|
|
|
// 右键操作方法 |
|
|
|
|
rightHandle(node) { |
|
|
|
|
this.dropTrigger = 'contextmenu' |
|
|
|
|
console.log(node.node.eventKey) |
|
|
|
|
this.rightClickSelectedKey = node.node.eventKey |
|
|
|
|
this.rightClickSelectedOrgCode = node.node.dataRef.orgCode |
|
|
|
|
}, |
|
|
|
|
loadDepart(){ |
|
|
|
|
queryDepartTreeList().then(res=>{ |
|
|
|
|
if(res.success){ |
|
|
|
@ -138,8 +145,8 @@
|
|
|
|
|
this.checkedKeys = [...arr] |
|
|
|
|
this.checkedRows = (this.checkedKeys.length === 0) ? [] : [info.node.dataRef] |
|
|
|
|
}else{ |
|
|
|
|
this.checkedKeys = checkedKeys.checked |
|
|
|
|
this.checkedRows = this.getCheckedRows(this.checkedKeys) |
|
|
|
|
this.checkedKeys = checkedKeys |
|
|
|
|
this.checkedRows = this.getCheckedRows(this.checkedKeys) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onSelect(selectedKeys,info) { |
|
|
|
|