Commit 4aa39cfd authored by huangjie's avatar huangjie
parents a1168428 cee03391
...@@ -127,6 +127,13 @@ export function regionalCompare(param) { ...@@ -127,6 +127,13 @@ export function regionalCompare(param) {
data: param data: param
}) })
} }
export function multipleCompare(param) {
return request({
url: '/economic/regional/multipleCompare',
method: 'POST',
data: param
})
}
......
...@@ -67,6 +67,7 @@ service.interceptors.request.use(config => { ...@@ -67,6 +67,7 @@ service.interceptors.request.use(config => {
// 响应拦截器 // 响应拦截器
service.interceptors.response.use(res => { service.interceptors.response.use(res => {
const apiList = ['/login'] //需要提示错误的接口
// 未设置状态码则默认成功状态 // 未设置状态码则默认成功状态
const code = res.data.code || 200; const code = res.data.code || 200;
// 获取错误信息 // 获取错误信息
...@@ -88,16 +89,16 @@ service.interceptors.response.use(res => { ...@@ -88,16 +89,16 @@ service.interceptors.response.use(res => {
}); });
} }
return Promise.reject('无效的会话,或者会话已过期,请重新登录。') return Promise.reject('无效的会话,或者会话已过期,请重新登录。')
}/* else if (code === 500) { } else if (code === 500 && apiList.includes(res.config.url)) {
Message({ message: msg, type: 'error' }) Message({ message: msg, type: 'error' })
return Promise.reject(new Error(msg)) return Promise.reject(new Error(msg))
} else if (code === 601) { } else if (code === 601 && apiList.includes(res.config.url)) {
Message({ message: msg, type: 'warning' }) Message({ message: msg, type: 'warning' })
return Promise.reject('error') return Promise.reject('error')
} else if (code !== 200) { } else if (code !== 200 && apiList.includes(res.config.url)) {
Notification.error({ title: msg }) Notification.error({ title: msg })
return Promise.reject('error') return Promise.reject('error')
}*/ else { } else {
return res.data return res.data
} }
},error => { },error => {
......
...@@ -245,7 +245,7 @@ export default { ...@@ -245,7 +245,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.isCustomer = true this.isCustomer = true
this.isCompany = false this.isCompany = false
this.currentPath.pathName = 'business' this.currentPath.pathName = this.$route.query.path || 'business'
this.companyInfo = { this.companyInfo = {
companyName: this.customerInfo.companyName companyName: this.customerInfo.companyName
} }
......
...@@ -132,13 +132,7 @@ ...@@ -132,13 +132,7 @@
<p>共有{{total}}</p> <p>共有{{total}}</p>
<p> <p>
<img src="@/assets/images/EXCEL.png" alt=""> <img src="@/assets/images/EXCEL.png" alt="">
<el-popover <span class="excel" @click="$message({message: '功能正在开发中',type: 'warning'})">导出EXCEL</span>
placement="top-end"
width="200"
trigger="hover"
content="功能正在开发中">
<span class="excel" slot="reference">导出EXCEL</span>
</el-popover>
</p> </p>
</div> </div>
......
...@@ -449,13 +449,7 @@ ...@@ -449,13 +449,7 @@
<p>共有{{total}}条</p> <p>共有{{total}}条</p>
<p> <p>
<img src="@/assets/images/EXCEL.png" alt=""> <img src="@/assets/images/EXCEL.png" alt="">
<el-popover <span class="excel" @click="$message({message: '功能正在开发中',type: 'warning'})">导出EXCEL</span>
placement="top-end"
width="200"
trigger="hover"
content="功能正在开发中">
<span class="excel" slot="reference">导出EXCEL</span>
</el-popover>
</p> </p>
</div> </div>
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
<script> <script>
import dataRegion from '@/assets/json/dataRegion' import dataRegion from '@/assets/json/dataRegion'
import { regionalCompare,getYears } from '@/api/macro/macro' import { regionalCompare,getYears,multipleCompare } from '@/api/macro/macro'
export default { export default {
name: 'comparison', name: 'comparison',
props:['dataQuery','provinceId'], props:['dataQuery','provinceId'],
...@@ -287,7 +287,8 @@ export default { ...@@ -287,7 +287,8 @@ export default {
value3Flag:false, value3Flag:false,
value4Flag:false, value4Flag:false,
value5Flag:false, value5Flag:false,
regionData:[] regionData:[],
compareList:[{},{},{},{},{}]
} }
}, },
watch: { watch: {
...@@ -302,19 +303,32 @@ export default { ...@@ -302,19 +303,32 @@ export default {
this.yearOptions=res.data.reverse(); this.yearOptions=res.data.reverse();
this.queryParams.year = this.yearOptions[0].year; this.queryParams.year = this.yearOptions[0].year;
if(this.dataQuery.pId){ if(this.dataQuery.pId){
const params = { year: this.queryParams.year,type:3} let item={}
if(this.provinceId.length >= 0){ if(this.provinceId.length >= 0){
params.provinceId=this.provinceId[0] item.provinceId=this.provinceId[0]
} }
if(this.provinceId.length >= 1){ if(this.provinceId.length >= 1){
params.cityId=this.provinceId[1] item.cityId=this.provinceId[1]
} }
if(this.provinceId.length >= 2){ if(this.provinceId.length >= 2){
params.areaId=this.provinceId[2] item.areaId=this.provinceId[2]
} }
if(this.dataQuery.id){
item.id=this.dataQuery.id
}
this.compareList.splice(0,1,item);
this.value1Flag=true this.value1Flag=true
this.addressValue1=this.dataQuery.province.join('-') this.addressValue1=this.dataQuery.province.join('-')
this.getData(params,1)
let list=[];
for (let i=0; i<this.compareList.length; i++){
if(this.compareList[i].provinceId){
list.push(this.compareList[i])
}
}
let params={}
params.compareList=list;
this.getData(params)
} }
}) })
}, },
...@@ -329,13 +343,19 @@ export default { ...@@ -329,13 +343,19 @@ export default {
} }
}, },
methods: { methods: {
getData(params,index){ getData(params){
if(this.dataQuery.id){ params.year=this.queryParams.year;
params.id=this.dataQuery.id multipleCompare(params).then(res => {
}
regionalCompare(params).then(res => {
if(res.data){ if(res.data){
this.tableData.splice(index-1,1,res.data) let arr=[]
for (let i=0; i<this.compareList.length; i++){
if(this.compareList[i].provinceId){
arr.push(i)
}
}
for (let j=0; j<res.data.length; j++){
this.tableData.splice(arr[j],1,res.data[j])
}
this.$forceUpdate(); this.$forceUpdate();
} }
}) })
...@@ -413,21 +433,34 @@ export default { ...@@ -413,21 +433,34 @@ export default {
this.value5Flag=true this.value5Flag=true
break; break;
} }
const params = { year: this.queryParams.year,type:3 } const params = {}
let code=[]; let code=[];
for (var i in this.regionData) { for (var i in this.regionData) {
code=this.regionData[i].path code=this.regionData[i].path
} }
let item={}
if(code.length >= 1){ if(code.length >= 1){
params.provinceId=code[0] item.provinceId=code[0]
} }
if(code.length >= 2){ if(code.length >= 2){
params.cityId=code[1] item.cityId=code[1]
} }
if(code.length >= 3){ if(code.length >= 3){
params.areaId=code[2] item.areaId=code[2]
} }
this.getData(params,index) if(this.dataQuery.id){
item.id=this.dataQuery.id
}
this.compareList.splice(index-1,1,item);
let list=[];
for (let i=0; i<this.compareList.length; i++){
if(this.compareList[i].provinceId){
list.push(this.compareList[i])
}
}
params.compareList=list;
this.getData(params)
} }
} }
}, },
...@@ -538,12 +571,20 @@ export default { ...@@ -538,12 +571,20 @@ export default {
break; break;
} }
this.tableData.splice(index-1,1,{}) this.tableData.splice(index-1,1,{})
this.compareList.splice(index-1,1,{})
this.$forceUpdate(); this.$forceUpdate();
}, },
handleSelect(val){ handleSelect(val){
const params = { year: this.queryParams.year,type:3 } console.log(val)
let list=[];
for (let i=0; i<this.compareList.length; i++){
if(this.compareList[i].provinceId){
list.push(this.compareList[i])
}
}
const params = {}
params.compareList=list;
this.getData(params)
}, },
formatStatus: function(row, column, cellValue) { formatStatus: function(row, column, cellValue) {
if(row.title === '经济'||row.title === '财政'||row.title === '债务'){ if(row.title === '经济'||row.title === '财政'||row.title === '债务'){
......
...@@ -129,6 +129,7 @@ export default { ...@@ -129,6 +129,7 @@ export default {
endTime=this.queryParams.year+'-12-31'; endTime=this.queryParams.year+'-12-31';
} }
bidGroupCountByProjectType({startDate:startTime,endDate:endTime}).then(res => { bidGroupCountByProjectType({startDate:startTime,endDate:endTime}).then(res => {
if(res.code === 200){
let list=[] let list=[]
for(let i=0; i<res.data.length; i++){ for(let i=0; i<res.data.length; i++){
let item={}; let item={};
...@@ -137,7 +138,10 @@ export default { ...@@ -137,7 +138,10 @@ export default {
list.push(item); list.push(item);
} }
this.data=list; this.data=list;
if(list.length > 0){
this.initChart() this.initChart()
}
}
}) })
}, },
initChart() { initChart() {
......
...@@ -165,10 +165,13 @@ export default { ...@@ -165,10 +165,13 @@ export default {
data.provinceId=item.provinceId; data.provinceId=item.provinceId;
data.cityId=item.cityId; data.cityId=item.cityId;
data.areaId=item.areaId; data.areaId=item.areaId;
if(item.area){ if(item.cityId){
data.province=item.area; data.province=[item.province,item.city];
if(item.areaId){
data.province=[item.province,item.city,item.area];
}
}else { }else {
data.province=item.province; data.province=[item.province];
} }
this.$parent.handleClick('first',data); this.$parent.handleClick('first',data);
} }
......
...@@ -676,6 +676,7 @@ export default { ...@@ -676,6 +676,7 @@ export default {
}, },
childMethod() { childMethod() {
let data=this.dataQuery let data=this.dataQuery
console.log(this.dataQuery,"||||||||")
data.pId=this.dataQuery.provinceId data.pId=this.dataQuery.provinceId
this.$parent.handleClick('four',data); this.$parent.handleClick('four',data);
} }
......
...@@ -66,14 +66,15 @@ export default { ...@@ -66,14 +66,15 @@ export default {
// params.provinceId=this.dataQuery.provinceId // params.provinceId=this.dataQuery.provinceId
// } // }
if(this.dataQuery.provinceId){ if(this.dataQuery.provinceId){
this.province=this.dataQuery.province; this.province=this.dataQuery.province[this.dataQuery.province.length-1];
this.provinceId.push(this.dataQuery.provinceId) this.provinceId.push(this.dataQuery.provinceId)
}else { }else {
location({}).then(res => { location({}).then(res => {
this.province=res.data.province; this.province=res.data.province;
if(!this.dataQuery.provinceId){ if(!this.dataQuery.provinceId){
this.dataQuery.provinceId=res.data.provinceId this.dataQuery.provinceId=res.data.provinceId
this.dataQuery.province=this.province; let arr=[this.province]
this.dataQuery.province=arr;
this.provinceId.push(res.data.provinceId) this.provinceId.push(res.data.provinceId)
}else { }else {
this.provinceId.push(this.dataQuery.provinceId) this.provinceId.push(this.dataQuery.provinceId)
...@@ -112,7 +113,8 @@ export default { ...@@ -112,7 +113,8 @@ export default {
this.provinceId.push(item.areaId) this.provinceId.push(item.areaId)
} }
} }
this.province=item.province; this.province=item.province[item.province.length-1];
this.dataQuery=item;
} }
// sessionStorage.setItem('currentTab', this.activeName) // sessionStorage.setItem('currentTab', this.activeName)
}, },
......
...@@ -311,6 +311,13 @@ export default { ...@@ -311,6 +311,13 @@ export default {
padding: 0; padding: 0;
} }
.qyzx{ .qyzx{
.query-ability{
span{
font-weight: 400;
color: #3D3D3D;
font-size: 12px;
}
}
.content{ .content{
background: #ffffff; background: #ffffff;
padding: 16px; padding: 16px;
......
...@@ -325,6 +325,9 @@ ...@@ -325,6 +325,9 @@
.qgjjdq{ .qgjjdq{
.query-box{ .query-box{
margin: -8px 0 8px 0; margin: -8px 0 8px 0;
.a-link:hover{
text-decoration:none;
}
.query-params{ .query-params{
.el-form{ .el-form{
margin-left: 24px; margin-left: 24px;
......
...@@ -174,8 +174,8 @@ ...@@ -174,8 +174,8 @@
<el-table-column prop="biddingCount" label="招标数量" :formatter="formatStatus" sortable="custom" width="110" align="right"/> <el-table-column prop="biddingCount" label="招标数量" :formatter="formatStatus" sortable="custom" width="110" align="right"/>
<el-table-column prop="landInfoCount" label="城投拿地" :formatter="formatStatus" sortable="custom" width="100" align="right"/> <el-table-column prop="landInfoCount" label="城投拿地" :formatter="formatStatus" sortable="custom" width="100" align="right"/>
<el-table-column prop="supplierCount" label="供应商" :formatter="formatStatus" sortable="custom" width="100" align="right"/> <el-table-column prop="supplierCount" label="供应商" :formatter="formatStatus" sortable="custom" width="100" align="right"/>
<!--<el-table-column prop="bratingSubjectLevel" label="主体评级" :formatter="formatStatus" sortable="custom" width="110" />-->
<el-table-column prop="bondBalance" label="债券余额(亿元)" :formatter="formatStatus" sortable="custom" width="140" align="right"/> <el-table-column prop="bondBalance" label="债券余额(亿元)" :formatter="formatStatus" sortable="custom" width="140" align="right"/>
<el-table-column prop="bratingSubjectLevel" label="主体评级" :formatter="formatStatus" width="110" />
<el-table-column prop="uipExecutiveLevel" label="行政级别" :formatter="formatStatus" width="110" /> <el-table-column prop="uipExecutiveLevel" label="行政级别" :formatter="formatStatus" width="110" />
<el-table-column prop="shareholderBg" label="股东背景" :formatter="formatStatus" width="110" /> <el-table-column prop="shareholderBg" label="股东背景" :formatter="formatStatus" width="110" />
<el-table-column prop="equityRelationship" label="股权关系" :formatter="formatStatus" width="110" /> <el-table-column prop="equityRelationship" label="股权关系" :formatter="formatStatus" width="110" />
......
...@@ -124,13 +124,7 @@ ...@@ -124,13 +124,7 @@
<p>共有{{total}}</p> <p>共有{{total}}</p>
<p> <p>
<img src="@/assets/images/EXCEL.png" alt=""> <img src="@/assets/images/EXCEL.png" alt="">
<el-popover <span class="excel" @click="$message({message: '功能正在开发中',type: 'warning'})">导出EXCEL</span>
placement="top-end"
width="200"
trigger="hover"
content="功能正在开发中">
<span class="excel" slot="reference">导出EXCEL</span>
</el-popover>
</p> </p>
</div> </div>
......
...@@ -177,13 +177,7 @@ ...@@ -177,13 +177,7 @@
<p>共有{{total}}</p> <p>共有{{total}}</p>
<p> <p>
<img src="@/assets/images/EXCEL.png" alt=""> <img src="@/assets/images/EXCEL.png" alt="">
<el-popover <span class="excel" @click="$message({message: '功能正在开发中',type: 'warning'})">导出EXCEL</span>
placement="top-end"
width="200"
trigger="hover"
content="功能正在开发中">
<span class="excel" slot="reference">导出EXCEL</span>
</el-popover>
</p> </p>
</div> </div>
......
...@@ -180,13 +180,7 @@ ...@@ -180,13 +180,7 @@
<p>共有{{total}}</p> <p>共有{{total}}</p>
<p> <p>
<img src="@/assets/images/EXCEL.png" alt=""> <img src="@/assets/images/EXCEL.png" alt="">
<el-popover <span class="excel" @click="$message({message: '功能正在开发中',type: 'warning'})">导出EXCEL</span>
placement="top-end"
width="200"
trigger="hover"
content="功能正在开发中">
<span class="excel" slot="reference">导出EXCEL</span>
</el-popover>
</p> </p>
</div> </div>
......
...@@ -219,13 +219,7 @@ ...@@ -219,13 +219,7 @@
<p>共有{{total}}</p> <p>共有{{total}}</p>
<p> <p>
<img src="@/assets/images/EXCEL.png" alt=""> <img src="@/assets/images/EXCEL.png" alt="">
<el-popover <span class="excel" @click="$message({message: '功能正在开发中',type: 'warning'})">导出EXCEL</span>
placement="top-end"
width="200"
trigger="hover"
content="功能正在开发中">
<span class="excel" slot="reference">导出EXCEL</span>
</el-popover>
</p> </p>
</div> </div>
......
...@@ -180,13 +180,7 @@ ...@@ -180,13 +180,7 @@
<p>共有{{total}}</p> <p>共有{{total}}</p>
<p> <p>
<img src="@/assets/images/EXCEL.png" alt=""> <img src="@/assets/images/EXCEL.png" alt="">
<el-popover <span class="excel" @click="$message({message: '功能正在开发中',type: 'warning'})">导出EXCEL</span>
placement="top-end"
width="200"
trigger="hover"
content="功能正在开发中">
<span class="excel" slot="reference">导出EXCEL</span>
</el-popover>
</p> </p>
</div> </div>
......
...@@ -336,13 +336,7 @@ ...@@ -336,13 +336,7 @@
<p>共有{{total}}条</p> <p>共有{{total}}条</p>
<p> <p>
<img src="@/assets/images/EXCEL.png" alt=""> <img src="@/assets/images/EXCEL.png" alt="">
<el-popover <span class="excel" @click="$message({message: '功能正在开发中',type: 'warning'})">导出EXCEL</span>
placement="top-end"
width="200"
trigger="hover"
content="功能正在开发中">
<span class="excel" slot="reference">导出EXCEL</span>
</el-popover>
</p> </p>
</div> </div>
......
...@@ -94,13 +94,9 @@ ...@@ -94,13 +94,9 @@
<p>共有{{total}}条</p> <p>共有{{total}}条</p>
<p> <p>
<img src="@/assets/images/EXCEL.png" alt=""> <img src="@/assets/images/EXCEL.png" alt="">
<el-popover
placement="top-end" <span class="excel" @click="$message({message: '功能正在开发中',type: 'warning'})">导出EXCEL</span>
width="200"
trigger="hover"
content="功能正在开发中">
<span class="excel" slot="reference">导出EXCEL</span>
</el-popover>
</p> </p>
</div> </div>
<div class="table-item-jf1" v-if="tableData.length==0"> <div class="table-item-jf1" v-if="tableData.length==0">
......
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