167 lines
3.3 KiB
Vue
167 lines
3.3 KiB
Vue
<template>
|
|
<div id="data-view">
|
|
<dv-full-screen-container>
|
|
|
|
|
|
<top-header :Name="'电饭煲生产看板'" style="height:10%;" />
|
|
<div style="display:flex;height: 40%;justify-content: space-around;margin-bottom: 30px;">
|
|
<div class="main-container" style="width: 32%;">
|
|
<NewContain :dataType="dataType" style="width:100%;height:100%"/>
|
|
</div>
|
|
<div class="main-container" style="width: 32%;">
|
|
<NewContain2 :dataType="dataType" style="width:100%;height:100%"/>
|
|
</div>
|
|
<div class="main-container" style="width: 32%;">
|
|
<NewContain3 :dataType="dataType" style="width:100%;height:100%"/>
|
|
</div>
|
|
</div>
|
|
<div style="display:flex;height: 48%;justify-content: space-around;">
|
|
<div class="main-container" style="width: 48%;">
|
|
<NewContain4 :dataType="dataType" style="width:100%;height:100%"/>
|
|
</div>
|
|
<div class="main-container" style="width: 48%;">
|
|
<NewContain5 :dataType="dataType" style="width:100%;height:100%"/>
|
|
</div>
|
|
</div>
|
|
|
|
</dv-full-screen-container>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import topHeader from './topHeader'
|
|
|
|
|
|
import NewContain from './newContain'
|
|
import NewContain2 from './newContain2'
|
|
import NewContain3 from './newContain3'
|
|
import NewContain4 from './newContain4'
|
|
import NewContain5 from './newContain5'
|
|
|
|
|
|
export default {
|
|
name: 'DataView',
|
|
|
|
components: {
|
|
topHeader,
|
|
NewContain,
|
|
NewContain2,
|
|
NewContain3,
|
|
NewContain4,
|
|
NewContain5
|
|
},
|
|
created() {
|
|
// 获取 URL 查询参数并设置 dataType
|
|
const queryParams = new URLSearchParams(window.location.search);
|
|
const dataTypeParam = queryParams.get('q');
|
|
console.log(dataTypeParam)
|
|
if (dataTypeParam === '1') {
|
|
this.dataType = '整机';
|
|
}else if(dataTypeParam === '3'){
|
|
this.dataType = '3';
|
|
}else{
|
|
this.dataType = ''; // 如果不是 '1',则设置为空
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
dataType:'',
|
|
dataType2:'整机',
|
|
switchType: 2
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="less">
|
|
#data-view {
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: #030409;
|
|
color: #fff;
|
|
|
|
#dv-full-screen-container {
|
|
background-image: url('./img/bg.png');
|
|
background-size: 100% 100%;
|
|
box-shadow: 0 0 3px blue;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.main-header {
|
|
height: 80px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-end;
|
|
|
|
.mh-left {
|
|
font-size: 20px;
|
|
color: rgb(1, 134, 187);
|
|
|
|
a:visited {
|
|
color: rgb(1, 134, 187);
|
|
}
|
|
}
|
|
|
|
.mh-middle {
|
|
font-size: 30px;
|
|
}
|
|
|
|
.mh-left,
|
|
.mh-right {
|
|
width: 450px;
|
|
}
|
|
}
|
|
|
|
.main-container {
|
|
|
|
|
|
.border-box-content {
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
|
|
.right-main-container {
|
|
width: 75%;
|
|
padding-left: 5px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.rmc-top-container {
|
|
height: 100%;
|
|
width: 100%;
|
|
display: flex;
|
|
}
|
|
|
|
.rmctc-left-container {
|
|
width: 100%;
|
|
padding: 10px;
|
|
box-sizing: border-box;
|
|
|
|
.border-box-content {
|
|
flex-direction: row;
|
|
}
|
|
}
|
|
|
|
.rmctc-middle-container {
|
|
width: 100%;
|
|
}
|
|
|
|
.rmctc-right-container {
|
|
width: 50%;
|
|
}
|
|
|
|
.rmc-bottom-container {
|
|
height: 35%;
|
|
|
|
}
|
|
|
|
.rmctc-chart-1 {
|
|
height: 100%;
|
|
}
|
|
}
|
|
</style>
|