Skip to content

Commit

Permalink
add: customer service menu
Browse files Browse the repository at this point in the history
Signed-off-by: Kaifuny <superbiger.github@gmail.com>
  • Loading branch information
Kaifuny committed Jul 20, 2023
1 parent cab7946 commit 082f169
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 2 deletions.
7 changes: 7 additions & 0 deletions contact-frontend/packages/apps/web/src/layouts/NavLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ const active = ref(false)
:dropdown-menus="dropdownMenus"
@update:current="handleClickNav"
>
<template #production>
<div class="flex items-center space-x-2">
<div class="text-sm">XX公司官网</div>
<span>-</span>
<div class="text-sm">默认客服部门</div>
</div>
</template>
<RouterLink class="text-sm text-green-600" to="/index">
使用教程
</RouterLink>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ const menuOptions: MenuOption[] = [
label: '知识库',
key: ROUTE_NAME.ENTERPRISE_KNOWLEDGE_INDEX,
},
{
label: '质检',
key: ROUTE_NAME.ENTERPRISE_KNOWLEDGE_INDEX,
},
{
label: '账号管理',
children: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,43 @@
<script setup lang="ts">
import { ROUTE_NAME } from '@cskefu/models'
import { MenusLayout } from '@cskefu/shared-ui'
import { MenuOption, NMenu } from 'naive-ui'
const menuOptions: MenuOption[] = []
const menuOptions: MenuOption[] = [
{
label: '坐席看板',
key: ROUTE_NAME.ENTERPRISE_INDEX,
},
{
label: '会话管理',
key: ROUTE_NAME.ENTERPRISE_INDEX,
},
{
label: '留言管理',
key: ROUTE_NAME.ENTERPRISE_INDEX,
},
{
label: '坐席管理',
key: ROUTE_NAME.ENTERPRISE_INDEX,
},
{
label: '机器人管理',
children: [
{
label: '数据统计',
key: ROUTE_NAME.ENTERPRISE_INDEX,
},
{
label: '机器人管理',
key: ROUTE_NAME.ENTERPRISE_INDEX,
},
{
label: '机器人设置',
key: ROUTE_NAME.ENTERPRISE_INDEX,
},
],
},
]
</script>
<template>
<MenusLayout>
Expand Down
3 changes: 2 additions & 1 deletion contact-frontend/packages/shared/ui/src/components/Nav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ defineEmits(['update:current'])
<div class="px-4 sm:px-6 lg:px-8">
<div class="flex h-16 items-center justify-between">
<div class="flex items-center">
<div class="flex-shrink-0 pt-2">
<div class="flex-shrink-0 pt-2 mr-2">
<img class="h-10 w-18" :src="logoUrl" alt="Your Company" />
</div>
<slot name="production"></slot>
</div>
<div class="hidden md:block">
<div class="ml-10 flex items-baseline space-x-4">
Expand Down

0 comments on commit 082f169

Please sign in to comment.