Эх сурвалжийг харах

fix: 设备补货单 icon 置空,与其他二级菜单保持一致

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
skyline 1 долоо хоног өмнө
parent
commit
615200b982

+ 5 - 1
docs/database/migrate_replenishment_to_inventory.sql

@@ -8,7 +8,8 @@ DELETE FROM t_role_menu WHERE id IN (91001, 91002, 91003);
 
 -- 2. 写入菜单
 INSERT INTO t_menu (id, parent_id, menu_type, title, name, path, component, `rank`, icon, show_link, show_parent, `redirect`, keep_alive)
-VALUES (505, 500, 0, '设备补货单', 'ReplenishmentOrder', '/inventory/replenishment-order', '', 4, 'ep:shopping-cart', 1, 0, '/inventory/replenishment-order/list', 1);
+VALUES (505, 500, 0, '设备补货单', 'ReplenishmentOrder', '/inventory/replenishment-order', '', 4, '', 1, 0, '/inventory/replenishment-order/list', 1)
+ON DUPLICATE KEY UPDATE icon = '';
 
 INSERT INTO t_menu (id, parent_id, menu_type, title, name, path, component, `rank`, show_link, show_parent)
 VALUES
@@ -21,3 +22,6 @@ VALUES
 (91001, 1, 505, NOW()),
 (91002, 1, 506, NOW()),
 (91003, 1, 507, NOW());
+
+-- 4. 如果菜单已存在,单独修正 icon 为空
+UPDATE t_menu SET icon = '' WHERE id = 505;

+ 1 - 1
docs/database/seed_menu.sql

@@ -69,7 +69,7 @@ INSERT INTO t_menu (id, parent_id, menu_type, title, name, path, component, `ran
 (503, 500, 0, '上货记录', 'StockRecords', '/inventory/records', '', 3, 1, 0);
 
 INSERT INTO t_menu (id, parent_id, menu_type, title, name, path, component, `rank`, icon, show_link, show_parent, `redirect`, keep_alive) VALUES
-(505, 500, 0, '设备补货单', 'ReplenishmentOrder', '/inventory/replenishment-order', '', 4, 'ep:shopping-cart', 1, 0, '/inventory/replenishment-order/list', 1);
+(505, 500, 0, '设备补货单', 'ReplenishmentOrder', '/inventory/replenishment-order', '', 4, '', 1, 0, '/inventory/replenishment-order/list', 1);
 
 INSERT INTO t_menu (id, parent_id, menu_type, title, name, path, component, `rank`, show_link, show_parent) VALUES
 (506, 505, 0, '补货单列表', 'ReplenishmentOrderList', '/inventory/replenishment-order/list', 'replenishment-order/index', 1, 1, 0);