-- 补回「报价模板」菜单(页面 mock,暂不接主账接口) -- 库:inquiry_robot SET NAMES utf8mb4; INSERT IGNORE INTO `sys_permission` (`id`,`parent_id`,`name`,`url`,`component`,`is_route`,`menu_type`,`perms_type`,`sort_no`,`always_show`,`icon`,`is_leaf`,`keep_alive`,`hidden`,`hide_tab`,`create_by`,`create_time`,`del_flag`,`rule_flag`,`status`,`internal_or_external`) VALUES ('b1000000000000000000000000000006','b1000000000000000000000000000001','报价模板','/inquiry/template','inquiry/template/index',1,1,'1',4,0,'ant-design:file-excel-outlined',1,0,0,0,'admin',NOW(),0,0,'1',0); UPDATE `sys_permission` SET `sort_no`=5, `del_flag`=0 WHERE `id`='b1000000000000000000000000000005'; UPDATE `sys_permission` SET `del_flag`=0, `url`='/inquiry/template', `component`='inquiry/template/index', `is_route`=1, `is_leaf`=1, `menu_type`=1, `status`='1' WHERE `id`='b1000000000000000000000000000006'; INSERT IGNORE INTO `sys_permission` (`id`,`parent_id`,`name`,`is_route`,`menu_type`,`perms`,`perms_type`,`sort_no`,`always_show`,`is_leaf`,`keep_alive`,`hidden`,`hide_tab`,`create_by`,`create_time`,`del_flag`,`rule_flag`,`status`,`internal_or_external`) VALUES ('b1000000000000000000000000000061','b1000000000000000000000000000006','模板查看',0,2,'inquiry:template:view','1',1,0,1,0,0,0,'admin',NOW(),0,0,'1',0), ('b1000000000000000000000000000062','b1000000000000000000000000000006','模板上传',0,2,'inquiry:template:upload','1',2,0,1,0,0,0,'admin',NOW(),0,0,'1',0), ('b1000000000000000000000000000063','b1000000000000000000000000000006','模板编辑',0,2,'inquiry:template:edit','1',3,0,1,0,0,0,'admin',NOW(),0,0,'1',0), ('b1000000000000000000000000000064','b1000000000000000000000000000006','模板启停',0,2,'inquiry:template:toggle','1',4,0,1,0,0,0,'admin',NOW(),0,0,'1',0); INSERT IGNORE INTO `sys_role_permission` (`id`,`role_id`,`permission_id`) SELECT MD5(CONCAT('ytd-inq:',r.`id`,':',p.`id`)),r.`id`,p.`id` FROM `sys_role` r JOIN `sys_permission` p ON p.`id` IN ( 'b1000000000000000000000000000006', 'b1000000000000000000000000000061', 'b1000000000000000000000000000062', 'b1000000000000000000000000000063', 'b1000000000000000000000000000064' ) WHERE r.`role_code`='admin';