Commit 042ad604 authored by dcy's avatar dcy

我的待分配列表客户调整

parent 95b1d12a
......@@ -67,13 +67,10 @@
</el-table-column>
<el-table-column label="国家" align="center" prop="country">
<template slot-scope="scope">
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.country" />
<dict-tag :type="DICT_TYPE.COUNTRY" :value="scope.row.country" />
</template>
</el-table-column>
<el-table-column label="跟进客服" align="center" prop="customerService">
<template slot-scope="scope">
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.customerService" />
</template>
<el-table-column label="跟进客服" align="center" prop="customerService" :formatter="customerServiceFn">
</el-table-column>
<el-table-column label="客户状态" align="center" prop="status">
<template slot-scope="scope">
......@@ -368,8 +365,16 @@ export default {
},
created() {
this.getList();
// 获得客服人员列表
listServiceUser().then(response => {
this.serviceStaffOptions = response.data;
})
},
methods: {
customerServiceFn(row){
let obj = this.serviceStaffOptions.find(item => item.id === row.customerService)
return obj ? obj.nickname : '';
},
/** 查询列表 */
getList() {
this.loading = true;
......@@ -480,11 +485,6 @@ export default {
this.openHandOver = true;
this.handOverForm.customerId = row.id;
// 获得客服人员列表
listServiceUser().then(response => {
this.serviceStaffOptions = response.data;
})
},
/** 提交按钮 */
......
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