|
|
@@ -9,11 +9,11 @@
|
|
|
:checkable="checkable"
|
|
|
@check="onCheck"
|
|
|
v-model="checkList"
|
|
|
-
|
|
|
+ :checkStrictly="true"
|
|
|
:expanded-keys="expandedKeys"
|
|
|
@expand="onExpand"
|
|
|
ref="tree"
|
|
|
- :default-checked-keys="checkList"
|
|
|
+
|
|
|
>
|
|
|
<template slot="custom" slot-scope="item">
|
|
|
<span>{{ item }}</span>
|
|
|
@@ -81,13 +81,12 @@ export default {
|
|
|
.then((res) => {
|
|
|
if (res.data.code === 200) {
|
|
|
// this.getMechanismTree();
|
|
|
-
|
|
|
- setTimeout(()=>{
|
|
|
-
|
|
|
+
|
|
|
+ // res.data.data.deptIds
|
|
|
this.expandedKeys = res.data.data.deptIds;
|
|
|
this.checkList = res.data.data.deptIds;
|
|
|
|
|
|
- },500)
|
|
|
+ // },500)
|
|
|
}
|
|
|
});
|
|
|
});
|