调整样式

This commit is contained in:
aixianling
2023-05-25 15:06:40 +08:00
parent 5f8850dc00
commit ad8f554ba2
2 changed files with 16 additions and 9 deletions

View File

@@ -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