[ '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 ]);