From b1f5ad55b8f894560ea27c7ffdbe84a45fb35b5c Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 19 Nov 2023 00:28:22 +0800 Subject: [PATCH] =?UTF-8?q?crm=EF=BC=9Acode=20review=20=E6=9D=83=E9=99=90?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crm/permission/index.ts | 4 ++-- src/views/crm/components/CrmPermissionForm.vue | 3 +++ src/views/crm/components/CrmTeamList.vue | 15 ++++++++++++--- src/views/crm/customer/index.vue | 4 ++-- 4 files changed, 19 insertions(+), 7 deletions(-) diff --git a/src/api/crm/permission/index.ts b/src/api/crm/permission/index.ts index e790c334..1292f29a 100644 --- a/src/api/crm/permission/index.ts +++ b/src/api/crm/permission/index.ts @@ -6,9 +6,9 @@ export interface PermissionVO { bizType: number | undefined // Crm 类型 bizId: number | undefined // Crm 类型数据编号 level: number | undefined // 权限级别 - deptName?: string // 部门名称 + deptName?: string // 部门名称 // 岗位名称数组 TODO @puhui999:数组? nickname?: string // 用户昵称 - postNames?: string // 岗位名称数组 + postNames?: string // 岗位名称数组 TODO @puhui999:数组? createTime?: Date } diff --git a/src/views/crm/components/CrmPermissionForm.vue b/src/views/crm/components/CrmPermissionForm.vue index 9754637b..838aa68d 100644 --- a/src/views/crm/components/CrmPermissionForm.vue +++ b/src/views/crm/components/CrmPermissionForm.vue @@ -19,6 +19,7 @@ + 只读 读写 @@ -36,6 +37,7 @@ import * as PermissionApi from '@/api/crm/permission' import { CrmPermissionLevelEnum } from './index' defineOptions({ name: 'CrmPermissionForm' }) + const { t } = useI18n() // 国际化 const message = useMessage() // 消息弹窗 @@ -107,6 +109,7 @@ const resetForm = (bizType: number, bizId: number) => { } onMounted(async () => { // 获得用户列表 + // TODO 芋艿:用户列表的选择组件 userOptions.value = await UserApi.getSimpleUserList() }) diff --git a/src/views/crm/components/CrmTeamList.vue b/src/views/crm/components/CrmTeamList.vue index f7591f6a..568777f6 100644 --- a/src/views/crm/components/CrmTeamList.vue +++ b/src/views/crm/components/CrmTeamList.vue @@ -38,6 +38,7 @@