|
|
|
@ -14,7 +14,7 @@
|
|
|
|
|
checkable |
|
|
|
|
class="my-dept-select-tree" |
|
|
|
|
:treeData="treeData" |
|
|
|
|
:checkStrictly="false" |
|
|
|
|
:checkStrictly="checkStrictly" |
|
|
|
|
@check="onCheck" |
|
|
|
|
@select="onSelect" |
|
|
|
|
@expand="onExpand" |
|
|
|
@ -40,7 +40,7 @@
|
|
|
|
|
import { queryDepartTreeList } from '@/api/api' |
|
|
|
|
export default { |
|
|
|
|
name: 'JSelectDepartModal', |
|
|
|
|
props:['modalWidth','multi','rootOpened','departId'], |
|
|
|
|
props:['modalWidth','multi','rootOpened','departId','checkStrictly'], |
|
|
|
|
data(){ |
|
|
|
|
return { |
|
|
|
|
visible:false, |
|
|
|
@ -145,7 +145,7 @@
|
|
|
|
|
this.checkedKeys = [...arr] |
|
|
|
|
this.checkedRows = (this.checkedKeys.length === 0) ? [] : [info.node.dataRef] |
|
|
|
|
}else{ |
|
|
|
|
this.checkedKeys = checkedKeys |
|
|
|
|
if (!this.checkStrictly){this.checkedKeys = checkedKeys}else {this.checkedKeys = checkedKeys.checked} |
|
|
|
|
this.checkedRows = this.getCheckedRows(this.checkedKeys) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|