調整 Breadcrumb 組件位置

This commit is contained in:
koko 2025-11-13 11:54:58 +08:00
parent ac2317b71c
commit a91914fb43
6 changed files with 28 additions and 32 deletions

View File

@ -1,7 +1,7 @@
<template> <template>
<el-breadcrumb <el-breadcrumb
separator="/" separator="/"
style="margin: 15px 5px; font-size: 0.9rem; opacity: 0.7" style="margin: 15px 10px; font-size: 1.05rem; opacity: 0.9"
> >
<el-breadcrumb-item <el-breadcrumb-item
v-for="(item, idx) in breadcrumbs" v-for="(item, idx) in breadcrumbs"

View File

@ -6,33 +6,37 @@
v-if="props.isCollapse" v-if="props.isCollapse"
src="../assets/bars-3.svg" src="../assets/bars-3.svg"
alt="展開" alt="展開"
style="width: 24px; height: 24px" style="width: 20px; height: 20px"
/> />
<img <img
v-else v-else
src="../assets/x-mark.svg" src="../assets/x-mark.svg"
alt="收合" alt="收合"
style="width: 24px; height: 24px" style="width: 20px; height: 20px"
/> />
</el-button> </el-button>
<span class="title">工控運維管理平台</span> <Breadcrumb />
</div> </div>
<div class="title-area">
<span class="title">工控運維管理平台</span>
<el-dropdown size="large"> <el-dropdown size="large">
<el-button type="text" circle> <el-button type="text" circle>
<el-avatar :icon="UserFilled" /> <el-avatar :icon="UserFilled" />
</el-button> </el-button>
<template #dropdown> <template #dropdown>
<el-dropdown-menu style="font-size: large;"> <el-dropdown-menu style="font-size: large">
<el-dropdown-item>個人資料</el-dropdown-item> <el-dropdown-item>個人資料</el-dropdown-item>
<el-dropdown-item>帳號登出</el-dropdown-item> <el-dropdown-item>帳號登出</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</template> </template>
</el-dropdown> </el-dropdown>
</div>
</nav> </nav>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { computed, defineProps, defineEmits } from "vue"; import { computed, defineProps, defineEmits } from "vue";
import Breadcrumb from "../components/Common/Breadcrumb.vue";
import { UserFilled } from "@element-plus/icons-vue"; import { UserFilled } from "@element-plus/icons-vue";
const props = defineProps({ const props = defineProps({
@ -64,10 +68,10 @@ const toggleCollapse = () => {
} }
.title { .title {
margin-bottom: 0; margin-bottom: 0;
font-size: 1.5rem; font-size: 1.1rem;
font-weight: 600; font-weight: 600;
color: #333; color: #5d5d5d;
padding-left: 10px; padding-right: 10px;
} }
.collapse-btn { .collapse-btn {
vertical-align: middle; vertical-align: middle;

View File

@ -1,5 +1,4 @@
<template> <template>
<Breadcrumb />
<el-row :gutter="20" style="margin-top: 20px"> <el-row :gutter="20" style="margin-top: 20px">
<el-col :xs="24"> <el-col :xs="24">
<el-card <el-card
@ -8,9 +7,9 @@
style="margin-bottom: 0" style="margin-bottom: 0"
:body-style="{ paddingTop: '16px', paddingBottom: '0' }" :body-style="{ paddingTop: '16px', paddingBottom: '0' }"
> >
<template #header> <!-- <template #header>
<span style="">{{ title }}</span> <span style="">{{ title }}</span>
</template> </template> -->
<el-tabs <el-tabs
v-model="activeName" v-model="activeName"
type="border-card" type="border-card"
@ -27,7 +26,7 @@
<span style="margin-left: 4px">{{ tab.label }}</span> <span style="margin-left: 4px">{{ tab.label }}</span>
</template> </template>
<template v-if="tab.src && activeName === tab.name"> <template v-if="tab.src && activeName === tab.name">
<CustomIframe :src="tab.src" minHeight="calc(100vh - 300px)" /> <CustomIframe :src="tab.src" minHeight="calc(100vh - 210px)" />
</template> </template>
<template v-else-if="tab.name === 'abnormal-record'"> <template v-else-if="tab.name === 'abnormal-record'">
異常紀錄 異常紀錄
@ -42,7 +41,6 @@
<script setup> <script setup>
import { ref, computed } from "vue"; import { ref, computed } from "vue";
import { useRouter, useRoute } from "vue-router"; import { useRouter, useRoute } from "vue-router";
import Breadcrumb from "../components/Common/Breadcrumb.vue";
import CustomIframe from "../components/Common/CustomIframe.vue"; import CustomIframe from "../components/Common/CustomIframe.vue";
import { import {
Odometer, Odometer,

View File

@ -1,5 +1,4 @@
<template> <template>
<Breadcrumb />
<el-row :gutter="20" style="margin-top: 20px"> <el-row :gutter="20" style="margin-top: 20px">
<el-col :xs="24" :md="5"> <el-col :xs="24" :md="5">
<SiteMenu <SiteMenu
@ -41,7 +40,6 @@
<script setup> <script setup>
import { ref, computed } from "vue"; import { ref, computed } from "vue";
import dayjs from "dayjs"; import dayjs from "dayjs";
import Breadcrumb from "../components/Common/Breadcrumb.vue";
import SiteMenu from "../components/Report/SiteMenu.vue"; import SiteMenu from "../components/Report/SiteMenu.vue";
import ReportFilter from "../components/Report/ReportFilter.vue"; import ReportFilter from "../components/Report/ReportFilter.vue";
import ReportSummaryTable from "../components/Report/ReportSummaryTable.vue"; import ReportSummaryTable from "../components/Report/ReportSummaryTable.vue";

View File

@ -1,5 +1,4 @@
<template> <template>
<Breadcrumb />
<el-row :gutter="20" style="margin-top: 20px"> <el-row :gutter="20" style="margin-top: 20px">
<el-col :xs="24"> <el-col :xs="24">
<el-card <el-card
@ -36,7 +35,7 @@
<span style="margin-left: 4px">{{ tab.label }}</span> <span style="margin-left: 4px">{{ tab.label }}</span>
</template> </template>
<template v-if="tab.src && activeName === tab.name"> <template v-if="tab.src && activeName === tab.name">
<CustomIframe :src="tab.src" minHeight="calc(100vh - 300px)" /> <CustomIframe :src="tab.src" minHeight="calc(100vh - 280px)" />
</template> </template>
<template v-else-if="tab.name === 'abnormal-setting'"> <template v-else-if="tab.name === 'abnormal-setting'">
異常紀錄 異常紀錄
@ -50,7 +49,6 @@
<script setup> <script setup>
import { ref, computed } from "vue"; import { ref, computed } from "vue";
import Breadcrumb from "../components/Common/Breadcrumb.vue";
import CustomIframe from "../components/Common/CustomIframe.vue"; import CustomIframe from "../components/Common/CustomIframe.vue";
import { ScaleToOriginal, Warning } from "@element-plus/icons-vue"; import { ScaleToOriginal, Warning } from "@element-plus/icons-vue";

View File

@ -1,17 +1,15 @@
<template> <template>
<Breadcrumb />
<el-row :gutter="20" style="margin-top: 20px"> <el-row :gutter="20" style="margin-top: 20px">
<el-col :xs="24" > <el-col :xs="24" >
<CustomIframe <CustomIframe
src="/ord/file:^px/All.px|view:hx:HxPxView|view:?fullScreen=true" src="/ord/file:^px/All.px|view:hx:HxPxView|view:?fullScreen=true"
minHeight="calc(100vh - 156px)" minHeight="calc(100vh - 130px)"
/> />
</el-col> </el-col>
</el-row> </el-row>
</template> </template>
<script setup> <script setup>
import Breadcrumb from "../components/Common/Breadcrumb.vue";
import CustomIframe from "../components/Common/CustomIframe.vue"; import CustomIframe from "../components/Common/CustomIframe.vue";
</script> </script>
<style scoped></style> <style scoped></style>