Commit f36ba6a3 by 姜鹏凯

离职功能优化

1 parent efd36ad9
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
* userId 是 当前跟进人id * userId 是 当前跟进人id
*/ */
getDetail() { getDetail() {
getDetail({ ...this.$route.query, delFlag: 1 }).then(({ data }) => { getDetail({ ...this.$route.query, delFlag: this.$route.query.isDelete ? 1 : 0 }).then(({ data }) => {
data.companyTags && (data.companyTags = data.companyTags.split(',')) data.companyTags && (data.companyTags = data.companyTags.split(','))
this.customer = data this.customer = data
......
<script> <script>
import { getAllocateCustomers, getAllocateGroups } from '@/api/customer/dimission' import { getAllocateCustomers, getAllocateGroups } from '@/api/customer/dimission'
export default { export default {
name: 'AllocatedStaffDetailList', name: 'AllocatedStaffDetailList',
components: {}, components: {},
props: { props: {
...@@ -58,27 +58,16 @@ export default { ...@@ -58,27 +58,16 @@ export default {
}) })
} }
} }
} }
</script> </script>
<template> <template>
<div class="page"> <div class="page">
<el-table ref="multipleTable" :data="list" tooltip-effect="dark" style="width: 100%"> <el-table ref="multipleTable" :data="list" tooltip-effect="dark" style="width: 100%;">
<el-table-column <el-table-column v-if="type === 'customer'" prop="customerName" label="客户名称"></el-table-column>
v-if="type === 'customer'"
prop="customerName"
label="客户名称"
></el-table-column>
<el-table-column v-else prop="groupName" label="群名称"></el-table-column> <el-table-column v-else prop="groupName" label="群名称"></el-table-column>
<el-table-column <el-table-column :prop="type === 'customer' ? 'takeUserName' : 'newOwnerName'" label="接替员工"></el-table-column>
:prop="type === 'customer' ? 'takeUserName' : 'newOwnerName'" <el-table-column prop="department" label="接替员工所属部门" show-overflow-tooltip></el-table-column>
label="接替员工"
></el-table-column>
<el-table-column
prop="department"
label="接替员工所属部门"
show-overflow-tooltip
></el-table-column>
<el-table-column prop="allocateTime" label="分配时间" show-overflow-tooltip></el-table-column> <el-table-column prop="allocateTime" label="分配时间" show-overflow-tooltip></el-table-column>
<el-table-column label="操作" width="100"> <el-table-column label="操作" width="100">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
...@@ -87,7 +76,7 @@ export default { ...@@ -87,7 +76,7 @@ export default {
@click=" @click="
$router.push({ $router.push({
path: 'customerDetail', path: 'customerDetail',
query: { externalUserid: row.externalUserid, userId: row.firstUserId } query: { externalUserid: row.externalUserid, userId: row.firstUserId, isDelete: true }
}) })
" "
type="text" type="text"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!