Commit 58f49330 authored by huangjie's avatar huangjie

联系人

parent c9a9cd41
......@@ -68,7 +68,7 @@
<!--</el-dialog>-->
<!--</div>-->
<lxr :isDisabled='isDisabled' :detailId="detailId" :customname="companyInfo.companyName" listtype="custom"></lxr>
<lxr :isDisabled='isDisabled' :customerId="detailId" :customname="companyInfo.companyName" listtype="custom"></lxr>
</template>
<script>
......
......@@ -194,10 +194,11 @@
components:{skeleton},
name: 'lxr',
props: {
detailId: { //从项目、客户列表详情跳转过来ID
detailId: { //从项目详情跳转过来ID
type: Number,
default: 0
},
customerId:'',//客户列表跳转过来ID
isDisabled:false,
listtype:'',//project项目详情 custom客户列表
customname:'',//企业名称
......@@ -230,14 +231,14 @@
}
},
created(){
this.getList()
if(this.thistype == 'project'){
this.searchParam.projectId = this.detailId ? this.detailId : this.$route.query.id
}
if(this.thistype == 'custom'){
this.searchParam.customerId = this.customerId ? this.customerId : this.$route.query.id
this.searchParam.customerId = this.customerId ? this.customerId : null
}
this.getList()
},
methods:{
......
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