|
|
@ -55,6 +55,14 @@ import type {
|
|
|
|
|
|
|
|
|
|
|
|
defineOptions({ name: 'GeopoliticalCustomers' })
|
|
|
|
defineOptions({ name: 'GeopoliticalCustomers' })
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取当前账号角色
|
|
|
|
|
|
|
|
import { useUserStore } from '@/stores/user-store'
|
|
|
|
|
|
|
|
const { userInfo } = useUserStore()
|
|
|
|
|
|
|
|
const salesmanType = ref<number | undefined>()
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
|
|
|
salesmanType.value = userInfo?.salesmanType
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
//底部表格
|
|
|
|
//底部表格
|
|
|
|
// 表格组件引用
|
|
|
|
// 表格组件引用
|
|
|
|
const tableRef = ref<ProTableInstanceExpose>()
|
|
|
|
const tableRef = ref<ProTableInstanceExpose>()
|
|
|
@ -65,7 +73,7 @@ let searchParams: GeopoliticalCustomersPageParam = {}
|
|
|
|
|
|
|
|
|
|
|
|
//远程加载表格数据
|
|
|
|
//远程加载表格数据
|
|
|
|
const tableRequest: TableRequest = (params, sorter, filter) => {
|
|
|
|
const tableRequest: TableRequest = (params, sorter, filter) => {
|
|
|
|
const pageParam = mergePageParam(params, sorter, filter)
|
|
|
|
const pageParam = mergePageParam(params, sorter, filter, salesmanType.value)
|
|
|
|
return pageAccessLogs({ ...pageParam, ...searchParams })
|
|
|
|
return pageAccessLogs({ ...pageParam, ...searchParams })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|