Commit 222c94e1 authored by 黄卓's avatar 黄卓

客户联系人客户名,客户无图片隐藏组件

parent 82586dbc
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<el-descriptions-item label="主营类别">{{ productType }}</el-descriptions-item> <el-descriptions-item label="主营类别">{{ productType }}</el-descriptions-item>
<el-descriptions-item label="常提货网点">{{ pickupPoint }}</el-descriptions-item> <el-descriptions-item label="常提货网点">{{ pickupPoint }}</el-descriptions-item>
<el-descriptions-item label="图片"> <el-descriptions-item label="图片">
<el-image :src="customer.picture" style="width: 100px;height: 100px"></el-image> <el-image v-show="!!customer.picture" :src="customer.picture" style="width: 100px;height: 100px"></el-image>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="备注">{{ customer.remarks }}</el-descriptions-item> <el-descriptions-item label="备注">{{ customer.remarks }}</el-descriptions-item>
<!-- <el-descriptions-item label="信用等级">{{ customer }}</el-descriptions-item>--> <!-- <el-descriptions-item label="信用等级">{{ customer }}</el-descriptions-item>-->
......
...@@ -138,8 +138,7 @@ ...@@ -138,8 +138,7 @@
<script> <script>
import { createCustomerComplaint, updateCustomerComplaint, deleteCustomerComplaint, getCustomerComplaint, getCustomerComplaintPage, exportCustomerComplaintExcel } from "@/api/ecw/customerComplaint"; import { createCustomerComplaint, updateCustomerComplaint, deleteCustomerComplaint, getCustomerComplaint, getCustomerComplaintPage, exportCustomerComplaintExcel } from "@/api/ecw/customerComplaint";
import { getMyFlowCustomerList } from "@/api/ecw/customer"; import {getCustomerSelect} from '@/api/ecw/customer'
import {getCustomerSelect} from "../../../api/ecw/customer"
import CustomerFollow from "../../../components/CustomerFollow" import CustomerFollow from "../../../components/CustomerFollow"
export default { export default {
...@@ -197,10 +196,6 @@ export default { ...@@ -197,10 +196,6 @@ export default {
}, },
created() { created() {
this.getList(); this.getList();
// 获得邮件账号
// getMyFlowCustomerList().then(response => {
// this.myFollowCustomerList = response.data;
// })
getCustomerSelect().then(r => { getCustomerSelect().then(r => {
this.customerSelect = r.data this.customerSelect = r.data
...@@ -316,7 +311,7 @@ export default { ...@@ -316,7 +311,7 @@ export default {
}, },
/** 格式化邮件账号 */ /** 格式化邮件账号 */
formatCustomerName(customerId) { formatCustomerName(customerId) {
for (const customer of this.myFollowCustomerList) { for (const customer of this.customerSelect) {
if (customer.id === customerId) { if (customer.id === customerId) {
return customer.name; return customer.name;
} }
......
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