|
|
|
@ -5,7 +5,7 @@ |
|
|
|
|
<!--header--> |
|
|
|
|
<div class="header"> |
|
|
|
|
<div class="bg_header"> |
|
|
|
|
<div class="header_nav fl t_title">数据前瞻大屏展示</div> |
|
|
|
|
<div class="header_nav fl t_title">Dataforward 数据看板</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
@ -225,14 +225,14 @@ |
|
|
|
|
</div> |
|
|
|
|
<div class="main_title"> |
|
|
|
|
<img src="@/assets/img/screen/t_7.png" alt=""> |
|
|
|
|
商品零售价格指数 |
|
|
|
|
{{ goodsSell.length ? goodsSell[0].operation_time.substr(0, 4) : 2021 }}年商品零售价格指数 |
|
|
|
|
</div> |
|
|
|
|
<div class="main_table t_btn8" style="height: 260px;overflow: auto"> |
|
|
|
|
<table> |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<th>概况名称</th> |
|
|
|
|
<th>详情</th> |
|
|
|
|
<th>指数</th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
@ -522,7 +522,8 @@ export default { |
|
|
|
|
// 国际旅游外汇收入构成 |
|
|
|
|
this.$get(`${this.api.previewData}?tableName=hg_zg_jr_guojilvyouwaihuishourugoucheng&tableId=52`).then(res => { |
|
|
|
|
const { comment, data } = res |
|
|
|
|
const colors = ['#f845f1', '#44aff0', '#ad46f3', '#5045f6', '#4777f5', '#45dbf7', '#f6d54a'] |
|
|
|
|
if (!data.length) return false |
|
|
|
|
const colors = ['rgba(227, 46, 138, .5)', 'rgba(123, 41, 225, .8)', 'rgba(12, 53, 215, .8)', 'rgba(69, 223, 124, .8)', 'rgba(155, 1, 55, .8)', 'rgba(200, 142, 22, .8)'] |
|
|
|
|
const series = [] |
|
|
|
|
data.map((e, i) => { |
|
|
|
|
series.push({ |
|
|
|
@ -538,7 +539,7 @@ export default { |
|
|
|
|
echarts.init(document.querySelector(`#chart2`)).setOption({ |
|
|
|
|
tooltip: { |
|
|
|
|
trigger: 'item', |
|
|
|
|
formatter: "{a} <br/>{b} : {c}亿" |
|
|
|
|
formatter: `${data[0].statistical_annual}年{a} <br/>{b} : {c}亿` |
|
|
|
|
}, |
|
|
|
|
legend: { |
|
|
|
|
x: 'center', |
|
|
|
@ -565,10 +566,11 @@ export default { |
|
|
|
|
// roseType: 'radius', |
|
|
|
|
//是否启用防止标签重叠策略,默认开启,圆环图这个例子中需要强制所有标签放在中心位置,可以将该值设为 false。 |
|
|
|
|
// avoidLabelOverlap: false, |
|
|
|
|
color: ['#065aab', '#066eab', '#0682ab', '#0696ab', '#06a0ab','#06b4ab','#06c8ab','#06dcab','#06f0ab'], |
|
|
|
|
label: { |
|
|
|
|
normal: { |
|
|
|
|
show: true, |
|
|
|
|
formatter: '{b}{c}万件' |
|
|
|
|
formatter: '{b}{c}亿美元' |
|
|
|
|
}, |
|
|
|
|
emphasis: { |
|
|
|
|
show: true |
|
|
|
@ -740,6 +742,7 @@ export default { |
|
|
|
|
const goodsSell = [] |
|
|
|
|
data.map(e => { |
|
|
|
|
goodsSell.push({ |
|
|
|
|
operation_time: e.operation_time, |
|
|
|
|
hct: e.hct, |
|
|
|
|
rcpi: e.rcpi |
|
|
|
|
}) |
|
|
|
@ -975,10 +978,10 @@ export default { |
|
|
|
|
// 全社会用电分类情况 |
|
|
|
|
this.$get(`${this.api.previewData}?tableName=hg_zg_jr_quanshehuiyongdianfenleiqingkuangbiao&tableId=50`).then(res => { |
|
|
|
|
const { comment, data } = res |
|
|
|
|
const item = data[4] |
|
|
|
|
const item = data[3] |
|
|
|
|
echarts.init(document.querySelector(`#chart7`)).setOption({ |
|
|
|
|
title: [{ |
|
|
|
|
text: '全社会用电分类情况', |
|
|
|
|
text: `2021年全社会用电分类情况`, |
|
|
|
|
top: '11%', |
|
|
|
|
left: 'center', |
|
|
|
|
textStyle: { |
|
|
|
@ -1008,7 +1011,7 @@ export default { |
|
|
|
|
type: 'pie', |
|
|
|
|
center: ['50%', '55%'], |
|
|
|
|
radius: ['40%', '60%'], |
|
|
|
|
color: ['#06dcab', '#065aab', '#06f0ab'], |
|
|
|
|
color: ['rgba(123, 54, 98, .8)', 'rgba(171, 21, 241, .8)', 'rgba(12, 164, 167, .8)'], |
|
|
|
|
label: { |
|
|
|
|
show: false |
|
|
|
|
}, |
|
|
|
@ -1035,10 +1038,10 @@ export default { |
|
|
|
|
// 全社会客货运输量 |
|
|
|
|
this.$get(`${this.api.previewData}?tableName=hg_zg_jr_quanshehuikehuoyunshuliang&tableId=51`).then(res => { |
|
|
|
|
const { comment, data } = res |
|
|
|
|
const item = data[4] |
|
|
|
|
if (!data.length) return false |
|
|
|
|
echarts.init(document.querySelector(`#chart8`)).setOption({ |
|
|
|
|
title: [{ |
|
|
|
|
text: '全社会客货运输量', |
|
|
|
|
text: `${data[0].operation_time.substr(0, 4)}年全社会客货运输量`, |
|
|
|
|
top: '11%', |
|
|
|
|
left: 'center', |
|
|
|
|
textStyle: { |
|
|
|
|