102 lines
1.7 KiB
Vue
102 lines
1.7 KiB
Vue
|
|
<template>
|
||
|
|
<div class="screen-container">
|
||
|
|
<header class="screen-header">
|
||
|
|
<h1>数据大屏</h1>
|
||
|
|
</header>
|
||
|
|
|
||
|
|
<div class="screen-content">
|
||
|
|
<div class="screen-left">
|
||
|
|
<div class="chart-box">
|
||
|
|
<h3>左侧图表1</h3>
|
||
|
|
</div>
|
||
|
|
<div class="chart-box">
|
||
|
|
<h3>左侧图表2</h3>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="screen-center">
|
||
|
|
<div class="chart-box center-main">
|
||
|
|
<h3>中间主图表</h3>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="screen-right">
|
||
|
|
<div class="chart-box">
|
||
|
|
<h3>右侧图表1</h3>
|
||
|
|
</div>
|
||
|
|
<div class="chart-box">
|
||
|
|
<h3>右侧图表2</h3>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
<script>
|
||
|
|
export default {
|
||
|
|
name: 'Home',
|
||
|
|
setup() {
|
||
|
|
return {}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style lang="scss" scoped>
|
||
|
|
.screen-container {
|
||
|
|
width: 100%;
|
||
|
|
height: 100vh;
|
||
|
|
background: #0a1e3e;
|
||
|
|
color: #fff;
|
||
|
|
padding: 20px;
|
||
|
|
box-sizing: border-box;
|
||
|
|
}
|
||
|
|
|
||
|
|
.screen-header {
|
||
|
|
text-align: center;
|
||
|
|
margin-bottom: 20px;
|
||
|
|
|
||
|
|
h1 {
|
||
|
|
font-size: 36px;
|
||
|
|
font-weight: bold;
|
||
|
|
background: linear-gradient(to right, #4facfe, #00f2fe);
|
||
|
|
-webkit-background-clip: text;
|
||
|
|
-webkit-text-fill-color: transparent;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.screen-content {
|
||
|
|
display: flex;
|
||
|
|
gap: 20px;
|
||
|
|
height: calc(100% - 80px);
|
||
|
|
}
|
||
|
|
|
||
|
|
.screen-left,
|
||
|
|
.screen-right {
|
||
|
|
flex: 1;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.screen-center {
|
||
|
|
flex: 2;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chart-box {
|
||
|
|
background: rgba(255, 255, 255, 0.05);
|
||
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
||
|
|
border-radius: 8px;
|
||
|
|
padding: 20px;
|
||
|
|
flex: 1;
|
||
|
|
|
||
|
|
h3 {
|
||
|
|
margin: 0 0 15px 0;
|
||
|
|
font-size: 18px;
|
||
|
|
color: #4facfe;
|
||
|
|
}
|
||
|
|
|
||
|
|
&.center-main {
|
||
|
|
height: 100%;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</style>
|