Commit 870a0e85 authored by co_dengxiongwen's avatar co_dengxiongwen

tj

parent 0ce61037
<template> <template>
<div id="myPies" style="height: 100%"></div> <div id="myPies" style="height: 100%"></div>
</template> </template>
<script> <script>
...@@ -32,8 +32,8 @@ export default { ...@@ -32,8 +32,8 @@ export default {
legend: { legend: {
show: true, show: true,
orient: 'horizontal', orient: 'horizontal',
// left: "center", // left: "center",
bottom: '40', bottom: '40',
itemHeight: 13, itemHeight: 13,
itemWidth: 13, itemWidth: 13,
...@@ -73,7 +73,11 @@ export default { ...@@ -73,7 +73,11 @@ export default {
} }
} }
}, },
color: ['rgba(72,154,254,1)', 'rgba(247,243,204,1)', 'rgba(236,73,104,1)'], color: [
'rgba(72,154,254,1)',
'rgba(247,243,204,1)',
'rgba(236,73,104,1)'
],
series: [ series: [
{ {
name: '访问来源', name: '访问来源',
...@@ -88,7 +92,7 @@ export default { ...@@ -88,7 +92,7 @@ export default {
show: true, show: true,
position: 'center', position: 'center',
formatter: function () { formatter: function () {
return `调查总数\r\n \r\n20000` return `\r\n20000`
}, },
textStyle: { textStyle: {
fontSize: 30, fontSize: 30,
...@@ -106,7 +110,7 @@ export default { ...@@ -106,7 +110,7 @@ export default {
labelLine: { labelLine: {
show: false show: false
}, },
data: [...data ] data: [...data]
} }
] ]
} }
......
...@@ -16,16 +16,16 @@ ...@@ -16,16 +16,16 @@
<span v-if="index == 0" v-html="item.cardText"></span> <span v-if="index == 0" v-html="item.cardText"></span>
<span v-else-if="index == 1" v-html="item.cardText"></span> <span v-else-if="index == 1" v-html="item.cardText"></span>
<span v-else>{{ item.cardText }}</span> <span v-else>{{ item.cardText }}</span>
<p >{{ item.state }}</p> <p>{{ item.state }}</p>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="home-page-content"> <div class="home-page-content">
<el-row :gutter="12" style='height:100%;'> <el-row :gutter="12" style="height: 100%">
<el-col :span="16" style='height:100%;'> <el-col :span="16" style="height: 100%">
<card-list :cardListTitle="cardListLeftTitle"> <card-list :cardListTitle="cardListLeftTitle">
<div slot="right"> <div slot="right">
<span <span
:class="activeIndex === index ? 'active-hight-linght' : ''" :class="activeIndex === index ? 'active-hight-linght' : ''"
...@@ -38,11 +38,7 @@ ...@@ -38,11 +38,7 @@
</div> </div>
<div slot="content" class="content-wrap"> <div slot="content" class="content-wrap">
<el-row <el-row :gutter="12" type="flex" justify="center">
:gutter="12"
type="flex"
justify="center"
>
<el-col :span="6"> <el-col :span="6">
<div class="energy-save-mode-wrap" style=""> <div class="energy-save-mode-wrap" style="">
<div class="font-style font_14"> <div class="font-style font_14">
...@@ -95,15 +91,15 @@ ...@@ -95,15 +91,15 @@
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<div style="height:calc(100% - 130px);"> <div style="height: calc(100% - 130px)">
<energy-total-charts></energy-total-charts> <energy-total-charts></energy-total-charts>
</div> </div>
</div> </div>
</card-list> </card-list>
</el-col> </el-col>
<el-col :span="8" style="padding-left: 0;height:100%;"> <el-col :span="8" style="padding-left: 0; height: 100%">
<card-list :cardListTitle="cardListRightTitle"> <card-list :cardListTitle="cardListRightTitle">
<div slot="content" style='height:100%;'> <div slot="content" style="height: 100%">
<my-pies></my-pies> <my-pies></my-pies>
</div> </div>
</card-list> </card-list>
...@@ -143,23 +139,21 @@ export default { ...@@ -143,23 +139,21 @@ export default {
}, },
{ {
iconUrl: require('./image/sun_icon.png'), iconUrl: require('./image/sun_icon.png'),
cardDesc: '供暖模式', cardDesc: '办公区域供暖模式',
cardText: '办公区域供暖模式', cardText: '',
state: '开启' state: '开启'
}, },
{ {
iconUrl: require('./image/fan_icon.png'), iconUrl: require('./image/fan_icon.png'),
cardDesc: '机械通风模式', cardDesc: '办公区域机械通风模式',
cardText: '办公区域机械通风模式', cardText: '',
state: '已开启' state: '开启'
}, },
{ {
iconUrl: require('./image/nan_fan_icon.png'), iconUrl: require('./image/nan_fan_icon.png'),
cardDesc: '自然通风模式', cardDesc: '办公区域自然通风模式',
cardText: '办公区域自然通风模式', cardText: '',
state: '已开启' state: '开启'
} }
], ],
dateList: [ dateList: [
...@@ -196,7 +190,7 @@ export default { ...@@ -196,7 +190,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import '~@/assets/style/public.scss'; @import '~@/assets/style/public.scss';
.home-page { .home-page {
height:calc(100vh - 155px); height: calc(100vh - 155px);
width: 100%; width: 100%;
&-top { &-top {
margin: 20px; margin: 20px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment