Commit 6859935c authored by dcy's avatar dcy

全部客户列表添加客服

parent 5ce0097d
...@@ -73,17 +73,18 @@ ...@@ -73,17 +73,18 @@
<dict-tag :type="DICT_TYPE.COUNTRY" :value="scope.row.country" /> <dict-tag :type="DICT_TYPE.COUNTRY" :value="scope.row.country" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="跟进客服" align="center" prop="customerService"> <el-table-column label="跟进客服" align="center" prop="customerService" :formatter="customerServiceFn">
<template slot-scope="scope">
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.customerService" />
</template>
</el-table-column> </el-table-column>
<el-table-column label="客户状态" align="center" prop="status"> <el-table-column label="客户状态" align="center" prop="status">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :type="DICT_TYPE.CUSTOMER_STATUS" :value="scope.row.status" /> <dict-tag :type="DICT_TYPE.CUSTOMER_STATUS" :value="scope.row.status" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="部门" align="center" prop="department" /> <el-table-column label="部门" align="center" prop="department">
<template v-slot:default="scope">
{{scope.row.department}}
</template>
</el-table-column>
<el-table-column label="创建时间" align="center" prop="createTime" width="180"> <el-table-column label="创建时间" align="center" prop="createTime" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime) }}</span> <span>{{ parseTime(scope.row.createTime) }}</span>
...@@ -468,6 +469,7 @@ import upload from '@/components/ImageUpload' ...@@ -468,6 +469,7 @@ import upload from '@/components/ImageUpload'
import {getNodeList} from "@/api/ecw/node" import {getNodeList} from "@/api/ecw/node"
import CustomerFollowList from "@/components/CustomerFollowList" import CustomerFollowList from "@/components/CustomerFollowList"
import customerComplaints from "@/components/customerComplaints" import customerComplaints from "@/components/customerComplaints"
import {listServiceUser} from "@/api/system/user";
export default { export default {
name: "Customer", name: "Customer",
...@@ -525,6 +527,7 @@ export default { ...@@ -525,6 +527,7 @@ export default {
nodeList: [], nodeList: [],
showLine: false, showLine: false,
customerId:undefined, customerId:undefined,
customerServiceList:[]
}; };
}, },
created() { created() {
...@@ -532,8 +535,20 @@ export default { ...@@ -532,8 +535,20 @@ export default {
// getNodeList().then(r => { // getNodeList().then(r => {
// this.nodeList = r.data // this.nodeList = r.data
// }) // })
listServiceUser().then(r=>{
console.log(r,'客服');
this.customerServiceList = r.data;
})
}, },
methods: { methods: {
customerServiceFn(val){
if(this.customerServiceList.length > 0){
let index =this.customerServiceList.findIndex(item => item.id === val.customerService);
return index !== -1 ? this.customerServiceList[index]?.nickname :''
}else {
return ''
}
},
/** 查询列表 */ /** 查询列表 */
getList() { getList() {
this.loading = true; this.loading = true;
......
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