| | |
| | | console: '/dashboard/console', |
| | | user: '/system/user', |
| | | role: '/system/role', |
| | | aiParam: '/system/ai-param', |
| | | aiPrompt: '/system/ai-prompt', |
| | | aiCallLog: '/system/ai-observe', |
| | | aiMcpMount: '/system/ai-mcp-mount', |
| | | dept: '/system/dept', |
| | | tenant: '/system/tenant', |
| | | host: '/system/host', |
| | | menu: '/system/menu', |
| | | config: '/system/config', |
| | | dictType: '/system/dict-type', |
| | | fields: '/system/fields', |
| | | fieldsItem: '/system/fields-item', |
| | | whMat: '/basic-info/wh-mat', |
| | | matnr: '/basic-info/wh-mat', |
| | | matnrGroup: '/basic-info/matnr-group', |
| | | locType: '/basic-info/loc-type', |
| | | taskPathTemplate: '/basic-info/task-path-template', |
| | | taskPathTemplateMerge: '/basic-info/task-path-template-merge', |
| | | taskPathTemplateNode: '/basic-info/task-path-template-node', |
| | | basContainer: '/basic-info/bas-container', |
| | | container: '/basic-info/bas-container', |
| | | contract: '/basic-info/contract', |
| | | basStation: '/basic-info/bas-station', |
| | | basStationArea: '/basic-info/bas-station-area', |
| | | deviceSite: '/basic-info/device-site', |
| | | deviceBind: '/basic-info/device-bind', |
| | | companys: '/basic-info/companys', |
| | | warehouse: '/basic-info/warehouse', |
| | | warehouseAreas: '/basic-info/warehouse-areas', |
| | | loc: '/basic-info/loc', |
| | | locArea: '/basic-info/loc-area', |
| | | locAreaMat: '/basic-info/loc-area-mat', |
| | | locAreaMatRela: '/basic-info/loc-area-mat-rela', |
| | | locAreaRela: '/basic-info/loc-area-rela', |
| | | asnOrder: '/orders/asn-order', |
| | | asnOrderItem: '/orders/asn-order-item', |
| | | asnOrderLog: '/orders/asn-order-log', |
| | | purchase: '/orders/purchase', |
| | | purchaseItem: '/orders/purchase-item', |
| | | qlyIsptItem: '/manager/qly-ispt-item', |
| | | waitPakin: '/orders/wait-pakin', |
| | | waitPakinItem: '/orders/wait-pakin-item', |
| | | waitPakinLog: '/orders/wait-pakin-log', |
| | | waitPakinItemLog: '/orders/wait-pakin-item-log', |
| | | delivery: '/orders/delivery', |
| | | deliveryItem: '/orders/delivery-item', |
| | | outStock: '/orders/out-stock', |
| | | outStockItem: '/orders/out-stock-item', |
| | | check: '/orders/check', |
| | | checkItem: '/orders/check-item', |
| | | checkDiff: '/orders/check-diff', |
| | | checkDiffItem: '/orders/check-diff-item', |
| | | preparation: '/orders/preparation', |
| | | abnormal: '/abnormal', |
| | | warehouseStock: '/stock/warehouse-stock', |
| | | locItem: '/manager/loc-item', |
| | | warehouseAreasItem: '/stock/warehouse-areas-item', |
| | | qlyInspect: '/manager/qly-inspect', |
| | | locRevise: '/manager/loc-revise', |
| | | reviseLog: '/manager/revise-log', |
| | | reviseLogItem: '/manager/revise-log-item', |
| | | freeze: '/manager/freeze', |
| | | stock: '/manager/stock', |
| | | task: '/manager/task', |
| | | taskItem: '/manager/task-item', |
| | | taskLog: '/manager/task-log', |
| | | taskItemLog: '/manager/task-item-log', |
| | | locPreview: '/manager/loc-preview', |
| | | locDeadReport: '/manager/loc-dead-report', |
| | | checkOutBound: '/work/check-out-bound', |
| | | outBound: '/work/out-bound', |
| | | wave: '/orders/wave', |
| | | waveItem: '/orders/wave-item', |
| | | transfer: '/orders/transfer', |
| | | transferItem: '/orders/transfer-item', |
| | | statisticCount: '/reports/statistic-count', |
| | | inStatistic: '/statistics/in-statistic', |
| | | inStatisticItem: '/statistics/in-statistic-item', |
| | | outStatistic: '/statistics/out-statistic', |
| | | outStatisticItem: '/statistics/out-statistic-item', |
| | | stockTransfer: '/stock/stock-transfer', |
| | | waveRule: '/manager/wave-rule', |
| | | menuPda: '/manager/menu-pda', |
| | | stockItem: '/manager/stock-item', |
| | | serialRule: '/system/serial-rule', |
| | | serialRuleItem: '/system/serial-rule-item', |
| | | operationRecord: '/system/operation-record', |
| | | flowInstance: '/system/flow-instance', |
| | | flowStepInstance: '/system/flow-step-instance', |
| | | flowStepTemplate: '/system/flow-step-template', |
| | | subsystemFlowTemplate: '/system/subsystem-flow-template', |
| | | flowStepLog: '/system/flow-step-log', |
| | | taskInstance: '/system/task-instance', |
| | | taskInstanceNode: '/system/task-instance-node', |
| | | userLogin: '/system/user-login' |
| | | } |
| | | |
| | |
| | | return '' |
| | | } |
| | | |
| | | if (hasChildren && normalizedKey && !PHASE_1_COMPONENTS[normalizedKey]) { |
| | | return '' |
| | | } |
| | | |
| | | if (!normalizedKey) { |
| | | return normalizeComponentPath(fullRoutePath) |
| | | } |
| | |
| | | |
| | | function buildMeta(node) { |
| | | const meta = { |
| | | title: normalizeTitle(node.name || node.meta?.title || '') |
| | | title: normalizeTitle(node.name || node.meta?.title || '', node.component) |
| | | } |
| | | const metaSource = node.meta && typeof node.meta === 'object' ? node.meta : node |
| | | const supportedKeys = [ |
| | |
| | | return meta |
| | | } |
| | | |
| | | function normalizeTitle(title) { |
| | | function normalizeTitle(title, componentKey) { |
| | | if (typeof title !== 'string') { |
| | | return '' |
| | | return resolveBackendMenuTitle('', componentKey) |
| | | } |
| | | return resolveBackendMenuTitle(title) |
| | | return resolveBackendMenuTitle(title, componentKey) |
| | | } |
| | | |
| | | function normalizeIcon(icon) { |