Commit fb94a121 authored by danfuman's avatar danfuman

修改

parent 3abe1cf1
......@@ -710,7 +710,7 @@ export default {
},
getBigBidPage(){
let params={}
bigBidPage(this.queryParams3).then(res=>{
bigBidPage(this.queryParams2).then(res=>{
console.log(res)
if(res.code == 200){
this.zbList=res.rows;
......
<template>
<div class="regionalEconomy">
<skeleton v-if="isSkeleton" style="padding: 16px"></skeleton>
<div v-if="!isSkeleton">
<div v-if="state && !isSkeleton">
<div class="content content1">
<div class="common-title">经济数据</div>
<div class="content-box">
......@@ -101,7 +101,11 @@
</div>
</div>
</div>
<div class="empty" v-if="!state && !isSkeleton">
<img class="img" src="@/assets/images/project/empty.png">
<div class="p1">抱歉,没找到相关数据</div>
<div class="p2">建议调整关键词或筛选条件,重新搜索</div>
</div>
</div>
</template>
......@@ -288,7 +292,8 @@ export default {
valData4:[],
recentlyYear:{},
nextYearMap:{},
isSkeleton:true
isSkeleton:true,
state:true,
}
},
created() {
......@@ -342,6 +347,8 @@ export default {
}
regional(params).then(res => {
this.isSkeleton = false
if(res.data[0].recentlyYear){
this.state=true;
this.recentlyYear=res.data[0].recentlyYear;
this.nextYearMap=res.data[0].nextYearMap;
this.valData=[this.getMoneyNum(this.nextYearMap.gdp),this.getMoneyNum(this.recentlyYear.gdp)]
......@@ -356,12 +363,18 @@ export default {
this.initChart3()
this.initChart4()
})
}else {
this.recentlyYear={};
this.nextYearMap={};
this.state=false;
}
})
regionalList(params).then(res => {
this.tableData=res.data;
})
},
initChart() {
this.$nextTick(() => {
let myChart = echarts.init(document.getElementById("echartsGDP"))
let option ={
tooltip: {
......@@ -423,8 +436,10 @@ export default {
window.addEventListener("resize", function () {
myChart.resize();//图表跟随页面大小变化宽度
});
})
},
initChart1(){
this.$nextTick(() => {
let myChartZS = echarts.init(document.getElementById("echartsZS"))
let option ={
tooltip: {
......@@ -485,8 +500,10 @@ export default {
window.addEventListener("resize", function () {
myChartZS.resize();//图表跟随页面大小变化宽度
});
})
},
initChart2(){
this.$nextTick(() => {
let myChartRK = echarts.init(document.getElementById("echartsRK"))
let option ={
tooltip: {
......@@ -547,8 +564,10 @@ export default {
window.addEventListener("resize", function () {
myChartRK.resize();//图表跟随页面大小变化宽度
});
})
},
initChart3(){
this.$nextTick(() => {
let myChartSR = echarts.init(document.getElementById("echartsSR"))
let option ={
tooltip: {
......@@ -609,8 +628,10 @@ export default {
window.addEventListener("resize", function () {
myChartSR.resize();//图表跟随页面大小变化宽度
});
})
},
initChart4(){
this.$nextTick(() => {
let myChartYE = echarts.init(document.getElementById("echartsYE"))
let option ={
tooltip: {
......@@ -672,6 +693,7 @@ export default {
window.addEventListener("resize", function () {
myChartYE.resize();//图表跟随页面大小变化宽度
});
})
},
formatStatus: function(row, column, cellValue) {
if(row.title === '经济'||row.title === '财政'||row.title === '债务'){
......@@ -885,5 +907,27 @@ export default {
}
}
}
.empty{
margin: 0 auto;
height: 600px;
text-align: center;
border-top: 1px solid #EFEFEF;
.img{
width: 108px;
height: 108px;
margin-bottom: 24px;
margin-top: 150px;
}
.p1{
color: #333333;
font-size: 16px;
}
.p2{
color: #999999;
font-size: 14px;
margin-top: 8px;
}
}
}
</style>
......@@ -368,10 +368,6 @@
.table-item{
/*position: relative;*/
.empty{
/*position: absolute;*/
/*top: 50%;*/
/*left: 50%;*/
/*transform: translate(-50%,-50%);*/
margin: 0 auto;
height: 600px;
text-align: center;
......
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