Commit 58f49330 authored by huangjie's avatar huangjie

联系人

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