Commit a0be8085 authored by zhoutong's avatar zhoutong
parents f5c9317d 9d0cb54b
<script>
export default {
name: "showContacts",
props:{
phoneString:[String]
},
data(){
return {
phoneList:[],
}
},
mounted() {
let phone = this.phoneString
this.phoneList = phone.split('(;)');
console.log(this.phoneList)
}
}
</script>
<template>
<div>
<div v-for="(item, index) in phoneList" :key="index" >
<div>
<span>联系人{{index + 1}}</span>
<span>{{item.split('(@)')[1]}}</span>
</div>
<div>
<span>联系电话{{index + 1}}</span>
<span>+{{item.split('(@)')[0]}}</span>
</div>
</div>
</div>
</template>
<style scoped lang="scss">
</style>
......@@ -43,9 +43,10 @@
:label="$t('客户名称')">
</el-table-column>
<el-table-column
prop="phone"
:formatter="(row, column, cellValue) => '+' + cellValue"
:label="$t('客户号码')">
<template v-slot="{row}">
<show-contacts :phone-string="row.phone" ></show-contacts>
</template>
</el-table-column>
<el-table-column
prop="feeScale"
......@@ -78,9 +79,11 @@
:label="$t('客户名称')">
</el-table-column>
<el-table-column
prop="phone"
:formatter="(row, column, cellValue) => '+' + cellValue"
width="210"
:label="$t('客户号码')">
<template v-slot="{row}">
<show-contacts :phone-string="row.phone" ></show-contacts>
</template>
</el-table-column>
<el-table-column
prop="fileUrl"
......@@ -211,10 +214,12 @@ import DictSelector from "@/components/DictSelector"
import { DICT_TYPE, getDictDataLabel } from '@/utils/dict'
import FileUpload from '@/components/FileUpload'
import { parseTime } from '@/utils/ruoyi'
import ShowContacts from "@/views/ecw/productBrank/Empower/components/showContacts.vue";
export default {
name: "Empower",
components: {
ShowContacts,
DictSelector,
FileUpload
},
......
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