Commit f6492be2 authored by 邓春圆's avatar 邓春圆

跟多联系人 样式调整

parent e32e2a16
......@@ -7,18 +7,19 @@ export default {
data(){
return {
phoneList:[],
show:false
}
},
mounted() {
let phone = this.phoneString
this.phoneList = phone.split('(;)');
console.log(this.phoneList)
}
}
</script>
<template>
<div>
<el-dialog :modal-append-to-body="false" :append-to-body="true" :visible.sync="show">
<div v-for="(item, index) in phoneList" :key="index" >
<div>
<span>联系人{{index + 1}}</span>
......@@ -29,6 +30,18 @@ export default {
<span>+{{item.split('(@)')[0]}}</span>
</div>
</div>
</el-dialog>
<div>
<div>
<span>联系人:</span>
<span>{{phoneList[0] ? phoneList[0].split('(@)')[1] : ''}}</span>
</div>
<div style="white-space: normal;">
<span>联系电话:</span>
<span>+{{phoneList[0] ? phoneList[0].split('(@)')[0] : ''}}</span>
<el-button v-if="phoneList.length > 1" @click="show = true;" style="margin-left: 10px;" size="mini" type="text" >更多</el-button>
</div>
</div>
</div>
</template>
......
......@@ -79,7 +79,7 @@
:label="$t('客户名称')">
</el-table-column>
<el-table-column
width="210"
width="260"
:label="$t('客户号码')">
<template v-slot="{row}">
<show-contacts :phone-string="row.phone" ></show-contacts>
......
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