Skip to content

Commit

Permalink
fix: enterprise menus
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 45215a5 commit cab7946
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 662 deletions.
13 changes: 6 additions & 7 deletions contact-frontend/packages/modules/models/src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,22 @@ export enum ROUTE_NAME {

// 组织管理模块
ORGANIZATION_INDEX = 'ORGANIZATION_INDEX',
ORGANIZATION_ADMIN_INDEX = 'ORGANIZATION_ADMIN_INDEX', // 管理员 - 组织管理设置
ORGANIZATION_USERS_INDEX = 'ORGANIZATION_USERS_INDEX', // 账号管理
ORGANIZATION_ROLES_INDEX = 'ORGANIZATION_ROLES_INDEX', // 角色管理

// 设置模块
SETTING_INDEX = 'SETTING_INDEX',
SETTING_KNOWLEDGE_INDEX = 'SETTING_KNOWLEDGE_INDEX', // 知识库
SETTING_WORKORDER_INDEX = 'SETTING_WORKORDER_INDEX', // 工单
SETTING_LEAVEMESSAGE_INDEX = 'ENTERPRISE_LEAVEMESSAGE_INDEX', // 留言

// 企业设置模块
ENTERPRISE_INDEX = 'ENTERPRISE_INDEX',
ENTERPRISE_KEFU_INDEX = 'ENTERPRISE_KEFU_INDEX', // 客服设置
ENTERPRISE_CHANNEL_INDEX = 'ENTERPRISE_CHANNEL_INDEX', // 接入
ENTERPRISE_CHAT_INDEX = 'ENTERPRISE_CHAT_INDEX', // 对话
ENTERPRISE_CUSTOMER_INDEX = 'ENTERPRISE_CUSTOMER_INDEX', // 客户

ENTERPRISE_KNOWLEDGE_INDEX = 'ENTERPRISE_KNOWLEDGE_INDEX', // 知识库
ENTERPRISE_WORKORDER_INDEX = 'ENTERPRISE_WORKORDER_INDEX', // 工单
ENTERPRISE_LEAVEMESSAGE_INDEX = 'ENTERPRISE_LEAVEMESSAGE_INDEX', // 留言
ENTERPRISE_ADMIN_INDEX = 'ENTERPRISE_ADMIN_INDEX', // 管理员 - 组织管理设置
ENTERPRISE_USERS_INDEX = 'ENTERPRISE_USERS_INDEX', // 账号管理
ENTERPRISE_ROLES_INDEX = 'ENTERPRISE_ROLES_INDEX', // 角色管理
// 系统设置模块
SYSTEM_INDEX = 'SYSTEM_INDEX',
SYSTEM_INFO_INDEX = 'SYSTEM_INFO_INDEX', // 系统信息
Expand Down
Original file line number Diff line number Diff line change
@@ -1,120 +1,8 @@
<script setup lang="ts">
import { MenusLayout } from '@cskefu/shared-ui'
import { NMenu } from 'naive-ui'
import { MenuOption, NMenu } from 'naive-ui'
const menuOptions = [
{
label: '且听风吟',
key: 'hear-the-wind-sing',
href: 'https://baike.baidu.com/item/%E4%B8%94%E5%90%AC%E9%A3%8E%E5%90%9F/3199',
},
{
label: '1973年的弹珠玩具',
key: 'pinball-1973',
children: [
{
label: '',
key: 'rat',
},
],
},
{
label: '寻羊冒险记',
key: 'a-wild-sheep-chase',
},
{
label: '舞,舞,舞',
key: 'dance-dance-dance',
children: [
{
type: 'group',
label: '人物',
key: 'people',
children: [
{
label: '叙事者',
key: 'narrator',
},
{
label: '羊男',
key: 'sheep-man',
},
],
},
{
label: '饮品',
key: 'beverage',
children: [
{
label: '威士忌',
key: 'whisky',
href: 'https://baike.baidu.com/item/%E5%A8%81%E5%A3%AB%E5%BF%8C%E9%85%92/2959816?fromtitle=%E5%A8%81%E5%A3%AB%E5%BF%8C&fromid=573&fr=aladdin',
},
],
},
{
label: '食物',
key: 'food',
children: [
{
label: '三明治',
key: 'sandwich',
},
],
},
{
label: '过去增多,未来减少',
key: 'the-past-increases-the-future-recedes',
},
],
},
{
label: '舞,舞,舞',
key: 'dance-dance-dance',
children: [
{
type: 'group',
label: '人物',
key: 'people',
children: [
{
label: '叙事者',
key: 'narrator',
},
{
label: '羊男',
key: 'sheep-man',
},
],
},
{
label: '饮品',
key: 'beverage',
children: [
{
label: '威士忌',
key: 'whisky',
href: 'https://baike.baidu.com/item/%E5%A8%81%E5%A3%AB%E5%BF%8C%E9%85%92/2959816?fromtitle=%E5%A8%81%E5%A3%AB%E5%BF%8C&fromid=573&fr=aladdin',
},
],
},
{
label: '食物',
key: 'food',
children: [
{
label: '三明治',
key: 'sandwich',
},
],
},
{
label: '过去增多,未来减少',
key: 'the-past-increases-the-future-recedes',
},
],
},
]
const menuOptions: MenuOption[] = []
</script>
<template>
<MenusLayout>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,116 +1,60 @@
<script setup lang="ts">
import { ROUTE_NAME } from '@cskefu/models'
import { MenusLayout } from '@cskefu/shared-ui'
import { NMenu } from 'naive-ui'
import { MenuOption, NMenu } from 'naive-ui'
const menuOptions = [
const menuOptions: MenuOption[] = [
{
label: '且听风吟',
key: 'hear-the-wind-sing',
href: 'https://baike.baidu.com/item/%E4%B8%94%E5%90%AC%E9%A3%8E%E5%90%9F/3199',
label: '企业服务',
key: ROUTE_NAME.ENTERPRISE_INDEX,
},
{
label: '1973年的弹珠玩具',
key: 'pinball-1973',
children: [
{
label: '',
key: 'rat',
},
],
label: '客服设置',
key: ROUTE_NAME.ENTERPRISE_KEFU_INDEX,
},
{
label: '寻羊冒险记',
key: 'a-wild-sheep-chase',
label: '渠道接入',
key: ROUTE_NAME.ENTERPRISE_CHANNEL_INDEX,
},
{
label: '舞,舞,舞',
key: 'dance-dance-dance',
label: '知识库',
key: ROUTE_NAME.ENTERPRISE_KNOWLEDGE_INDEX,
},
{
label: '账号管理',
children: [
{
type: 'group',
label: '人物',
key: 'people',
children: [
{
label: '叙事者',
key: 'narrator',
},
{
label: '羊男',
key: 'sheep-man',
},
],
},
{
label: '饮品',
key: 'beverage',
children: [
{
label: '威士忌',
key: 'whisky',
href: 'https://baike.baidu.com/item/%E5%A8%81%E5%A3%AB%E5%BF%8C%E9%85%92/2959816?fromtitle=%E5%A8%81%E5%A3%AB%E5%BF%8C&fromid=573&fr=aladdin',
},
],
label: '账号管理',
key: ROUTE_NAME.ENTERPRISE_USERS_INDEX,
},
{
label: '食物',
key: 'food',
children: [
{
label: '三明治',
key: 'sandwich',
},
],
label: '角色管理',
key: ROUTE_NAME.ENTERPRISE_ROLES_INDEX,
},
{
label: '过去增多,未来减少',
key: 'the-past-increases-the-future-recedes',
label: '组织架构',
key: ROUTE_NAME.ENTERPRISE_ROLES_INDEX,
},
],
},
{
label: '舞,舞,舞',
key: 'dance-dance-dance',
label: '功能设置',
children: [
{
type: 'group',
label: '人物',
key: 'people',
children: [
{
label: '叙事者',
key: 'narrator',
},
{
label: '羊男',
key: 'sheep-man',
},
],
label: '对话设置',
key: ROUTE_NAME.ENTERPRISE_CHANNEL_INDEX,
},
{
label: '饮品',
key: 'beverage',
children: [
{
label: '威士忌',
key: 'whisky',
href: 'https://baike.baidu.com/item/%E5%A8%81%E5%A3%AB%E5%BF%8C%E9%85%92/2959816?fromtitle=%E5%A8%81%E5%A3%AB%E5%BF%8C&fromid=573&fr=aladdin',
},
],
label: '客户设置',
key: ROUTE_NAME.ENTERPRISE_CHANNEL_INDEX,
},
{
label: '食物',
key: 'food',
children: [
{
label: '三明治',
key: 'sandwich',
},
],
label: '工单设置',
key: ROUTE_NAME.ENTERPRISE_CHANNEL_INDEX,
},
{
label: '过去增多,未来减少',
key: 'the-past-increases-the-future-recedes',
label: '留言设置',
key: ROUTE_NAME.ENTERPRISE_CHANNEL_INDEX,
},
],
},
Expand Down
Loading

0 comments on commit cab7946

Please sign in to comment.