diff --git a/src/api/adminApi.ts b/src/api/adminApi.ts index 277f619..d33b476 100644 --- a/src/api/adminApi.ts +++ b/src/api/adminApi.ts @@ -175,4 +175,27 @@ export class manageService { url: '/common/preset/cache/clear' }) } + //公海客户分配 + static crmCustomerAllocation(params: any) { + return request.get({ + url: '/admin/crm/customer/cede', + params + // showErrorMessage: false // 不显示错误消息 + }) + } + //公海客户跟进记录 + static crmCustomerFollow(params: any) { + return request.get({ + url: '/admin/crm/customer/follow', + params: params + }) + } + //公海客户删除 + static crmCustomerDelete(params: any) { + return request.get({ + url: '/admin/crm/customer/delete', + params + // showErrorMessage: false // 不显示错误消息 + }) + } } diff --git a/src/api/crmApi.ts b/src/api/crmApi.ts index 28dcbc2..3727eed 100644 --- a/src/api/crmApi.ts +++ b/src/api/crmApi.ts @@ -176,4 +176,19 @@ export class CrmService { // showErrorMessage: false // 不显示错误消息 }) } + //所属员工 + static getCustomerUserList(params: Api.Common.PaginatingParams) { + return request.get({ + url: '/common/user/team', + params + }) + } + //标记离职 + static markLeave(params: any) { + return request.get({ + url: '/common/user/resign', + params + // showErrorMessage: false // 不显示错误消息 + }) + } } diff --git a/src/api/systemApi.ts b/src/api/systemApi.ts index bc7aad3..5284590 100644 --- a/src/api/systemApi.ts +++ b/src/api/systemApi.ts @@ -168,9 +168,10 @@ export class systemService { }) } //菜单列表 - static getMenutreeList() { + static getMenutreeList(params: any) { return request.get({ - url: '/admin/resources/list/tree' + url: '/admin/resources/list/tree', + params }) } static getMenuList() { diff --git a/src/api/usersApi.ts b/src/api/usersApi.ts index b1fc3c5..04929a1 100644 --- a/src/api/usersApi.ts +++ b/src/api/usersApi.ts @@ -7,7 +7,7 @@ export class UserService { url: '/common/preset/corps' }) } - //获取系统 + //获取系统 static getsystemsList() { return request.get({ url: '/common/preset/systems' @@ -43,7 +43,7 @@ export class UserService { params }) } - //飞书凭证 + //飞书凭证 static getfeishuscope() { return request.get({ url: '/common/auth/feishu/scope' @@ -78,4 +78,11 @@ export class UserService { url: '/common/preset/menus' }) } + //个人信息编辑 + static editUserInfo(params: any) { + return request.post({ + url: '/admin/user/edit', + params + }) + } } diff --git a/src/components/core/layouts/art-header-bar/index.vue b/src/components/core/layouts/art-header-bar/index.vue index 09cc557..b476e77 100644 --- a/src/components/core/layouts/art-header-bar/index.vue +++ b/src/components/core/layouts/art-header-bar/index.vue @@ -163,7 +163,7 @@ -->
    -
  • +
  • {{ $t('topBar.user.userCenter') }}
  • @@ -223,7 +223,6 @@ import { languageOptions } from '@/locales' const isWindows = navigator.userAgent.includes('Windows') const { locale } = useI18n() - const settingStore = useSettingStore() const userStore = useUserStore() const router = useRouter() @@ -315,14 +314,22 @@ const goPage = (path: string) => { router.push(path) } - - const toDocs = () => { - window.open(WEB_LINKS.DOCS) + const { systemsid } = useUserStore() + const gouserInfo = () => { + if (systemsid == '1') { + router.push('/admin/user/user_info') + } else { + router.push('/system/user-center') + } } - const toGithub = () => { - window.open(WEB_LINKS.GITHUB) - } + // const toDocs = () => { + // window.open(WEB_LINKS.DOCS) + // } + + // const toGithub = () => { + // window.open(WEB_LINKS.GITHUB) + // } const toHome = () => { router.push(home_page) diff --git a/src/views/admin/customer/customeraudit.vue b/src/views/admin/customer/customeraudit.vue index 08f149a..03de504 100644 --- a/src/views/admin/customer/customeraudit.vue +++ b/src/views/admin/customer/customeraudit.vue @@ -1,5 +1,12 @@ diff --git a/src/views/admin/system/company.vue b/src/views/admin/system/company.vue index ff091f0..cf093da 100644 --- a/src/views/admin/system/company.vue +++ b/src/views/admin/system/company.vue @@ -4,7 +4,7 @@
    - 新增 + 新增
    +