forked from github/dataease
Merge pull request #8847 from dataease/pr@dev-v2_bug_fix
fix(移动端): 顶部面包屑-层级交互展示不对
This commit is contained in:
commit
9498b49d94
@ -798,7 +798,8 @@ const relativeToCurrentList = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const dynamicTime = computed(() => {
|
const dynamicTime = computed(() => {
|
||||||
return curComponent.value.timeType === 'dynamic'
|
const { displayType, timeType } = curComponent.value
|
||||||
|
return timeType === 'dynamic' && [1, 7].includes(+displayType)
|
||||||
})
|
})
|
||||||
|
|
||||||
const relativeToCurrentTypeList = computed(() => {
|
const relativeToCurrentTypeList = computed(() => {
|
||||||
|
@ -20,7 +20,7 @@ interface OrgTreeNode {
|
|||||||
}
|
}
|
||||||
const userStore = useUserStoreWithOut()
|
const userStore = useUserStoreWithOut()
|
||||||
const { push } = useRouter()
|
const { push } = useRouter()
|
||||||
const navBarTitle = ref('请选择')
|
const navBarTitle = ref('组织')
|
||||||
const name = ref('')
|
const name = ref('')
|
||||||
const showNavBar = ref(true)
|
const showNavBar = ref(true)
|
||||||
const logout = async () => {
|
const logout = async () => {
|
||||||
@ -110,6 +110,13 @@ const onClickLeft = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const clearOrg = () => {
|
||||||
|
if (!directName.value.length) return
|
||||||
|
directName.value = []
|
||||||
|
activeDirectName.value = ''
|
||||||
|
directId.value = []
|
||||||
|
}
|
||||||
|
|
||||||
const orgCellClick = (type, val) => {
|
const orgCellClick = (type, val) => {
|
||||||
if (type !== 'right') {
|
if (type !== 'right') {
|
||||||
switchHandler(val.id)
|
switchHandler(val.id)
|
||||||
@ -177,6 +184,12 @@ const activeTableData = computed(() => {
|
|||||||
@click-left="onClickLeft"
|
@click-left="onClickLeft"
|
||||||
/>
|
/>
|
||||||
<div class="grey">
|
<div class="grey">
|
||||||
|
<div @click="clearOrg" class="flex-align-center">
|
||||||
|
<span class="ellipsis" :class="!!directName.length && 'active'">组织</span>
|
||||||
|
<el-icon v-if="!!directName.length">
|
||||||
|
<Icon name="icon_right_outlined"></Icon>
|
||||||
|
</el-icon>
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
@click="handleDir(index)"
|
@click="handleDir(index)"
|
||||||
class="flex-align-center"
|
class="flex-align-center"
|
||||||
@ -188,7 +201,6 @@ const activeTableData = computed(() => {
|
|||||||
<Icon name="icon_right_outlined"></Icon>
|
<Icon name="icon_right_outlined"></Icon>
|
||||||
</el-icon>
|
</el-icon>
|
||||||
</div>
|
</div>
|
||||||
<span v-if="!directName.length">请选择组织</span>
|
|
||||||
</div>
|
</div>
|
||||||
<OrgCell
|
<OrgCell
|
||||||
@click="type => orgCellClick(type, ele)"
|
@click="type => orgCellClick(type, ele)"
|
||||||
|
Loading…
Reference in New Issue
Block a user