大屏修改
This commit is contained in:
parent
b39cbf142c
commit
f2e3ee0486
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div id="bar-chart">
|
<div id="bar-chart">
|
||||||
<div class="rose-chart-title" :style="'font-size:'+$fontSize(0.25)+'px'">ECharts 全局字体自适应</div>
|
<div class="rose-chart-title" >ECharts 全局字体自适应</div>
|
||||||
<!-- <dv-charts :option="option" /> -->
|
<!-- <dv-charts :option="option" /> -->
|
||||||
<div id="bar-chart-container" ></div>
|
<div id="bar-chart-container" ></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -59,10 +59,10 @@
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
.rose-chart-title {
|
.rose-chart-title {
|
||||||
height: 50px;
|
height: 0.5rem;
|
||||||
padding-top: 10px;
|
padding-top: 0.1rem;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-indent: 20px;
|
text-indent: 0.2rem;
|
||||||
// font-size: 20px;
|
// font-size: 20px;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -70,7 +70,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#bar-chart-container {
|
#bar-chart-container {
|
||||||
height: calc(~"100% - 50px");
|
height: calc(~"100% - 0.5rem");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
<div class="main-content" v-if="loadingDone">
|
<div class="main-content" v-if="loadingDone">
|
||||||
<!-- <digital-flop :TodayData="showData.todayData" :Type="type"/> -->
|
<!-- <digital-flop :TodayData="showData.todayData" :Type="type"/> -->
|
||||||
<div class="block-left-right-content" >
|
<div class="block-left-right-content">
|
||||||
<scroll-board :ScrollList= "showData.scrollList" />
|
<scroll-board :ScrollList= "showData.scrollList" />
|
||||||
<div class="block-top-bottom-content">
|
<div class="block-top-bottom-content">
|
||||||
<div class="block-top-content" style="height:100%;display: flex;flex-wrap: wrap;">
|
<div class="block-top-content" style="height:100%;display: flex;flex-wrap: wrap;">
|
||||||
|
|
@ -21,11 +21,14 @@
|
||||||
<bar-chart :key="index" v-if="item.setting.reportType == 'bar'" style="height: 45%;" pieId="roseChart3" :chartData="item" :style="'height:'+item.setting.height+';width:'+item.setting.width+';'"/>
|
<bar-chart :key="index" v-if="item.setting.reportType == 'bar'" style="height: 45%;" pieId="roseChart3" :chartData="item" :style="'height:'+item.setting.height+';width:'+item.setting.width+';'"/>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<scroll-board-bottom :ScrollList= "showData.scrollList" />
|
||||||
</div>
|
</div>
|
||||||
<dv-loading v-else>Loading...</dv-loading>
|
<dv-loading v-else>Loading...</dv-loading>
|
||||||
<div style="height: 5%;width: 100%;"></div>
|
<!-- <div style="height: 5%;width: 100%;"></div> -->
|
||||||
|
|
||||||
<!-- </dv-full-screen-container> -->
|
<!-- </dv-full-screen-container> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -39,6 +42,7 @@ import rankingBoard from './rankingBoard'
|
||||||
import roseChart from './roseChart'
|
import roseChart from './roseChart'
|
||||||
import waterLevelChart from './waterLevelChart'
|
import waterLevelChart from './waterLevelChart'
|
||||||
import scrollBoard from './scrollBoard'
|
import scrollBoard from './scrollBoard'
|
||||||
|
import scrollBoardBottom from './scrollBoardBottom'
|
||||||
import cards from './cards'
|
import cards from './cards'
|
||||||
import rightTotal from './rightTotal.vue'
|
import rightTotal from './rightTotal.vue'
|
||||||
import barChart from './barChart.vue'
|
import barChart from './barChart.vue'
|
||||||
|
|
@ -51,6 +55,7 @@ export default {
|
||||||
roseChart,
|
roseChart,
|
||||||
waterLevelChart,
|
waterLevelChart,
|
||||||
scrollBoard,
|
scrollBoard,
|
||||||
|
scrollBoardBottom,
|
||||||
cards,
|
cards,
|
||||||
rightTotal,
|
rightTotal,
|
||||||
barChart
|
barChart
|
||||||
|
|
@ -65,7 +70,7 @@ export default {
|
||||||
totalData: [],
|
totalData: [],
|
||||||
todayData: [],
|
todayData: [],
|
||||||
showData: {
|
showData: {
|
||||||
name: '永盛陶瓷只能数据看榜',
|
name: '永盛陶瓷智能数据看榜',
|
||||||
times: [],
|
times: [],
|
||||||
leftData: [],
|
leftData: [],
|
||||||
reportedList: [],
|
reportedList: [],
|
||||||
|
|
@ -85,7 +90,7 @@ export default {
|
||||||
createdData () {
|
createdData () {
|
||||||
let that = this
|
let that = this
|
||||||
|
|
||||||
this.$api.post2('/api/web/GetScreenReport').then(res => {
|
this.$api.post2('/api/web/GetScreenReport?category=A1').then(res => {
|
||||||
if (res.code === '200') {
|
if (res.code === '200') {
|
||||||
let data = res.data;
|
let data = res.data;
|
||||||
this.chartData1 = data.reportSettings[0];
|
this.chartData1 = data.reportSettings[0];
|
||||||
|
|
@ -194,9 +199,10 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
.block-left-right-content {
|
.block-left-right-content {
|
||||||
flex: 1;
|
// flex: 1;
|
||||||
|
height: 70%;
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-top: 20px;
|
margin-top: 0.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.block-top-bottom-content {
|
.block-top-bottom-content {
|
||||||
|
|
@ -204,7 +210,7 @@ export default {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding-left: 20px;
|
margin-left: 0.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.block-top-content {
|
.block-top-content {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div id="rose-chart">
|
<div id="rose-chart">
|
||||||
<div class="rose-chart-title" :style="'font-size:'+$fontSize(0.20)+'px'">---{{chartData?chartData.title:''}}---</div>
|
<div class="rose-chart-title">---{{chartData?chartData.title:''}}---</div>
|
||||||
<!-- <dv-charts :option="option" /> -->
|
<!-- <dv-charts :option="option" /> -->
|
||||||
<div :id="pieId" class="pie-chart-container"></div>
|
<div :id="pieId" class="pie-chart-container"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -35,8 +35,11 @@ export default {
|
||||||
},
|
},
|
||||||
legend: {
|
legend: {
|
||||||
orient: 'horizontal',
|
orient: 'horizontal',
|
||||||
left: '20',
|
left: this.$fontSize(0.2),
|
||||||
top:'10',
|
top:this.$fontSize(0.1),
|
||||||
|
itemWidth: this.$fontSize(0.25),
|
||||||
|
itemHeight: this.$fontSize(0.14),
|
||||||
|
// height: this.$fontSize(0.2),
|
||||||
textStyle:{
|
textStyle:{
|
||||||
color:'fff',
|
color:'fff',
|
||||||
fontSize:this.$fontSize(0.12)
|
fontSize:this.$fontSize(0.12)
|
||||||
|
|
@ -92,16 +95,16 @@ export default {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
.rose-chart-title {
|
.rose-chart-title {
|
||||||
height: 50px;
|
height: 0.5rem;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-indent: 20px;
|
text-indent: 0.2rem;
|
||||||
font-size: 20px;
|
font-size: 0.2rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pie-chart-container {
|
.pie-chart-container {
|
||||||
height: calc(~"100% - 50px");
|
height: calc(~"100% - 0.2rem");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ export default {
|
||||||
index: true,
|
index: true,
|
||||||
columnWidth: [100, 150, 200],
|
columnWidth: [100, 150, 200],
|
||||||
align: ['center', 'center', 'center', 'center'],
|
align: ['center', 'center', 'center', 'center'],
|
||||||
rowNum: 20,
|
rowNum: 12,
|
||||||
headerBGC: '#1981f6',
|
headerBGC: '#1981f6',
|
||||||
headerHeight: 50,
|
headerHeight: 50,
|
||||||
oddRowBGC: 'rgba(0, 44, 81, 0.8)',
|
oddRowBGC: 'rgba(0, 44, 81, 0.8)',
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,54 @@
|
||||||
|
<template>
|
||||||
|
<div id="scroll-board-bottom">
|
||||||
|
<dv-scroll-board :config="config" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'ScrollBoard',
|
||||||
|
props: ['ScrollList'],
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
config: {
|
||||||
|
header: ['业务订单号', '产品名', '总布产数','合格数','合格率','不良数','不良率','废品数','废品率','最迟货期'],
|
||||||
|
data: [
|
||||||
|
],
|
||||||
|
// index: true,
|
||||||
|
columnWidth: [1000],
|
||||||
|
align: ['center', 'center', 'center', 'center', 'center', 'center', 'center', 'center', 'center', 'center'],
|
||||||
|
rowNum: 5,
|
||||||
|
headerBGC: '#1981f6',
|
||||||
|
headerHeight: 50,
|
||||||
|
oddRowBGC: 'rgba(0, 44, 81, 0.8)',
|
||||||
|
evenRowBGC: 'rgba(10, 29, 50, 0.8)'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created () {
|
||||||
|
this.config.headerHeight = this.$fontSize(0.50);
|
||||||
|
this.config.columnWidth = [this.$fontSize(1.5),this.$fontSize(6),this.$fontSize(1.5),this.$fontSize(1),this.$fontSize(1),this.$fontSize(1),this.$fontSize(1),this.$fontSize(1),this.$fontSize(1),this.$fontSize(3)];
|
||||||
|
this.config.data = JSON.parse(JSON.stringify(this.ScrollList))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less">
|
||||||
|
#scroll-board-bottom {
|
||||||
|
width:100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding:0.2rem;
|
||||||
|
height: 40%;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
<style>
|
||||||
|
.dv-scroll-board .header{
|
||||||
|
font-size: 0.2rem !important;
|
||||||
|
font-weight: bold !important;
|
||||||
|
}
|
||||||
|
.dv-scroll-board .rows .row-item{
|
||||||
|
font-size: 0.2rem !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<div id="top-header">
|
<div id="top-header">
|
||||||
<dv-decoration-8 class="header-left-decoration" />
|
<dv-decoration-8 class="header-left-decoration" />
|
||||||
<dv-decoration-5 class="header-center-decoration" />
|
<dv-decoration-5 class="header-center-decoration" />
|
||||||
<dv-decoration-8 class="header-right-decoration" :reverse="true" />
|
<dv-decoration-8 class="header-right-decoration" :reverse="false" />
|
||||||
<div class="center-title" :style="'font-size:'+$fontSize(0.3)+'px'">{{Name}}</div>
|
<div class="center-title" :style="'font-size:'+$fontSize(0.3)+'px'">{{Name}}</div>
|
||||||
<!-- ({{ Times[0]+ ' 到 ' +Times[1] }}) -->
|
<!-- ({{ Times[0]+ ' 到 ' +Times[1] }}) -->
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -19,20 +19,19 @@ export default {
|
||||||
#top-header {
|
#top-header {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100px;
|
height: 1rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
|
||||||
.header-center-decoration {
|
.header-center-decoration {
|
||||||
width: 40%;
|
width: 40%;
|
||||||
height: 60px;
|
height: 0.6rem;
|
||||||
margin-top: 50px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-left-decoration, .header-right-decoration {
|
.header-left-decoration, .header-right-decoration {
|
||||||
width: 25%;
|
width: 25%;
|
||||||
height: 60px;
|
height: 0.6rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.center-title {
|
.center-title {
|
||||||
|
|
@ -40,7 +39,7 @@ export default {
|
||||||
// font-size: 30px;
|
// font-size: 30px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
top: 15px;
|
top: 0.15rem;
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue