|
@@ -18,92 +18,97 @@ watch(
|
|
|
}
|
|
}
|
|
|
)
|
|
)
|
|
|
const getMenuList = () => {
|
|
const getMenuList = () => {
|
|
|
- $api.getMenuList().then((res) => {
|
|
|
|
|
- if (res.code === 200) {
|
|
|
|
|
- menuList.value = res.data
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- // menuList.value = [
|
|
|
|
|
- // {
|
|
|
|
|
- // index: '1',
|
|
|
|
|
- // label: 'Dashboard',
|
|
|
|
|
- // icon: 'icon_data_fill_b',
|
|
|
|
|
- // path: '/dashboard'
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // index: '2',
|
|
|
|
|
- // label: 'Booking',
|
|
|
|
|
- // icon: 'icon_booking__fill_b',
|
|
|
|
|
- // type: 'list',
|
|
|
|
|
- // children: [
|
|
|
|
|
- // {
|
|
|
|
|
- // index: '2-1',
|
|
|
|
|
- // label: 'Booking Management',
|
|
|
|
|
- // path: '/booking'
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // index: '2-2',
|
|
|
|
|
- // label: 'Destination Delivery',
|
|
|
|
|
- // path: '/destination-delivery'
|
|
|
|
|
- // }
|
|
|
|
|
- // ]
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // index: '3',
|
|
|
|
|
- // label: 'Tracking',
|
|
|
|
|
- // icon: 'icon_tracking__fill_b',
|
|
|
|
|
- // path: '/tracking'
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // index: '4',
|
|
|
|
|
- // label: 'Report',
|
|
|
|
|
- // icon: 'icon_report__fill_b',
|
|
|
|
|
- // path: '/report'
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // index: '5',
|
|
|
|
|
- // label: 'System Management',
|
|
|
|
|
- // icon: 'icon_system__management_fill_b',
|
|
|
|
|
- // type: 'list',
|
|
|
|
|
- // children: [
|
|
|
|
|
- // {
|
|
|
|
|
- // index: '5-7',
|
|
|
|
|
- // label: 'Template Management',
|
|
|
|
|
- // path: '/template-management'
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // index: '5-1',
|
|
|
|
|
- // label: 'System Message',
|
|
|
|
|
- // path: '/system-message'
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // index: '5-2',
|
|
|
|
|
- // label: 'System Settings',
|
|
|
|
|
- // path: '/system-settings'
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // index: '5-3',
|
|
|
|
|
- // label: 'Chat Log',
|
|
|
|
|
- // path: '/chat-log'
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // index: '5-4',
|
|
|
|
|
- // label: 'AI API Log',
|
|
|
|
|
- // path: '/ai-api-log'
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // index: '5-5',
|
|
|
|
|
- // label: 'Operation Log',
|
|
|
|
|
- // path: '/operation-log'
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // index: '5-6',
|
|
|
|
|
- // label: 'Prompt Configuration',
|
|
|
|
|
- // path: '/prompt-configuration'
|
|
|
|
|
- // }
|
|
|
|
|
- // ]
|
|
|
|
|
|
|
+ // $api.getMenuList().then((res) => {
|
|
|
|
|
+ // if (res.code === 200) {
|
|
|
|
|
+ // menuList.value = res.data
|
|
|
// }
|
|
// }
|
|
|
- // ]
|
|
|
|
|
|
|
+ // })
|
|
|
|
|
+ menuList.value = [
|
|
|
|
|
+ {
|
|
|
|
|
+ index: '1',
|
|
|
|
|
+ label: 'Dashboard',
|
|
|
|
|
+ icon: 'icon_data_fill_b',
|
|
|
|
|
+ path: '/dashboard'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ index: '2',
|
|
|
|
|
+ label: 'Booking',
|
|
|
|
|
+ icon: 'icon_booking__fill_b',
|
|
|
|
|
+ type: 'list',
|
|
|
|
|
+ children: [
|
|
|
|
|
+ {
|
|
|
|
|
+ index: '2-1',
|
|
|
|
|
+ label: 'Booking Management',
|
|
|
|
|
+ path: '/booking'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ index: '2-2',
|
|
|
|
|
+ label: 'Destination Delivery',
|
|
|
|
|
+ path: '/destination-delivery'
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ index: '3',
|
|
|
|
|
+ label: 'Tracking',
|
|
|
|
|
+ icon: 'icon_tracking__fill_b',
|
|
|
|
|
+ path: '/tracking'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ index: '4',
|
|
|
|
|
+ label: 'Report',
|
|
|
|
|
+ icon: 'icon_report__fill_b',
|
|
|
|
|
+ path: '/report'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ index: '5',
|
|
|
|
|
+ label: 'System Management',
|
|
|
|
|
+ icon: 'icon_system__management_fill_b',
|
|
|
|
|
+ type: 'list',
|
|
|
|
|
+ children: [
|
|
|
|
|
+ {
|
|
|
|
|
+ index: '5-7',
|
|
|
|
|
+ label: 'Template Management',
|
|
|
|
|
+ path: '/template-management'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ index: '5-1',
|
|
|
|
|
+ label: 'System Message',
|
|
|
|
|
+ path: '/system-message'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ index: '5-2',
|
|
|
|
|
+ label: 'System Settings',
|
|
|
|
|
+ path: '/system-settings'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ index: '5-3',
|
|
|
|
|
+ label: 'Multilingual Config',
|
|
|
|
|
+ path: '/multilingual-config'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ index: '5-4',
|
|
|
|
|
+ label: 'Chat Log',
|
|
|
|
|
+ path: '/chat-log'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ index: '5-5',
|
|
|
|
|
+ label: 'AI API Log',
|
|
|
|
|
+ path: '/ai-api-log'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ index: '5-6',
|
|
|
|
|
+ label: 'Operation Log',
|
|
|
|
|
+ path: '/operation-log'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ index: '5-7',
|
|
|
|
|
+ label: 'Prompt Configuration',
|
|
|
|
|
+ path: '/prompt-configuration'
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
}
|
|
}
|
|
|
getMenuList()
|
|
getMenuList()
|
|
|
//监听窗口大小
|
|
//监听窗口大小
|