mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-14 03:52:07 +08:00
demo
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
# antd-demo
|
||||
|
||||
## Project setup
|
||||
```
|
||||
npm install
|
||||
```
|
||||
|
||||
### Compiles and hot-reloads for development
|
||||
```
|
||||
npm run serve
|
||||
```
|
||||
|
||||
### Compiles and minifies for production
|
||||
```
|
||||
npm run build
|
||||
```
|
||||
|
||||
### Lints and fixes files
|
||||
```
|
||||
npm run lint
|
||||
```
|
||||
|
||||
### Customize configuration
|
||||
See [Configuration Reference](https://cli.vuejs.org/config/).
|
||||
@@ -129,16 +129,16 @@ export const constantRouterMap = [
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/special',
|
||||
component: RouteView,
|
||||
//redirect: '/special/subwindow',
|
||||
children: [
|
||||
{
|
||||
path: 'subwindow',
|
||||
name: 'SpecialSubwindowIpc',
|
||||
component: () => import('@/views/base/subwindow/Ipc')
|
||||
}
|
||||
]
|
||||
},
|
||||
// {
|
||||
// path: '/special',
|
||||
// component: RouteView,
|
||||
// //redirect: '/special/subwindow',
|
||||
// children: [
|
||||
// {
|
||||
// path: 'subwindow',
|
||||
// name: 'SpecialSubwindowIpc',
|
||||
// component: () => import('@/views/base/subwindow/Ipc')
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
]
|
||||
|
||||
@@ -2,116 +2,239 @@
|
||||
* 子菜单
|
||||
*/
|
||||
export default {
|
||||
base: {
|
||||
// base: {
|
||||
// 'menu_100' : {
|
||||
// icon: 'profile',
|
||||
// title: '文件',
|
||||
// pageName: 'BaseFileIndex',
|
||||
// params: {}
|
||||
// },
|
||||
// 'menu_300' : {
|
||||
// icon: 'profile',
|
||||
// title: '通信',
|
||||
// pageName: 'BaseSocketIpc',
|
||||
// params: {}
|
||||
// },
|
||||
// 'menu_301' : {
|
||||
// icon: 'profile',
|
||||
// title: 'http服务',
|
||||
// pageName: 'BaseSocketHttpServer',
|
||||
// params: {}
|
||||
// },
|
||||
// 'menu_302' : {
|
||||
// icon: 'profile',
|
||||
// title: 'socket服务',
|
||||
// pageName: 'BaseSocketSocketServer',
|
||||
// params: {}
|
||||
// },
|
||||
// 'menu_310' : {
|
||||
// icon: 'profile',
|
||||
// title: 'json数据库',
|
||||
// pageName: 'BaseDBIndex',
|
||||
// params: {}
|
||||
// },
|
||||
// 'menu_320' : {
|
||||
// icon: 'profile',
|
||||
// title: 'sqlite数据库',
|
||||
// pageName: 'BaseSqliteDBIndex',
|
||||
// params: {}
|
||||
// },
|
||||
// 'menu_330' : {
|
||||
// icon: 'profile',
|
||||
// title: '任务',
|
||||
// pageName: 'BaseJobsIndex',
|
||||
// params: {}
|
||||
// },
|
||||
// 'menu_400' : {
|
||||
// icon: 'profile',
|
||||
// title: '视图',
|
||||
// pageName: 'BaseWindowViewIndex',
|
||||
// params: {}
|
||||
// },
|
||||
// 'menu_401' : {
|
||||
// icon: 'profile',
|
||||
// title: '窗口',
|
||||
// pageName: 'BaseWindowIndex',
|
||||
// params: {}
|
||||
// },
|
||||
// 'menu_405' : {
|
||||
// icon: 'profile',
|
||||
// title: '桌面通知',
|
||||
// pageName: 'BaseNotificationIndex',
|
||||
// params: {}
|
||||
// },
|
||||
// 'menu_407' : {
|
||||
// icon: 'profile',
|
||||
// title: '电源监控',
|
||||
// pageName: 'BasePowerMonitorIndex',
|
||||
// params: {}
|
||||
// },
|
||||
// 'menu_409' : {
|
||||
// icon: 'profile',
|
||||
// title: '屏幕信息',
|
||||
// pageName: 'BaseScreenIndex',
|
||||
// params: {}
|
||||
// },
|
||||
// 'menu_411' : {
|
||||
// icon: 'profile',
|
||||
// title: '系统主题',
|
||||
// pageName: 'BaseThemeIndex',
|
||||
// params: {}
|
||||
// },
|
||||
// 'menu_412' : {
|
||||
// icon: 'profile',
|
||||
// title: '自动更新',
|
||||
// pageName: 'BaseUpdaterIndex',
|
||||
// params: {}
|
||||
// },
|
||||
// 'menu_500' : {
|
||||
// icon: 'profile',
|
||||
// title: '软件调用',
|
||||
// pageName: 'BaseSoftwareIndex',
|
||||
// params: {}
|
||||
// },
|
||||
// 'menu_900' : {
|
||||
// icon: 'profile',
|
||||
// title: '测试',
|
||||
// pageName: 'BaseTestApiIndex',
|
||||
// params: {}
|
||||
// }
|
||||
// },
|
||||
// other: {
|
||||
// 'menu_100' : {
|
||||
// icon: 'profile',
|
||||
// title: '测试',
|
||||
// pageName: 'OtherTestIndex',
|
||||
// params: {}
|
||||
// },
|
||||
// 'menu_200' : {
|
||||
// icon: 'profile',
|
||||
// title: 'java',
|
||||
// pageName: 'OtherJavaIndex',
|
||||
// params: {}
|
||||
// },
|
||||
// },
|
||||
framework: {
|
||||
'menu_100' : {
|
||||
icon: 'profile',
|
||||
title: '文件',
|
||||
pageName: 'BaseFileIndex',
|
||||
params: {}
|
||||
},
|
||||
'menu_300' : {
|
||||
icon: 'profile',
|
||||
title: '通信',
|
||||
pageName: 'BaseSocketIpc',
|
||||
params: {}
|
||||
},
|
||||
'menu_301' : {
|
||||
'menu_101' : {
|
||||
icon: 'profile',
|
||||
title: 'http服务',
|
||||
pageName: 'BaseSocketHttpServer',
|
||||
params: {}
|
||||
},
|
||||
'menu_302' : {
|
||||
'menu_102' : {
|
||||
icon: 'profile',
|
||||
title: 'socket服务',
|
||||
pageName: 'BaseSocketSocketServer',
|
||||
params: {}
|
||||
},
|
||||
'menu_310' : {
|
||||
'menu_103' : {
|
||||
icon: 'profile',
|
||||
title: 'json数据库',
|
||||
pageName: 'BaseDBIndex',
|
||||
params: {}
|
||||
},
|
||||
'menu_320' : {
|
||||
'menu_104' : {
|
||||
icon: 'profile',
|
||||
title: 'sqlite数据库',
|
||||
pageName: 'BaseSqliteDBIndex',
|
||||
params: {}
|
||||
},
|
||||
'menu_330' : {
|
||||
'menu_105' : {
|
||||
icon: 'profile',
|
||||
title: '任务',
|
||||
pageName: 'BaseJobsIndex',
|
||||
params: {}
|
||||
},
|
||||
'menu_400' : {
|
||||
icon: 'profile',
|
||||
title: '视图',
|
||||
pageName: 'BaseWindowViewIndex',
|
||||
params: {}
|
||||
},
|
||||
'menu_401' : {
|
||||
icon: 'profile',
|
||||
title: '窗口',
|
||||
pageName: 'BaseWindowIndex',
|
||||
params: {}
|
||||
},
|
||||
'menu_405' : {
|
||||
icon: 'profile',
|
||||
title: '桌面通知',
|
||||
pageName: 'BaseNotificationIndex',
|
||||
params: {}
|
||||
},
|
||||
'menu_407' : {
|
||||
icon: 'profile',
|
||||
title: '电源监控',
|
||||
pageName: 'BasePowerMonitorIndex',
|
||||
params: {}
|
||||
},
|
||||
'menu_409' : {
|
||||
icon: 'profile',
|
||||
title: '屏幕信息',
|
||||
pageName: 'BaseScreenIndex',
|
||||
params: {}
|
||||
},
|
||||
'menu_411' : {
|
||||
icon: 'profile',
|
||||
title: '系统主题',
|
||||
pageName: 'BaseThemeIndex',
|
||||
params: {}
|
||||
},
|
||||
'menu_412' : {
|
||||
|
||||
'menu_106' : {
|
||||
icon: 'profile',
|
||||
title: '自动更新',
|
||||
pageName: 'BaseUpdaterIndex',
|
||||
params: {}
|
||||
},
|
||||
'menu_500' : {
|
||||
'menu_107' : {
|
||||
icon: 'profile',
|
||||
title: '软件调用',
|
||||
pageName: 'BaseSoftwareIndex',
|
||||
params: {}
|
||||
},
|
||||
'menu_900' : {
|
||||
icon: 'profile',
|
||||
title: '测试',
|
||||
pageName: 'BaseTestApiIndex',
|
||||
params: {}
|
||||
}
|
||||
},
|
||||
other: {
|
||||
'menu_100' : {
|
||||
icon: 'profile',
|
||||
title: '测试',
|
||||
pageName: 'OtherTestIndex',
|
||||
params: {}
|
||||
},
|
||||
'menu_200' : {
|
||||
'menu_108' : {
|
||||
icon: 'profile',
|
||||
title: 'java',
|
||||
pageName: 'OtherJavaIndex',
|
||||
params: {}
|
||||
},
|
||||
}
|
||||
'menu_109' : {
|
||||
icon: 'profile',
|
||||
title: '测试',
|
||||
pageName: 'BaseTestApiIndex',
|
||||
params: {}
|
||||
},
|
||||
},
|
||||
os: {
|
||||
'menu_200' : {
|
||||
icon: 'profile',
|
||||
title: '文件',
|
||||
pageName: 'BaseFileIndex',
|
||||
params: {}
|
||||
},
|
||||
'menu_201' : {
|
||||
icon: 'profile',
|
||||
title: '视图',
|
||||
pageName: 'BaseWindowViewIndex',
|
||||
params: {}
|
||||
},
|
||||
'menu_202' : {
|
||||
icon: 'profile',
|
||||
title: '窗口',
|
||||
pageName: 'BaseWindowIndex',
|
||||
params: {}
|
||||
},
|
||||
'menu_203' : {
|
||||
icon: 'profile',
|
||||
title: '桌面通知',
|
||||
pageName: 'BaseNotificationIndex',
|
||||
params: {}
|
||||
},
|
||||
'menu_204' : {
|
||||
icon: 'profile',
|
||||
title: '电源监控',
|
||||
pageName: 'BasePowerMonitorIndex',
|
||||
params: {}
|
||||
},
|
||||
'menu_205' : {
|
||||
icon: 'profile',
|
||||
title: '屏幕信息',
|
||||
pageName: 'BaseScreenIndex',
|
||||
params: {}
|
||||
},
|
||||
'menu_206' : {
|
||||
icon: 'profile',
|
||||
title: '系统主题',
|
||||
pageName: 'BaseThemeIndex',
|
||||
params: {}
|
||||
},
|
||||
},
|
||||
hardware: {
|
||||
'menu_300' : {
|
||||
icon: 'profile',
|
||||
title: '打印机',
|
||||
pageName: 'HardwarePrinterIndex',
|
||||
params: {}
|
||||
}
|
||||
},
|
||||
effect: {
|
||||
'menu_400' : {
|
||||
icon: 'profile',
|
||||
title: '视频播放器',
|
||||
pageName: 'EffectVideoIndex',
|
||||
params: {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,15 +34,27 @@ export default {
|
||||
'menu_1' : {
|
||||
icon: 'home',
|
||||
title: '框架',
|
||||
pageName: 'Base',
|
||||
pageName: 'Framework',
|
||||
params: {},
|
||||
},
|
||||
'menu_2' : {
|
||||
icon: 'desktop',
|
||||
title: '其它',
|
||||
pageName: 'Other',
|
||||
title: '系统',
|
||||
pageName: 'Os',
|
||||
params: {},
|
||||
},
|
||||
},
|
||||
'menu_3' : {
|
||||
icon: 'control',
|
||||
title: '硬件',
|
||||
pageName: 'Hardware',
|
||||
params: {},
|
||||
},
|
||||
'menu_4' : {
|
||||
icon: 'bulb',
|
||||
title: '特效',
|
||||
pageName: 'Effect',
|
||||
params: {},
|
||||
},
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
@@ -49,15 +49,16 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
menuHandle () {
|
||||
this.current = this.default_key;
|
||||
switch (this.id) {
|
||||
case 'base' :
|
||||
this.menu = subMenu.base;
|
||||
break;
|
||||
case 'other' :
|
||||
this.menu = subMenu.other;
|
||||
break;
|
||||
}
|
||||
this.current = this.default_key;
|
||||
this.menu = subMenu[this.id];
|
||||
// switch (this.id) {
|
||||
// case 'base' :
|
||||
// this.menu = subMenu.base;
|
||||
// break;
|
||||
// case 'other' :
|
||||
// this.menu = subMenu.other;
|
||||
// break;
|
||||
// }
|
||||
const linkInfo = this.menu[this.current];
|
||||
this.$router.push({ name: linkInfo.pageName, params: linkInfo.params});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user