| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <?php
- /**
- * Author: 芸众商城 www.yunzshop.com
- * Date: 2018/12/6
- * Time: 11:35 AM
- */
- $printer_menu = [
- 'hotel_more_printer_list' => [
- 'name' => '打印机管理',
- 'url' => 'plugin.hotel.hotel.modules.moreprinter.printer.list.index',
- 'url_params' => '',
- 'permit' => 0,
- 'menu' => 1,
- 'icon' => 'fa-list',
- 'item' => 'hotel_more_printer_list',
- 'parents' => ['hotel_more_printer'],
- 'child' => [
- 'hotel_more_printer_add' => [
- 'name' => '添加',
- 'url' => 'plugin.hotel.hotel.modules.moreprinter.printer.operation.add',
- 'url_params' => '',
- 'permit' => 0,
- 'menu' => 0,
- 'icon' => '',
- 'item' => 'hotel_more_printer_add',
- 'parents' => ['hotel_more_printer', 'hotel_more_printer_list'],
- ],
- 'hotel_more_printer_edit' => [
- 'name' => '修改',
- 'url' => 'plugin.hotel.hotel.modules.moreprinter.printer.operation.edit',
- 'url_params' => '',
- 'permit' => 0,
- 'menu' => 0,
- 'icon' => '',
- 'item' => 'hotel_more_printer_edit',
- 'parents' => ['hotel_more_printer', 'hotel_more_printer_list'],
- ]
- ]
- ],
- 'hotel_more_temp_list' => [
- 'name' => '模板库管理',
- 'url' => 'plugin.hotel.hotel.modules.moreprinter.temp.list.index',
- 'url_params' => '',
- 'permit' => 0,
- 'menu' => 1,
- 'icon' => 'fa-list',
- 'item' => 'hotel_more_temp_list',
- 'parents' => ['hotel_more_printer'],
- 'child' => [
- 'hotel_more_temp_list_add' => [
- 'name' => '添加',
- 'url' => 'plugin.hotel.hotel.modules.moreprinter.temp.operation.add',
- 'url_params' => '',
- 'permit' => 0,
- 'menu' => 0,
- 'icon' => 'fa-clipboard',
- 'item' => 'hotel_more_temp_list_add',
- 'parents' => ['hotel_more_printer', 'hotel_more_temp_list'],
- ],
- 'hotel_more_temp_list_edit' => [
- 'name' => '修改',
- 'url' => 'plugin.hotel.hotel.modules.moreprinter.temp.operation.edit',
- 'url_params' => '',
- 'permit' => 0,
- 'menu' => 0,
- 'icon' => 'fa-clipboard',
- 'item' => 'hotel_more_temp_list_edit',
- 'parents' => ['hotel_more_printer', 'hotel_more_temp_list'],
- ],
- 'hotel_more_temp_list_temp' => [
- 'name' => '添加建',
- 'url' => 'plugin.more-printer.admin.temp.operation.tpl',
- 'url_params' => '',
- 'permit' => 0,
- 'menu' => 0,
- 'icon' => '',
- 'item' => 'hotel_more_temp_list_temp',
- 'parents' => ['hotel_more_printer', 'hotel_more_temp_list'],
- ]
- ]
- ],
- 'hotel_more_printer_set' => [
- 'name' => '打印机设置',
- 'url' => 'plugin.hotel.hotel.modules.moreprinter.set.index.index',
- 'url_params' => '',
- 'permit' => 0,
- 'menu' => 1,
- 'icon' => 'fa-cogs',
- 'item' => 'hotel_more_printer_set',
- 'parents' => ['hotel_more_printer'],
- 'child' => [
- 'hotel_more_printer_set_sub' => [
- 'name' => '提交',
- 'url' => 'plugin.hotel.hotel.modules.moreprinter.set.sub.index',
- 'url_params' => '',
- 'permit' => 0,
- 'menu' => 0,
- 'icon' => '',
- 'item' => 'hotel_more_printer_set_sub',
- 'parents' => ['hotel_more_printer', 'hotel_more_printer_set'],
- ]
- ]
- ]
- ];
- \app\backend\modules\menu\Menu::current()->setPluginMenu('hotel_more_printer', [
- 'name' => '多打印机',
- 'type' => 'tool',
- 'url' => 'plugin.hotel.hotel.modules.moreprinter.printer.list.index',// url 可以填写http 也可以直接写路由
- 'urlParams' => '',//如果是url填写的是路由则启用参数否则不启用
- 'permit' => 0,//如果不设置则不会做权限检测
- 'menu' => 1,//如果不设置则不显示菜单,子菜单也将不显示
- 'top_show' => 1,
- 'left_first_show' => 0,
- 'left_second_show' => 1,
- 'icon' => 'fa-print',//菜单图标
- 'list_icon' => 'printer',
- 'parents' => [],
- 'child' => $printer_menu
- ]);
|