Commit 972eaadf authored by xiongjinke's avatar xiongjinke

修改

parent e1bf9236
...@@ -31,9 +31,9 @@ ...@@ -31,9 +31,9 @@
<Hiscontract v-if="currentPath.pathName=='hiscontract'" :company-id="companyId" /> <Hiscontract v-if="currentPath.pathName=='hiscontract'" :company-id="companyId" />
<Bidrecords v-if="currentPath.pathName=='bidrecords'" :company-id="companyId" /> <Bidrecords v-if="currentPath.pathName=='bidrecords'" :company-id="companyId" />
<!-- 投诚分析 --> <!-- 投诚分析 -->
<RegionalEconomies v-if="currentPath.pathName=='regionalEconomies'" :company-id="companyId" :companyInfo="companyInfo" />
<LandAcquisition v-if="currentPath.pathName=='landAcquisition'" :company-id="companyId" /> <LandAcquisition v-if="currentPath.pathName=='landAcquisition'" :company-id="companyId" />
<RegionalEconomies v-if="currentPath.pathName=='regionalEconomies'" :company-id="companyId" /> <SameRegion v-if="currentPath.pathName=='sameRegion'" :company-id="companyId" :companyInfo="companyInfo" />
<SameRegion v-if="currentPath.pathName=='sameRegion'" :company-id="companyId" />
<!-- 风险信息 --> <!-- 风险信息 -->
<Punish v-if="currentPath.pathName=='punish'" :company-id="companyId" /> <Punish v-if="currentPath.pathName=='punish'" :company-id="companyId" />
<BusinessAnomaly v-if="currentPath.pathName=='businessAnomaly'" :company-id="companyId" /> <BusinessAnomaly v-if="currentPath.pathName=='businessAnomaly'" :company-id="companyId" />
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
@handle-current-change="handleCurrentChange" @handle-current-change="handleCurrentChange"
> >
<template slot="projectName" slot-scope="data"> <template slot="projectName" slot-scope="data">
<router-link :to="''+ data.row.id" style="color: #0081FF">{{ data.row.projectName }}</router-link> <router-link to="" tag="a" class="a-link">{{ data.row.projectName }}</router-link>
</template> </template>
</tables> </tables>
......
...@@ -30,9 +30,6 @@ import dataRegion from '@/assets/json/dataRegion' ...@@ -30,9 +30,6 @@ import dataRegion from '@/assets/json/dataRegion'
import { import {
regionalEconomy regionalEconomy
} from '@/api/detail/party-a/urbanLnvestment' } from '@/api/detail/party-a/urbanLnvestment'
import {
infoHeader
} from '@/api/detail/party-a/index'
export default { export default {
name: 'regionalEconomies', name: 'regionalEconomies',
components: { components: {
...@@ -42,14 +39,18 @@ export default { ...@@ -42,14 +39,18 @@ export default {
companyId: { companyId: {
type: Number, type: Number,
default: 0 default: 0
},
companyInfo: {
type: Object,
default: {}
} }
}, },
data() { data() {
return { return {
addressList:'', addressList:'',
params: { params: {
provinceId: 500000, provinceId: this.companyInfo.provinceId,
cityId: 500100 cityId: this.companyInfo.cityId
}, },
labels: [ labels: [
'指标', '指标',
...@@ -231,16 +232,13 @@ export default { ...@@ -231,16 +232,13 @@ export default {
//地区 //地区
regionalEconomys() { regionalEconomys() {
this.tableLoading = true this.tableLoading = true
infoHeader({companyId: this.companyId}).then(res => { if(this.companyInfo){
regionalEconomy({ regionalEconomy(this.params).then(res => {
provinceId: res.data.provinceId,
cityId: res.data.cityId
}).then(res => {
this.tableData = res.data this.tableData = res.data
this.tableLoading = false this.tableLoading = false
}) })
this.dataRegion(res.data.provinceId, res.data.cityId) this.dataRegion(this.companyInfo.provinceId, this.companyInfo.cityId)
}) }
}, },
dataRegion(p,c) { dataRegion(p,c) {
var str = []; var str = [];
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
@sort-change="sortChange" @sort-change="sortChange"
> >
<template slot="companyName" slot-scope="data"> <template slot="companyName" slot-scope="data">
<router-link :to="''+ data.row.companyId" style="color: #0081FF">{{ data.row.companyName }}</router-link> <router-link to="" tag="a" class="a-link">{{ data.row.companyName }}</router-link>
</template> </template>
</tables> </tables>
...@@ -112,9 +112,6 @@ import { ...@@ -112,9 +112,6 @@ import {
urbanInvestmentPage, urbanInvestmentPage,
uipGroupData uipGroupData
} from '@/api/detail/party-a/urbanLnvestment' } from '@/api/detail/party-a/urbanLnvestment'
import {
infoHeader
} from '@/api/detail/party-a/index'
export default { export default {
name: 'SameRegion', name: 'SameRegion',
mixins: [mixin], mixins: [mixin],
...@@ -125,6 +122,10 @@ export default { ...@@ -125,6 +122,10 @@ export default {
companyId: { companyId: {
type: Number, type: Number,
default: 0 default: 0
},
companyInfo: {
type: Object,
default: {}
} }
}, },
data() { data() {
...@@ -200,12 +201,12 @@ export default { ...@@ -200,12 +201,12 @@ export default {
} }
}, },
created() { created() {
infoHeader({companyId: this.companyId}).then(res => { if(this.companyInfo){
this.queryParams.provinceId = res.data.provinceId this.queryParams.provinceId = this.companyInfo.provinceId
this.queryParams.cityId = res.data.cityId this.queryParams.cityId = this.companyInfo.cityId
this.handleQuery() this.handleQuery()
this.getScreen() this.getScreen()
}) }
}, },
computed: { computed: {
......
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