Commit 386a09a9 authored by caixingbing's avatar caixingbing

*

parent 26282b9d
...@@ -89,28 +89,45 @@ export const constantRoutes = [ ...@@ -89,28 +89,45 @@ export const constantRoutes = [
] ]
}, },
{ {
path: '/party', path: '/enterprise',
component: Layout, component: Layout,
hidden: true, hidden: true,
name: 'Party', name: 'Enterprise',
redirect: 'noredirect', redirect: 'noredirect',
children: [ children: [
{ {
path: 'party-a', path: '/enterprise/:id',
component: () => import('@/views/detail/party-a/index'), component: () => import('@/views/detail/party-a/index'),
name: 'PartyA', name: 'PartyA',
meta: { title: '甲方详情' }, meta: { title: '甲方详情' },
}, }
]
},
{
path: '/company',
component: Layout,
hidden: true,
name: 'Company',
redirect: 'noredirect',
children: [
{ {
path: 'party-b', path: '/company/:id',
component: () => import('@/views/detail/party-b/index'), component: () => import('@/views/detail/party-b/index'),
name: 'PartyB', name: 'PartyB',
meta: { title: '已方详情' } meta: { title: '已方详情' }
}, }
]
},
{
path: '/structure',
component: Layout,
hidden: true,
redirect: 'noredirect',
children: [
{ {
path: 'structure', path: 'graph',
component: () => import('@/views/detail/structure/index'), component: () => import('@/views/detail/structure/index'),
name: 'Structure', name: 'Graph',
meta: { title: '企业链图' } meta: { title: '企业链图' }
} }
] ]
......
...@@ -142,7 +142,7 @@ export default { ...@@ -142,7 +142,7 @@ export default {
data() { data() {
return { return {
companyInfo: {}, companyInfo: {},
companyId: '565476563130566e69', //企业Id(测试默认3068) companyId: '', //企业Id(测试默认3068)
customerId: '', //企业Id(测试默认'a00d582a6041f32c16aac804e4924736') customerId: '', //企业Id(测试默认'a00d582a6041f32c16aac804e4924736')
currentPath: { currentPath: {
pathName: 'overview' //默认展示页 pathName: 'overview' //默认展示页
...@@ -151,11 +151,9 @@ export default { ...@@ -151,11 +151,9 @@ export default {
} }
}, },
created() { created() {
if (this.$route.query.companyId) { // 获取companyId if (this.$route.params.id) { // 获取companyId
let companyId = this.$route.query.companyId let companyId = this.$route.params.id
this.getCompanyId(companyId) this.getCompanyId(companyId)
}else{ //测试
this.getCompanyId(this.companyId)
} }
if (this.$route.query.path) { // 获取跳转对应板块 if (this.$route.query.path) { // 获取跳转对应板块
this.currentPath.pathName = this.$route.query.path this.currentPath.pathName = this.$route.query.path
...@@ -165,12 +163,6 @@ export default { ...@@ -165,12 +163,6 @@ export default {
} }
}, },
mounted() { mounted() {
const _this = this, erd = elementResizeDetectorMaker(), partBox = document.getElementById("partBox")
erd.listenTo(partBox, element => {
_this.$nextTick(() => {
_this.partBoxHeight = partBox.offsetHeight
})
})
}, },
methods: { methods: {
showPartPage(e){ showPartPage(e){
...@@ -181,6 +173,9 @@ export default { ...@@ -181,6 +173,9 @@ export default {
let { data } = await idRemark({mark:companyId}) let { data } = await idRemark({mark:companyId})
if( data ){ if( data ){
this.companyId = data this.companyId = data
this.$nextTick(() => {
this.listenSider()
})
this.handleQuery() this.handleQuery()
} }
}, },
...@@ -189,6 +184,12 @@ export default { ...@@ -189,6 +184,12 @@ export default {
if(res.code==200){ if(res.code==200){
this.companyInfo = res.data this.companyInfo = res.data
} }
},
listenSider(){
const _this = this, erd = elementResizeDetectorMaker(), partBox = document.getElementById("partBox")
erd.listenTo(partBox, element => {
_this.partBoxHeight = partBox.offsetHeight
})
} }
} }
} }
...@@ -208,5 +209,6 @@ export default { ...@@ -208,5 +209,6 @@ export default {
.part-right{ .part-right{
min-width: 1088px; min-width: 1088px;
width: 100%; width: 100%;
background: #FFFFFF;
} }
</style> </style>
...@@ -143,7 +143,7 @@ export default { ...@@ -143,7 +143,7 @@ export default {
graphList: [ graphList: [
{id: 1, name:'业务往来', intro:[{id: 101, name:'客户', val:0, category:'global', field:'customer'},{id: 102, name:'供应商', val:0, category:'global', field:'supplier'}], ico:require('@/assets/images/detail/overview/company_ywwl.png')}, {id: 1, name:'业务往来', intro:[{id: 101, name:'客户', val:0, category:'global', field:'customer'},{id: 102, name:'供应商', val:0, category:'global', field:'supplier'}], ico:require('@/assets/images/detail/overview/company_ywwl.png')},
{id: 2, name:'商机线索', intro:[{id: 201, name:'专项债项目', val:0, category:'xxx', field:'yy'},{id: 202, name:'招标计划', val:0, category:'xxx', field:'zz'}], ico:require('@/assets/images/detail/overview/company_sjxs.png')}, {id: 2, name:'商机线索', intro:[{id: 201, name:'专项债项目', val:0, category:'xxx', field:'yy'},{id: 202, name:'招标计划', val:0, category:'xxx', field:'zz'}], ico:require('@/assets/images/detail/overview/company_sjxs.png')},
{id: 3, name:'城投拿地', intro:[{id: 301, name:'土地交易', val:10, category:'global', field:'landInfo'},{id: 302, name:'行政许可', val:20, category:'business', field:'adminLicensing'}], ico:require('@/assets/images/detail/overview/company_ctnd.png')}, {id: 3, name:'城投拿地', intro:[{id: 301, name:'土地交易', val:0, category:'global', field:'landInfo'},{id: 302, name:'行政许可', val:0, category:'business', field:'adminLicensing'}], ico:require('@/assets/images/detail/overview/company_ctnd.png')},
{id: 4, name:'对外投资', intro:[{id: 401, name:'企业经营实力展现'}], ico:require('@/assets/images/detail/overview/company_dwtz.png')}, {id: 4, name:'对外投资', intro:[{id: 401, name:'企业经营实力展现'}], ico:require('@/assets/images/detail/overview/company_dwtz.png')},
{id: 5, name:'股权穿透', intro:[{id: 501, name:'瞬息掌握企业关系'}], ico:require('@/assets/images/detail/overview/company_gqct.png')}, {id: 5, name:'股权穿透', intro:[{id: 501, name:'瞬息掌握企业关系'}], ico:require('@/assets/images/detail/overview/company_gqct.png')},
{id: 6, name:'企业架构', intro:[{id: 601, name:'企业架构关联图'}], ico:require('@/assets/images/detail/overview/company_qyjg.png')}, {id: 6, name:'企业架构', intro:[{id: 601, name:'企业架构关联图'}], ico:require('@/assets/images/detail/overview/company_qyjg.png')},
...@@ -225,7 +225,7 @@ export default { ...@@ -225,7 +225,7 @@ export default {
this.showState = !this.showState this.showState = !this.showState
}, },
jumpToLt(item){ jumpToLt(item){
this.$router.push({ path: '/party/structure', query: {eid:this.companyInfo.eid, typeId:item.id} }) this.$router.push({ path: '/structure/graph', query: {eid:this.companyInfo.eid, typeId:item.id} })
}, },
//swiper项点击 //swiper项点击
handleGraph(item,it){ handleGraph(item,it){
......
...@@ -19,9 +19,9 @@ export default { ...@@ -19,9 +19,9 @@ export default {
} }
}, },
created() { created() {
if (this.$route.query.companyId) { // 获取companyId if (this.$route.params.id) { // 获取companyId
this.loading = true this.loading = true
this.src = `https://pre-plug.jiansheku.com/enterprise/${this.$route.query.companyId}?secretId=${this.secretId}` this.src = `https://pre-plug.jiansheku.com/enterprise/${this.$route.params.id}?secretId=${this.secretId}`
} }
}, },
mounted() { mounted() {
......
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