2023-04-16 22:33:44 +08:00
|
|
|
<template>
|
2023-04-17 18:02:03 +08:00
|
|
|
<VScaleScreen fullScreen width="1920" height="1080">
|
2023-04-16 22:33:44 +08:00
|
|
|
<div class="center">
|
|
|
|
<div ref="head" class="headers">
|
|
|
|
种植业生产监管数字化系统
|
|
|
|
<span @click="exitMaximize" class="exit">
|
|
|
|
<img
|
|
|
|
src="@/assets/svg/quxiaoquanping.svg"
|
|
|
|
style="width: 14px; height: 14px; cursor: pointer"
|
|
|
|
/>
|
|
|
|
退出全屏
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<router-view />
|
|
|
|
</div>
|
|
|
|
</VScaleScreen>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import useSettingsStore from '@/store/modules/settings';
|
|
|
|
import { handleThemeStyle } from '@/utils/theme';
|
|
|
|
|
|
|
|
import VScaleScreen from 'v-scale-screen';
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
nextTick(() => {
|
|
|
|
// 初始化主题样式
|
|
|
|
handleThemeStyle(useSettingsStore().theme);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.center {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
.headers {
|
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
z-index: 1;
|
|
|
|
height: 80px;
|
|
|
|
line-height: 80px;
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
box-sizing: border-box;
|
|
|
|
background-image: url('@/assets/images/header.png');
|
|
|
|
background-size: 100% 100%;
|
|
|
|
justify-content: center;
|
|
|
|
opacity: 1;
|
|
|
|
text-shadow: 0px 0px 6px 0px rgba(41, 255, 255, 1);
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 21px;
|
|
|
|
letter-spacing: 4px;
|
|
|
|
color: rgba(255, 255, 255, 1);
|
|
|
|
transform: translate(0, -100%);
|
|
|
|
.exit {
|
|
|
|
position: absolute;
|
|
|
|
top: 20px;
|
|
|
|
right: 20px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 14px;
|
|
|
|
color: rgba(41, 255, 219, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|