This commit is contained in:
yanran200730
2022-07-22 14:44:55 +08:00
parent 04beb515d0
commit 0eb642a625
8 changed files with 1540 additions and 4 deletions

View File

@@ -21,8 +21,9 @@
</template>
<script>
import { VueOkrTree } from 'vue-okr-tree'
import 'vue-okr-tree/dist/vue-okr-tree.css'
// import { VueOkrTree } from 'vue-okr-tree'
import OkrTree from './vue-okr-tree/OkrTree'
// import 'vue-okr-tree/dist/vue-okr-tree.css'
export default {
name: 'AiGrid',
@@ -30,7 +31,7 @@
props: ['instance'],
components: {
VueOkrTree
VueOkrTree: OkrTree
},
data () {
@@ -116,7 +117,7 @@
const arr = res.data.filter(v => {
return v.parentGirdId === parentGirdId || !v.parentGirdId
})
this.treeData.map(p => this.addChild(p, arr.map(v => {
this.treeData.map(p => this.addChild(p, res.data.map(v => {
if (v.id === parentGirdId) {
this.defaultExpandedKeys.push(v.id)
}