Commit fb94a121 authored by danfuman's avatar danfuman

修改

parent 3abe1cf1
...@@ -710,7 +710,7 @@ export default { ...@@ -710,7 +710,7 @@ export default {
}, },
getBigBidPage(){ getBigBidPage(){
let params={} let params={}
bigBidPage(this.queryParams3).then(res=>{ bigBidPage(this.queryParams2).then(res=>{
console.log(res) console.log(res)
if(res.code == 200){ if(res.code == 200){
this.zbList=res.rows; this.zbList=res.rows;
......
<template> <template>
<div class="regionalEconomy"> <div class="regionalEconomy">
<skeleton v-if="isSkeleton" style="padding: 16px"></skeleton> <skeleton v-if="isSkeleton" style="padding: 16px"></skeleton>
<div v-if="!isSkeleton"> <div v-if="state && !isSkeleton">
<div class="content content1"> <div class="content content1">
<div class="common-title">经济数据</div> <div class="common-title">经济数据</div>
<div class="content-box"> <div class="content-box">
...@@ -101,7 +101,11 @@ ...@@ -101,7 +101,11 @@
</div> </div>
</div> </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> </div>
</template> </template>
...@@ -288,7 +292,8 @@ export default { ...@@ -288,7 +292,8 @@ export default {
valData4:[], valData4:[],
recentlyYear:{}, recentlyYear:{},
nextYearMap:{}, nextYearMap:{},
isSkeleton:true isSkeleton:true,
state:true,
} }
}, },
created() { created() {
...@@ -342,6 +347,8 @@ export default { ...@@ -342,6 +347,8 @@ export default {
} }
regional(params).then(res => { regional(params).then(res => {
this.isSkeleton = false this.isSkeleton = false
if(res.data[0].recentlyYear){
this.state=true;
this.recentlyYear=res.data[0].recentlyYear; this.recentlyYear=res.data[0].recentlyYear;
this.nextYearMap=res.data[0].nextYearMap; this.nextYearMap=res.data[0].nextYearMap;
this.valData=[this.getMoneyNum(this.nextYearMap.gdp),this.getMoneyNum(this.recentlyYear.gdp)] this.valData=[this.getMoneyNum(this.nextYearMap.gdp),this.getMoneyNum(this.recentlyYear.gdp)]
...@@ -356,12 +363,18 @@ export default { ...@@ -356,12 +363,18 @@ export default {
this.initChart3() this.initChart3()
this.initChart4() this.initChart4()
}) })
}else {
this.recentlyYear={};
this.nextYearMap={};
this.state=false;
}
}) })
regionalList(params).then(res => { regionalList(params).then(res => {
this.tableData=res.data; this.tableData=res.data;
}) })
}, },
initChart() { initChart() {
this.$nextTick(() => {
let myChart = echarts.init(document.getElementById("echartsGDP")) let myChart = echarts.init(document.getElementById("echartsGDP"))
let option ={ let option ={
tooltip: { tooltip: {
...@@ -423,8 +436,10 @@ export default { ...@@ -423,8 +436,10 @@ export default {
window.addEventListener("resize", function () { window.addEventListener("resize", function () {
myChart.resize();//图表跟随页面大小变化宽度 myChart.resize();//图表跟随页面大小变化宽度
}); });
})
}, },
initChart1(){ initChart1(){
this.$nextTick(() => {
let myChartZS = echarts.init(document.getElementById("echartsZS")) let myChartZS = echarts.init(document.getElementById("echartsZS"))
let option ={ let option ={
tooltip: { tooltip: {
...@@ -485,8 +500,10 @@ export default { ...@@ -485,8 +500,10 @@ export default {
window.addEventListener("resize", function () { window.addEventListener("resize", function () {
myChartZS.resize();//图表跟随页面大小变化宽度 myChartZS.resize();//图表跟随页面大小变化宽度
}); });
})
}, },
initChart2(){ initChart2(){
this.$nextTick(() => {
let myChartRK = echarts.init(document.getElementById("echartsRK")) let myChartRK = echarts.init(document.getElementById("echartsRK"))
let option ={ let option ={
tooltip: { tooltip: {
...@@ -547,8 +564,10 @@ export default { ...@@ -547,8 +564,10 @@ export default {
window.addEventListener("resize", function () { window.addEventListener("resize", function () {
myChartRK.resize();//图表跟随页面大小变化宽度 myChartRK.resize();//图表跟随页面大小变化宽度
}); });
})
}, },
initChart3(){ initChart3(){
this.$nextTick(() => {
let myChartSR = echarts.init(document.getElementById("echartsSR")) let myChartSR = echarts.init(document.getElementById("echartsSR"))
let option ={ let option ={
tooltip: { tooltip: {
...@@ -609,8 +628,10 @@ export default { ...@@ -609,8 +628,10 @@ export default {
window.addEventListener("resize", function () { window.addEventListener("resize", function () {
myChartSR.resize();//图表跟随页面大小变化宽度 myChartSR.resize();//图表跟随页面大小变化宽度
}); });
})
}, },
initChart4(){ initChart4(){
this.$nextTick(() => {
let myChartYE = echarts.init(document.getElementById("echartsYE")) let myChartYE = echarts.init(document.getElementById("echartsYE"))
let option ={ let option ={
tooltip: { tooltip: {
...@@ -672,6 +693,7 @@ export default { ...@@ -672,6 +693,7 @@ export default {
window.addEventListener("resize", function () { window.addEventListener("resize", function () {
myChartYE.resize();//图表跟随页面大小变化宽度 myChartYE.resize();//图表跟随页面大小变化宽度
}); });
})
}, },
formatStatus: function(row, column, cellValue) { formatStatus: function(row, column, cellValue) {
if(row.title === '经济'||row.title === '财政'||row.title === '债务'){ if(row.title === '经济'||row.title === '财政'||row.title === '债务'){
...@@ -885,5 +907,27 @@ export default { ...@@ -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> </style>
...@@ -368,10 +368,6 @@ ...@@ -368,10 +368,6 @@
.table-item{ .table-item{
/*position: relative;*/ /*position: relative;*/
.empty{ .empty{
/*position: absolute;*/
/*top: 50%;*/
/*left: 50%;*/
/*transform: translate(-50%,-50%);*/
margin: 0 auto; margin: 0 auto;
height: 600px; height: 600px;
text-align: center; 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