yudao-init/src/views/copilot/container.vue

81 lines
1.8 KiB
Vue
Raw Normal View History

2024-05-08 16:38:05 +08:00
<!--
2024-04-18 17:01:10 +08:00
filename: container.vue
author: liubin
date: 2024-04-16 14:51:25
2024-05-08 16:38:05 +08:00
description:
2024-04-18 17:01:10 +08:00
-->
<template>
2024-05-08 16:38:05 +08:00
<div class="copilot-layout" ref="copilot-layout">
<CopilotHeaderVue :active="page" :period="period" @update:active="page = $event" @update:period="period = $event" />
2024-04-18 17:01:10 +08:00
<YieldCopilot v-if="page == '产量'" :period="period" />
2024-04-29 17:00:53 +08:00
<EnergyCopilot v-if="page == '综合'" :period="period" />
2024-04-18 17:01:10 +08:00
<EfficiencyCopilot v-if="page == '效率'" :period="period" />
<div class="copilot-footer">© 中建材智能自动化研究院有限公司</div>
</div>
</template>
<script>
import CopilotHeaderVue from "./components/CopilotHeader.vue";
import YieldCopilot from "./yield/index.vue";
import EnergyCopilot from "./energy/index.vue";
import EfficiencyCopilot from "./efficiency/index.vue";
export default {
name: "CopilotContainer",
components: {
CopilotHeaderVue,
YieldCopilot,
EnergyCopilot,
EfficiencyCopilot,
},
data() {
return {
page: "产量",
period: "日",
};
},
2024-04-25 14:55:23 +08:00
// mounted() {
// document.body.style.minHeight = "1024px";
// document.body.style.minWidth = "1550px";
// },
// destroyed() {
// document.body.style.minHeight = "1024px";
// document.body.style.minWidth = "1550px";
// },
2024-04-18 17:01:10 +08:00
};
</script>
<style>
2024-05-08 16:38:05 +08:00
2024-04-18 17:01:10 +08:00
.copilot-layout {
padding: 16px;
background: url(../../assets/images/copilot-bg.png) 0 0 / 100% 100% no-repeat;
position: absolute;
height: calc(100% + 38px);
left: -16px;
top: -8px;
width: calc(100% + 30px);
z-index: 1001;
color: #fff;
display: flex;
flex-direction: column;
gap: 8px;
}
.copilot-footer {
/** position: absolute;
bottom: 10px; **/
height: 10px;
width: 100%;
color: rgb(80, 80, 80);
user-select: none;
font-size: 14px;
letter-spacing: 1px;
display: grid;
place-content: center;
}
</style>