调整样式
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="selectDept">
|
||||
<AiTopFixed>
|
||||
<AiTreePath :current="cursor" :paths="depts.map" :prop="{parent:'parentid'}" @click="changeList"/>
|
||||
<AiTreePath :current="cursor.id" :node="cursor" :paths="depts.map" :prop="{parent:'parentid'}" @click="changeList"/>
|
||||
</AiTopFixed>
|
||||
<div class="user-list">
|
||||
<template v-if="list.length>0">
|
||||
@@ -44,7 +44,7 @@ export default {
|
||||
cirIcon: require('./img/xz.png'),
|
||||
checkIcon: require('./img/xzh.png'),
|
||||
selected: [],
|
||||
cursor: null
|
||||
cursor: {}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -96,8 +96,8 @@ export default {
|
||||
},
|
||||
changeList(item) {
|
||||
if (item == "all") {
|
||||
this.cursor = {}
|
||||
this.list = this.depts.tree
|
||||
this.cursor = null
|
||||
} else {
|
||||
this.cursor = item
|
||||
this.list = item.children
|
||||
|
||||
Reference in New Issue
Block a user