fix(移动端): 切换至「我的」后,下侧的菜单栏没有显示出来,造成无法返回。

This commit is contained in:
dataeaseShu
2025-03-07 17:46:49 +08:00
committed by taojinlong
parent 43f8eb8123
commit 03215261fc
3 changed files with 59 additions and 5 deletions

View File

@@ -220,12 +220,12 @@ const activeTableData = computed(() => {
<style lang="less" scoped>
.de-mobile-user {
height: 100vh;
height: calc(100% - 48px);
width: 100vw;
background: #f5f6f7;
.cell-org_scroll {
height: calc(100% - 96px);
height: calc(100% - 144px);
overflow-y: auto;
}

View File

@@ -0,0 +1,54 @@
<script lang="ts" setup>
import icon_excel from '@/assets/svg/icon_excel.svg'
withDefaults(
defineProps<{
name?: string
size?: number
showDel?: boolean
}>(),
{
name: '',
size: 0
}
)
</script>
<template>
<div class="excel-info_base">
<el-icon class="excel">
<Icon name="icon_excel"><icon_excel class="svg-icon" /></Icon>
</el-icon>
<p :title="name" class="name ellipsis">{{ name || '-' }}</p>
<p class="size">{{ size || '-' }}</p>
</div>
</template>
<style lang="less" scoped>
.excel-info_base {
display: flex;
align-items: center;
width: 100%;
height: 24px;
padding: 0 0 0 0;
border-radius: 4px;
font-weight: 400;
.excel {
font-size: 24px;
margin-right: 4px;
}
.name {
color: #1f2329;
font-size: 14px;
max-width: calc(100% - 112px);
margin-right: 12px;
line-height: 22px;
}
.size {
color: #8f959e;
font-size: 14px;
line-height: 22px;
}
}
</style>

View File

@@ -74,7 +74,7 @@ import {
} from '@/api/datasource'
import type { SyncSetting, Node } from './form/option'
import EditorDatasource from './form/index.vue'
import ExcelInfo from './ExcelInfo.vue'
import ExcelInfoBase from './ExcelInfoBase.vue'
import SheetTabs from './SheetTabs.vue'
import BaseInfoItem from './BaseInfoItem.vue'
import BaseInfoContent from './BaseInfoContent.vue'
@@ -1482,7 +1482,7 @@ const getMenuList = (val: boolean) => {
<el-row :gutter="24">
<el-col v-if="nodeInfo.type === 'Excel'" :span="12">
<BaseInfoItem :label="t('data_source.document')">
<ExcelInfo :name="nodeInfo.fileName" :size="nodeInfo.size"></ExcelInfo>
<ExcelInfoBase :name="nodeInfo.fileName" :size="nodeInfo.size"></ExcelInfoBase>
</BaseInfoItem>
</el-col>
<el-col v-if="nodeInfo.type === 'ExcelRemote'" :span="12">
@@ -1492,7 +1492,7 @@ const getMenuList = (val: boolean) => {
</el-col>
<el-col v-if="nodeInfo.type === 'ExcelRemote'" :span="12">
<BaseInfoItem :label="t('data_source.document')">
<ExcelInfo :name="nodeInfo.fileName" :size="nodeInfo.size"></ExcelInfo>
<ExcelInfoBase :name="nodeInfo.fileName" :size="nodeInfo.size"></ExcelInfoBase>
</BaseInfoItem>
</el-col>
<el-col v-if="!nodeInfo.type.startsWith('Excel')" :span="24">