Commit 3b88cfc8 authored by xiongjinke's avatar xiongjinke

修改

parent 46d61a65
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<el-breadcrumb separator="/"> <el-breadcrumb separator="/">
<el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item> <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
<el-breadcrumb-item :to="{ path: fromPath }" v-if="fromName">{{fromName}}</el-breadcrumb-item> <el-breadcrumb-item :to="{ path: fromPath }" v-if="fromName">{{fromName}}</el-breadcrumb-item>
<el-breadcrumb-item v-if="cooDetail"><el-link :underline="false" @click="cooperateList">合作情况</el-link></el-breadcrumb-item>
<!-- <el-breadcrumb-item :to="{ path: '/enterpriseData?tag=1' }">查企业</el-breadcrumb-item>--> <!-- <el-breadcrumb-item :to="{ path: '/enterpriseData?tag=1' }">查企业</el-breadcrumb-item>-->
<el-breadcrumb-item>{{companyInfo.simpleName || companyInfo.companyName || '--'}}</el-breadcrumb-item> <el-breadcrumb-item>{{companyInfo.simpleName || companyInfo.companyName || '--'}}</el-breadcrumb-item>
</el-breadcrumb> </el-breadcrumb>
...@@ -18,7 +19,7 @@ ...@@ -18,7 +19,7 @@
<script> <script>
export default { export default {
name: 'Header', name: 'Header',
props: ['companyId', 'companyInfo', 'fromPath', 'fromName'], props: ['companyId', 'companyInfo', 'fromPath', 'fromName', 'cooDetail'],
data() { data() {
return { return {
} }
...@@ -26,6 +27,10 @@ export default { ...@@ -26,6 +27,10 @@ export default {
created() { created() {
}, },
methods: { methods: {
// 跳转到企业详情合作情况
cooperateList(){
this.$emit('close-detail')
},
} }
} }
</script> </script>
......
...@@ -146,7 +146,7 @@ export default { ...@@ -146,7 +146,7 @@ export default {
components: { components: {
Detail Detail
}, },
props: ['customerIds','companyInfo'], props: ['customerIds','companyInfo','cooDetail'],
data() { data() {
return { return {
ifEmpty:false, ifEmpty:false,
...@@ -222,6 +222,11 @@ export default { ...@@ -222,6 +222,11 @@ export default {
isDetailId: false, isDetailId: false,
} }
}, },
watch:{
cooDetail(newVal, oldVal){
this.isDetailId = newVal
}
},
created() { created() {
this.list() this.list()
this.customerInfos() this.customerInfos()
...@@ -301,10 +306,6 @@ export default { ...@@ -301,10 +306,6 @@ export default {
if (value.length>=2){ if (value.length>=2){
let param = { let param = {
projectName:value, projectName:value,
// page:{
// limit:20,
// page:1
// }
} }
queryProject(JSON.stringify(param)).then(result=>{ queryProject(JSON.stringify(param)).then(result=>{
if(result.code != 200) if(result.code != 200)
...@@ -361,6 +362,7 @@ export default { ...@@ -361,6 +362,7 @@ export default {
clickDetail(id){ clickDetail(id){
this.detailId = id this.detailId = id
this.isDetailId = true this.isDetailId = true
this.$emit('detail')
}, },
//关闭详情 //关闭详情
closeDetail(){ closeDetail(){
...@@ -369,7 +371,7 @@ export default { ...@@ -369,7 +371,7 @@ export default {
}, },
// 转科学计算 // 转科学计算
numbers(v){ numbers(v){
return new Number(v); return Number(v);
} }
} }
......
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
{label: '公司/机关', prop: 'position', width: '268'}, {label: '公司/机关', prop: 'position', width: '268'},
{label: '职位', prop: 'workUnit', width: '110'}, {label: '职位', prop: 'workUnit', width: '110'},
{label: '联系方式', prop: 'contactInformation', width: '105'}, {label: '联系方式', prop: 'contactInformation', width: '105'},
{label: '内部维护人', prop: 'updateBy', width: '88'}, {label: '内部维护人', prop: 'updateBy', width: '100'},
{label: '备注', prop: 'remark'}, {label: '备注', prop: 'remark'},
], ],
addRorm: { addRorm: {
......
<template> <template>
<div class="app-container part-container"> <div class="app-container part-container">
<Header :company-id="companyId" :companyInfo="companyInfo" :fromPath="fromPath" :fromName="fromName" v-if="companyId" /> <Header :company-id="companyId" :companyInfo="companyInfo" :fromPath="fromPath" :fromName="fromName" :cooDetail="cooDetail" v-if="companyId" @close-detail="closeDetail" />
<div class="flex-box part-main"> <div class="flex-box part-main">
<div class="part-left"> <div class="part-left">
<side-bar @currentPath="showPartPage" :pathName="currentPath.pathName" :partBoxHeight="partBoxHeight" :customerId="customerId" /> <side-bar @currentPath="showPartPage" :pathName="currentPath.pathName" :partBoxHeight="partBoxHeight" :customerId="customerId" />
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<!-- 招标偏好 --> <!-- 招标偏好 -->
<Preference v-if="currentPath.pathName=='preference'" :customer-ids="customerId" /> <Preference v-if="currentPath.pathName=='preference'" :customer-ids="customerId" />
<!-- 合作情况 --> <!-- 合作情况 -->
<Cooperate v-if="currentPath.pathName=='cooperate'" :customer-ids="customerId" :companyInfo="companyInfo" /> <Cooperate v-if="currentPath.pathName=='cooperate'" :customer-ids="customerId" :companyInfo="companyInfo" :cooDetail="cooDetail" @detail="cooperateDetail" />
<!-- 决策链条 --> <!-- 决策链条 -->
<DecisionMaking v-if="currentPath.pathName=='decisionMaking'" :customer-ids="customerId" :companyInfo="companyInfo" /> <DecisionMaking v-if="currentPath.pathName=='decisionMaking'" :customer-ids="customerId" :companyInfo="companyInfo" />
<!-- 跟进记录 --> <!-- 跟进记录 -->
...@@ -149,13 +149,19 @@ export default { ...@@ -149,13 +149,19 @@ export default {
}, },
partBoxHeight: null, partBoxHeight: null,
fromPath: '', fromPath: '',
fromName: '' fromName: '',
cooDetail: false
} }
}, },
beforeRouteEnter(to, from, next) { beforeRouteEnter(to, from, next) {
next(vm => { next(vm => {
vm.fromPath = from.path vm.fromPath = from.path
vm.fromName = from.meta.title vm.fromName = from.meta.title
if(from.name == 'CustomList'){
if (to.query.path){
vm.currentPath.pathName = to.query.path
}
}
}) })
}, },
created() { created() {
...@@ -173,14 +179,6 @@ export default { ...@@ -173,14 +179,6 @@ export default {
mounted() { mounted() {
}, },
activated(){ activated(){
if (this.$route.query.path) { // 获取跳转对应板块
this.currentPath.pathName = this.$route.query.path
}else{
this.currentPath.pathName = 'overview'
}
if (this.$route.query.customerId) { // 判断是否显示
this.customerId = this.$route.query.customerId
}
}, },
methods: { methods: {
showPartPage(e){ showPartPage(e){
...@@ -208,6 +206,12 @@ export default { ...@@ -208,6 +206,12 @@ export default {
erd.listenTo(partBox, element => { erd.listenTo(partBox, element => {
_this.partBoxHeight = partBox.offsetHeight _this.partBoxHeight = partBox.offsetHeight
}) })
},
cooperateDetail(){
this.cooDetail = true
},
closeDetail(){
this.cooDetail = false
} }
} }
} }
......
...@@ -4,9 +4,10 @@ ...@@ -4,9 +4,10 @@
<template v-if="!detailId"> <template v-if="!detailId">
<span>项目管理</span> <span>项目管理</span>
<span class="on" @click="tolist"> / 商机列表</span> <span class="on" @click="tolist"> / 商机列表</span>
</template>
<span class="on" v-else @click="cooperateList">合作情况</span>
<span> / 项目详情</span> <span> / 项目详情</span>
</template>
<!-- <span class="on" v-else @click="cooperateList">合作情况</span>-->
<!-- <span> / 项目详情</span>-->
</div> </div>
<div class="app-container" v-if="ProjectData"> <div class="app-container" v-if="ProjectData">
<el-card class="box-card noborder pad16 overflows"> <el-card class="box-card noborder pad16 overflows">
......
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