Commit 0fe325de by xinla

离职分配客户点击详情问题

1 parent 367192ea
...@@ -830,7 +830,6 @@ export default { ...@@ -830,7 +830,6 @@ export default {
if (valid) { if (valid) {
let laoding = this.$loading() let laoding = this.$loading()
const form = this.form const form = this.form
debugger
form.tagIds = form.tags?.map((item, index) => item.tagId) + '' form.tagIds = form.tags?.map((item, index) => item.tagId) + ''
form.posterJSON = this.canvas.toJSON(['customType']) form.posterJSON = this.canvas.toJSON(['customType'])
let list = form.posterJSON.objects let list = form.posterJSON.objects
......
<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: {
dateRange: { dateRange: {
type: Array, type: Array,
default: () => [] default: () => [],
}, },
type: { type: {
type: String, type: String,
default: 'customer' default: 'customer',
} },
}, },
data() { data() {
return { return {
...@@ -23,11 +23,11 @@ ...@@ -23,11 +23,11 @@
handoverUserId: undefined, handoverUserId: undefined,
oldOwner: undefined, oldOwner: undefined,
beginTime: undefined, beginTime: undefined,
endTime: undefined endTime: undefined,
}, },
loading: false, loading: false,
total: 0, total: 0,
list: [] list: [],
} }
}, },
watch: {}, watch: {},
...@@ -62,22 +62,22 @@ ...@@ -62,22 +62,22 @@
if (this.type == 'customer') { if (this.type == 'customer') {
this.$router.push({ this.$router.push({
name: window.lwConfig.CUSTOMER_DETAIL_ROUTE_NAME, name: window.lwConfig.CUSTOMER_DETAIL_ROUTE_NAME,
query: { externalUserid: row.externalUserid, userId: row.firstUserId, isDelete: true } query: { externalUserid: row.externalUserid, userId: row.firstUserId },
}) })
} else { } else {
this.$router.push({ this.$router.push({
path: window.lwConfig.GROUP_DETAIL_ROUTE_PATH, path: window.lwConfig.GROUP_DETAIL_ROUTE_PATH,
query: { chatId: row.chatId } query: { chatId: row.chatId },
}) })
} }
} },
} },
} }
</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 v-if="type === 'customer'" prop="customerName" label="客户名称"></el-table-column> <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 :prop="type === 'customer' ? 'takeUserName' : 'newOwnerName'" label="接替员工"></el-table-column> <el-table-column :prop="type === 'customer' ? 'takeUserName' : 'newOwnerName'" label="接替员工"></el-table-column>
...@@ -85,9 +85,7 @@ ...@@ -85,9 +85,7 @@
<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 #default="{ row }"> <template #default="{ row }">
<el-button v-hasPermi="['customerManage:dimission:edit']" @click="gotoRoute(row)" text> <el-button @click="gotoRoute(row)" text>查看</el-button>
查看
</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -97,8 +95,7 @@ ...@@ -97,8 +95,7 @@
:total="total" :total="total"
v-model:page="query.pageNum" v-model:page="query.pageNum"
v-model:limit="query.pageSize" v-model:limit="query.pageSize"
@pagination="getList()" @pagination="getList()" />
/>
</div> </div>
</template> </template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!