This commit is contained in:
zlwu committed 2026-08-11 11:13:01 +08:00
1 parent 80138c6388
commit 693e8a678e
682 files changed
+211375 -5306

No files matched your search

File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+181 -150
View File
@@ -1,11 +1,11 @@
# Graph Report - src (2026-08-06)
# Graph Report - src (2026-08-11)
## Corpus Check
- Large corpus: 961 files · ~626,790 words. Semantic extraction will be expensive (many Claude tokens). Consider running on a subfolder, or use --no-semantic to run AST-only.
- Large corpus: 967 files · ~631,785 words. Semantic extraction will be expensive (many Claude tokens). Consider running on a subfolder, or use --no-semantic to run AST-only.
## Summary
- 3371 nodes · 4776 edges · 66 communities detected
- Extraction: 78% EXTRACTED · 22% INFERRED · 0% AMBIGUOUS · INFERRED: 1061 edges (avg confidence: 0.8)
- 3417 nodes · 4865 edges · 71 communities detected
- Extraction: 78% EXTRACTED · 22% INFERRED · 0% AMBIGUOUS · INFERRED: 1076 edges (avg confidence: 0.8)
- Token cost: 0 input · 0 output
## Community Hubs (Navigation)
@@ -52,75 +52,80 @@
- [[_COMMUNITY_Community 40|Community 40]]
- [[_COMMUNITY_Community 41|Community 41]]
- [[_COMMUNITY_Community 42|Community 42]]
- [[_COMMUNITY_Community 44|Community 44]]
- [[_COMMUNITY_Community 43|Community 43]]
- [[_COMMUNITY_Community 45|Community 45]]
- [[_COMMUNITY_Community 49|Community 49]]
- [[_COMMUNITY_Community 46|Community 46]]
- [[_COMMUNITY_Community 47|Community 47]]
- [[_COMMUNITY_Community 50|Community 50]]
- [[_COMMUNITY_Community 52|Community 52]]
- [[_COMMUNITY_Community 53|Community 53]]
- [[_COMMUNITY_Community 54|Community 54]]
- [[_COMMUNITY_Community 55|Community 55]]
- [[_COMMUNITY_Community 56|Community 56]]
- [[_COMMUNITY_Community 57|Community 57]]
- [[_COMMUNITY_Community 58|Community 58]]
- [[_COMMUNITY_Community 59|Community 59]]
- [[_COMMUNITY_Community 60|Community 60]]
- [[_COMMUNITY_Community 62|Community 62]]
- [[_COMMUNITY_Community 63|Community 63]]
- [[_COMMUNITY_Community 66|Community 66]]
- [[_COMMUNITY_Community 68|Community 68]]
- [[_COMMUNITY_Community 69|Community 69]]
- [[_COMMUNITY_Community 72|Community 72]]
- [[_COMMUNITY_Community 73|Community 73]]
- [[_COMMUNITY_Community 74|Community 74]]
- [[_COMMUNITY_Community 75|Community 75]]
- [[_COMMUNITY_Community 76|Community 76]]
- [[_COMMUNITY_Community 77|Community 77]]
- [[_COMMUNITY_Community 78|Community 78]]
- [[_COMMUNITY_Community 79|Community 79]]
- [[_COMMUNITY_Community 92|Community 92]]
- [[_COMMUNITY_Community 94|Community 94]]
- [[_COMMUNITY_Community 95|Community 95]]
- [[_COMMUNITY_Community 80|Community 80]]
- [[_COMMUNITY_Community 81|Community 81]]
- [[_COMMUNITY_Community 86|Community 86]]
- [[_COMMUNITY_Community 97|Community 97]]
- [[_COMMUNITY_Community 99|Community 99]]
- [[_COMMUNITY_Community 100|Community 100]]
## God Nodes (most connected - your core abstractions)
1. `get()` - 305 edges
2. `push()` - 110 edges
1. `get()` - 306 edges
2. `push()` - 119 edges
3. `emit()` - 30 edges
4. `WebSocketClient` - 26 edges
5. `set()` - 21 edges
6. `handleDynamicRoutes()` - 19 edges
7. `parseProtocolStandardImportText()` - 17 edges
8. `onPick()` - 16 edges
9. `scopeQuery()` - 16 edges
10. `MenuProcessor` - 16 edges
8. `walkRules()` - 16 edges
9. `onPick()` - 16 edges
10. `scopeQuery()` - 16 edges
## Surprising Connections (you probably didn't know these)
- `handleBatchDelete()` --calls--> `withFullscreenLoading()` [INFERRED]
views/basic-info/customer/index.vue → utils/fullscreen-loading.ts
- `onPick()` --calls--> `ensureOvertimeKitRuleProps()` [INFERRED]
components/oa-approval/OaStartFormDialog.vue → utils/oa-overtime-kit-runtime.ts
- `formatReceiveAccountLine()` --calls--> `push()` [INFERRED]
utils/oa-receive-account-value.ts → views/operations/storage-facility/index.vue
- `dash()` --calls--> `formatDisplayOrDash()` [INFERRED]
components/business/infusion-schedule-outbound-chain-view/index.vue → utils/datetime-display.ts
- `dash()` --calls--> `formatDisplayOrDash()` [INFERRED]
components/business/clinical-schedule-payment-detail/index.vue → utils/datetime-display.ts
- `findTreeSelectShortLabel()` --calls--> `walk()` [INFERRED]
utils/tree-path.ts → views/system/role/index.vue
- `fmtMoney()` --calls--> `formatMoneyDisplay()` [INFERRED]
components/business/clinical-schedule-payment-detail/index.vue → utils/money-format.ts
## Communities
### Community 0 - "Community 0"
Cohesion: 0.01
Nodes (176): fetchAccessLogList(), fetchActiveRegions(), fetchCategoryList(), fetchCategoryParameters(), fetchCellProductPriceList(), fetchCellProductSpecList(), fetchCellProductTypeList(), fetchChannelAccount() (+168 more)
Cohesion: 0.0
Nodes (200): fetchAccessLogList(), fetchActiveRegions(), fetchCategoryList(), fetchCategoryParameters(), fetchCellProductPriceList(), fetchCellProductSpecList(), fetchCellProductTypeList(), fetchChannelAccount() (+192 more)
### Community 1 - "Community 1"
Cohesion: 0.02
Nodes (94): batchSavePilotCheckup(), deletePilotCheckupActualItem(), fetchCheckupInstitutionList(), fetchCheckupInstitutionPackageDetail(), fetchCheckupInstitutionPackages(), fetchPilotCheckupDetail(), fetchPilotCheckupList(), markPilotCheckupChecked() (+86 more)
Cohesion: 0.03
Nodes (86): batchSavePilotCheckup(), deletePilotCheckupActualItem(), fetchCheckupInstitutionList(), fetchCheckupInstitutionPackageDetail(), fetchCheckupInstitutionPackages(), fetchPilotCheckupActualItems(), fetchPilotCheckupDetail(), fetchPilotCheckupList() (+78 more)
### Community 2 - "Community 2"
Cohesion: 0.02
Nodes (72): fetchUpdatePostBoundRoles(), fetchUploadAttachment(), fetchOaTasks(), FireworkSystem, handleReportUpload(), handleReportUpload(), walk(), load() (+64 more)
Cohesion: 0.03
Nodes (74): fetchUploadAttachment(), FireworkSystem, handleReportUpload(), handleReportUpload(), walk(), if(), async(), for() (+66 more)
### Community 3 - "Community 3"
Cohesion: 0.03
Nodes (78): fetchEthnicList(), applyDonationBundleToForm(), createEmptyTransport(), ensureEthnicOptionInList(), handleOpenForAdd(), if(), loadEthnicOptions(), normalizeSampleRow() (+70 more)
Nodes (79): fetchEthnicList(), formatNowDatetime(), applyDonationBundleToForm(), createEmptyTransport(), ensureEthnicOptionInList(), handleOpenForAdd(), if(), loadEthnicOptions() (+71 more)
### Community 4 - "Community 4"
Cohesion: 0.03
Nodes (64): fetchBatchDeleteOaReceiveAccounts(), fetchBatchMarkOaCcTasksRead(), fetchCreateOaReceiveAccount(), fetchDeleteOaReceiveAccount(), fetchMarkOaCcTaskRead(), fetchOaAppDraft(), fetchOaAppList(), fetchOaCcUnreadCount() (+56 more)
Nodes (62): fetchBatchDeleteOaReceiveAccounts(), fetchBatchMarkOaCcTasksRead(), fetchCreateOaReceiveAccount(), fetchDeleteOaReceiveAccount(), fetchMarkOaCcTaskRead(), fetchOaAppDraft(), fetchOaCcUnreadCount(), fetchOaInstanceDetail() (+54 more)
### Community 5 - "Community 5"
Cohesion: 0.03
@@ -132,136 +137,136 @@ Nodes (63): fetchCheckupInstitutionInvoices(), fetchCheckupInstitutionProjects()
### Community 7 - "Community 7"
Cohesion: 0.03
Nodes (47): handleBlur(), handleFocus(), handleInput(), fetchClinicalPaymentDetail(), fetchClinicalPayments(), fetchClinicalReceiptConfirmed(), fetchClinicalReceiptPending(), fetchClinicalRefundConfirmed() (+39 more)
Nodes (57): buildInboundBasicSection(), buildInboundCellStorageViewSections(), buildInboundResearchDonationViewSections(), buildReceptionSection(), buildTransportSection(), resolveInboundProtocolStatus(), buildBaseFields(), buildFeeSection() (+49 more)
### Community 8 - "Community 8"
Cohesion: 0.03
Nodes (57): buildInboundBasicSection(), buildInboundCellStorageViewSections(), buildInboundResearchDonationViewSections(), buildReceptionSection(), buildTemporaryViewSections(), buildTransportSection(), resolveInboundProtocolStatus(), buildInsertedSiblingCard() (+49 more)
Nodes (56): fetchMyProductionTasks(), fetchMyQcTaskList(), fetchQcTaskDetail(), fetchQcTaskList(), fetchMineTasksForWorkOrders(), useInboundSiblingNavigation(), shouldApplyTriggerSourceFilter(), useQcWorkOrderTabPage() (+48 more)
### Community 9 - "Community 9"
Cohesion: 0.02
Nodes (29): fetchAllConsumablePacks(), fetchAllConsumables(), fetchAllConsumableStockLogs(), fetchAllEquipments(), fetchAllOutputTypes(), fetchAllProcessCategories(), fetchAllProcesses(), fetchAllReagents() (+21 more)
Cohesion: 0.03
Nodes (57): fetchFullmoonTodoList(), fetchUpdateFullmoonTodoInsurance(), fetchCollectionProtocolAuditList(), fetchCollectionProtocolDetail(), fetchCollectionProtocolList(), fetchCreateProtocolInvoiceRequest(), fetchInvoiceEligiblePayments(), fetchPaymentDetailList() (+49 more)
### Community 10 - "Community 10"
Cohesion: 0.03
Nodes (54): fetchMyProductionTasks(), fetchMyQcTaskList(), fetchQcTaskDetail(), fetchQcTaskList(), fetchMineTasksForWorkOrders(), useInboundSiblingNavigation(), shouldApplyTriggerSourceFilter(), useQcWorkOrderTabPage() (+46 more)
Nodes (41): fetchProductionReceptionBySampleCode(), fetchProductionReceptionSubmit(), fetchProductionReceptionUpdate(), handleDialogClose(), nodeSummary(), onAdd(), onAddInGroup(), createDefaultFlow() (+33 more)
### Community 11 - "Community 11"
Cohesion: 0.03
Nodes (49): useSettingsHandlers(), useSettingsPanel(), useSettingsState(), useCeremony(), useTheme(), if(), nodeSummary(), createDefaultFlow() (+41 more)
Cohesion: 0.04
Nodes (49): buildTemporaryViewSections(), buildInsertedSiblingCard(), resolveShowProtocolPaymentAtGroup(), appendTaskResultSections(), batchTasksForPanelSlot(), buildConfiguredOnlySection(), for(), for() (+41 more)
### Community 12 - "Community 12"
Cohesion: 0.04
Nodes (42): buildBaseFields(), buildFeeSection(), buildInboundBasicSection(), buildInboundCellStorageProductionViewSections(), buildInboundResearchDonationProductionViewSections(), buildOutboundBasicExperimentProductionViewSections(), buildOutboundClinicalProductionViewSections(), buildOutboundDetail() (+34 more)
Cohesion: 0.03
Nodes (51): useSettingsHandlers(), useSettingsPanel(), useSettingsState(), useCeremony(), useTheme(), if(), branchConditionLines(), collectConditionReferencedFields() (+43 more)
### Community 13 - "Community 13"
Cohesion: 0.05
Nodes (60): fetchDeptTree(), fetchUserList(), fetchOaFlowPreview(), fetchOaTemplateDetail(), remoteSearchHandoverUsers(), flowNeedsInitiatorSelect(), loadFlowPreview(), loadUsers() (+52 more)
Cohesion: 0.04
Nodes (53): fetchDeptTree(), fetchOaFlowPreview(), fetchOaTemplateDetail(), chipTitle(), confirmPicker(), memberOptionLabel(), removeUser(), resolveUser() (+45 more)
### Community 14 - "Community 14"
Cohesion: 0.05
Nodes (53): fetchOaRelatedSummaries(), displayPeople(), personLines(), personTitle(), showNodeComment(), signBadge(), signBadgeText(), statusText() (+45 more)
Nodes (53): fetchGetMenuCodes(), fetchGetUserInfo(), fetchLogin(), fetchRefreshToken(), fetchUpdateProfile(), fetchUploadProfileAvatar(), toLogin(), fetchUserInfo() (+45 more)
### Community 15 - "Community 15"
Cohesion: 0.04
Nodes (44): fetchFullmoonTodoList(), fetchUpdateFullmoonTodoInsurance(), fetchCollectionProtocolAuditList(), fetchCollectionProtocolDetail(), fetchCollectionProtocolList(), fetchCreateProtocolInvoiceRequest(), fetchInvoiceEligiblePayments(), fetchPaymentDetailList() (+36 more)
Cohesion: 0.03
Nodes (22): fetchProductionWorkOrderQcInfo(), fetchQcMaterialBatchDetail(), fetchQcMaterialBatchList(), fetchQcMaterialBatchOptions(), fetchQcMaterialList(), fetchQcMaterialOptions(), fetchUpdateQcMaterialBatch(), dash() (+14 more)
### Community 16 - "Community 16"
Cohesion: 0.04
Nodes (38): fetchCellSampleTypeList(), fetchCreateCellSampleType(), fetchCreateMenu(), fetchDeleteCellSampleType(), fetchDeleteMenu(), fetchMenuTree(), fetchUpdateCellSampleType(), fetchUpdateMenu() (+30 more)
Cohesion: 0.05
Nodes (33): fetchCreateMenu(), fetchDeleteMenu(), fetchMenuTree(), fetchUpdateMenu(), fetchMarkQcMaterialUsageFullyUsed(), collectIds(), postorder(), preorder() (+25 more)
### Community 17 - "Community 17"
Cohesion: 0.06
Nodes (38): attachmentFullUrl(), dash(), handleAttachmentDownload(), handleAttachmentPreview(), buildPaymentFlowSteps(), dash(), formatAmount(), hasFinanceReceipt() (+30 more)
Nodes (49): fetchOaRelatedSummaries(), buildFlowItems(), buildFormRows(), buildOaPrintFilename(), buildOaPrintModel(), canvasToPdf(), ensurePlainObject(), exportOaApprovalPdf() (+41 more)
### Community 18 - "Community 18"
Cohesion: 0.07
Nodes (39): fetchCreateCustomer(), fetchCustomerList(), fetchDeleteCustomer(), fetchUpdateCustomer(), updateInfusionScheduleStatus(), handleAdd(), handleBatchDelete(), handleDelete() (+31 more)
Cohesion: 0.06
Nodes (41): completePilotApplication(), deletePilotApplication(), fetchPilotApplicationList(), startPilotApplication(), voidPilotApplication(), fetchClinicalRefundConfirmed(), buildConfirmedParams(), buildPendingParams() (+33 more)
### Community 19 - "Community 19"
Cohesion: 0.05
Nodes (14): fetchProductionWorkOrderQcInfo(), dash(), fmtMoney(), auditorDisplay(), dash(), ensureUnitsInOptions(), expressName(), formatYm() (+6 more)
Nodes (23): handleBlur(), handleFocus(), handleInput(), fetchClinicalReceiptConfirmed(), buildConfirmedParams(), buildPendingParams(), formatAmount(), handleConfirmedReset() (+15 more)
### Community 20 - "Community 20"
Cohesion: 0.06
Nodes (29): qcAttachmentFullUrl(), qcDownloadAttachment(), qcPreviewAttachment(), formatHandoverUserLabel(), formatNowDatetime(), fullFileUrl(), handleDownloadAttachment(), handlePreviewAttachment() (+21 more)
Nodes (38): fetchUserList(), fetchAddTaskStep(), fetchCopyTaskStep(), fetchDeleteTaskStep(), fetchDispatchProductionTaskSteps(), fetchForwardProductionTask(), fetchProductionTaskDetail(), fetchProductionTaskEditorInit() (+30 more)
### Community 21 - "Community 21"
Cohesion: 0.07
Nodes (39): fetchCreateCustomer(), fetchCustomerList(), fetchDeleteCustomer(), fetchUpdateCustomer(), updateInfusionScheduleStatus(), handleAdd(), handleBatchDelete(), handleDelete() (+31 more)
### Community 22 - "Community 22"
Cohesion: 0.08
Nodes (37): formatDatetimeToMinute(), handleChineseDatetimePaste(), parseChineseDatetimeText(), parseBirthOrder(), parseChineseNumeral(), addSampleHint(), earliestCollectTime(), isMaternalBloodEmpty() (+29 more)
### Community 22 - "Community 22"
Cohesion: 0.06
Nodes (32): fetchAddTaskStep(), fetchCopyTaskStep(), fetchDeleteTaskStep(), fetchDispatchProductionTaskSteps(), fetchForwardProductionTask(), fetchProductionTaskDetail(), fetchProductionTaskEditorInit(), fetchProductionTaskList() (+24 more)
### Community 23 - "Community 23"
Cohesion: 0.06
Nodes (21): fetchQcMaterialBatchDetail(), fetchQcMaterialBatchList(), fetchQcMaterialBatchOptions(), fetchQcMaterialList(), fetchQcMaterialOptions(), fetchUpdateQcMaterialBatch(), fetchMarkQcMaterialUsageFullyUsed(), financeAttachmentsToUrlString() (+13 more)
### Community 24 - "Community 24"
Cohesion: 0.1
Nodes (2): WebSocketClient, TableCache
### Community 25 - "Community 25"
Cohesion: 0.08
Nodes (33): fetchRefreshToken(), toLogin(), base64ToBytes(), bytesToBase64(), decryptJson(), deriveKey(), encryptJson(), fromBase64Url() (+25 more)
### Community 26 - "Community 26"
### Community 24 - "Community 24"
Cohesion: 0.09
Nodes (8): getDefaultLanguage(), checkStorageCompatibility(), StorageConfig, getSystemStorage(), getSysVersion(), StorageKeyManager, StorageCompatibilityManager, validateStorageData()
### Community 27 - "Community 27"
### Community 25 - "Community 25"
Cohesion: 0.08
Nodes (20): createEmptySnapshots(), normalizeConfiguredReagents(), normalizeConsumables(), normalizeDataCollections(), normalizeReagents(), normalizeStepOutputs(), serializeAttachments(), serializeEquipmentIds() (+12 more)
### Community 28 - "Community 28"
Cohesion: 0.08
Nodes (18): fetchProductionReceptionBySampleCode(), fetchProductionReceptionSubmit(), fetchProductionReceptionUpdate(), onUserSelectVisible(), remoteSearchUsers(), buildPayload(), ensureDefaultHandler(), initDialog() (+10 more)
### Community 29 - "Community 29"
### Community 26 - "Community 26"
Cohesion: 0.07
Nodes (19): fetchDeleteMaterialBatch(), fetchMaterialBatchList(), fetchMaterialBatchOptions(), fetchMaterialList(), fetchMaterialOptions(), fetchUpdateMaterialBatch(), fetchMaterialUsageList(), fetchMyMaterialUsageList() (+11 more)
### Community 30 - "Community 30"
### Community 27 - "Community 27"
Cohesion: 0.09
Nodes (22): fetchMineProductionWorkOrderTabStepCounts(), fetchMineProductionWorkOrderTabStepCountsDeduped(), fetchProductionWorkOrderCellProductOptions(), fetchProductionWorkOrderDetail(), fetchProductionWorkOrderList(), fetchProductionWorkOrderQcDispatchOptions(), fetchProductionWorkOrderTabStepCounts(), fetchProductionWorkOrderTabStepCountsDeduped() (+14 more)
### Community 31 - "Community 31"
### Community 28 - "Community 28"
Cohesion: 0.09
Nodes (27): completePilotApplication(), deletePilotApplication(), fetchPilotApplicationList(), startPilotApplication(), voidPilotApplication(), handleBatchComplete(), handleBatchStart(), handleBatchVoid() (+19 more)
Nodes (22): fetchOaAppList(), fetchOaGroupList(), fetchPublishOaApp(), loadData(), loadGroups(), resetForm(), onSuccess(), goBack() (+14 more)
### Community 32 - "Community 32"
Cohesion: 0.12
Nodes (20): fetchGetMenuCodes(), fetchGetUserInfo(), fetchLogin(), fetchUpdateProfile(), fetchUploadProfileAvatar(), fetchUserInfo(), buildWebEncryptedLoginBody(), defaultAvatarPathByRole() (+12 more)
### Community 33 - "Community 33"
### Community 29 - "Community 29"
Cohesion: 0.09
Nodes (12): fetchMineQcWorkOrderTabUnfinishedCounts(), fetchOutboundQcDetail(), fetchQcWorkOrderDetail(), fetchQcWorkOrderList(), fetchQcWorkOrdersBySample(), fetchQcWorkOrderTabUnfinishedCounts(), reload(), reloadTabCounts() (+4 more)
### Community 34 - "Community 34"
### Community 30 - "Community 30"
Cohesion: 0.18
Nodes (22): buildPaymentFlowSteps(), dash(), formatAmount(), hasFinanceReceipt(), hasFinanceRefund(), hasReceiptSubmit(), hasRefundSubmit(), receiptSubmitTime() (+14 more)
### Community 31 - "Community 31"
Cohesion: 0.1
Nodes (12): fetchOutboundReleaseMaterial(), fetchOutboundReleaseReviewDetail(), fetchOutboundReleaseReviewList(), fetchReleaseReviewList(), handleReset(), handleSearch(), handleTabChange(), handleToggleSelect() (+4 more)
### Community 35 - "Community 35"
### Community 32 - "Community 32"
Cohesion: 0.12
Nodes (15): addCopyButton(), highlightCode(), insertLineNumbers(), isBlockProcessed(), markBlockAsProcessed(), processBlock(), setupHighlightDirective(), setupRippleDirective() (+7 more)
### Community 36 - "Community 36"
### Community 33 - "Community 33"
Cohesion: 0.13
Nodes (18): fetchCellSampleTypeList(), fetchCreateCellSampleType(), fetchDeleteCellSampleType(), fetchUpdateCellSampleType(), handleAdd(), handleDelete(), handleDropdownCommand(), handleEdit() (+10 more)
### Community 34 - "Community 34"
Cohesion: 0.14
Nodes (13): displayPeople(), personLines(), personTitle(), showNodeComment(), signBadge(), signBadgeText(), statusText(), displayName() (+5 more)
### Community 35 - "Community 35"
Cohesion: 0.19
Nodes (15): fetchAttachmentDownloadUrl(), attachmentFullUrl(), ensureUniqueZipEntryName(), fetchAttachmentBlob(), getAttachmentExtension(), resolveAttachmentFileName(), sanitizeZipPathSegment(), applyInboundLabStorageCodePrefix() (+7 more)
### Community 37 - "Community 37"
Cohesion: 0.13
Nodes (8): chipTitle(), confirmPicker(), memberOptionLabel(), removeUser(), resolveUser(), signBadge(), signBadgeText(), updateSelect()
### Community 38 - "Community 38"
### Community 36 - "Community 36"
Cohesion: 0.2
Nodes (14): applyFlagToRule(), applySchema(), countRules(), getActiveRule(), getDesigner(), getSetupState(), onMessage(), readFlag() (+6 more)
### Community 39 - "Community 39"
### Community 37 - "Community 37"
Cohesion: 0.12
Nodes (12): fetchApproveTask(), fetchBusinessAllTasks(), fetchCompletedTasks(), fetchDesignerData(), fetchInstanceDetail(), fetchMyInstances(), fetchPendingTasks(), fetchProcessDefList() (+4 more)
### Community 38 - "Community 38"
Cohesion: 0.12
Nodes (6): setupOaConfirmationKit(), ensureOaKitMenu(), setupOaLeaveKit(), setupOaOvertimeKit(), setupOaResignationKit(), setupOaTripKit()
### Community 39 - "Community 39"
Cohesion: 0.12
Nodes (6): attachmentFullUrl(), dash(), handleAttachmentDownload(), handleAttachmentPreview(), ensureOaUploadRuleProps(), resolveUploadResponseUrl()
### Community 40 - "Community 40"
Cohesion: 0.16
Nodes (10): useTable(), useTableImpl(), getColumnChecks(), useTableColumns(), createErrorHandler(), createSmartDebounce(), defaultResponseAdapter(), extractPagination() (+2 more)
@@ -271,154 +276,180 @@ Cohesion: 0.27
Nodes (14): useChart(), useChartComponent(), useChartOps(), colourBlend(), getCssVar(), getDarkColor(), getLightColor(), handleElementThemeColor() (+6 more)
### Community 42 - "Community 42"
Cohesion: 0.22
Nodes (9): fullFileUrl(), handleDownloadAttachment(), handlePreviewAttachment(), isVideoFile(), normalizeDisplayValue(), resolveReviewCellType(), resolveReviewQuantity(), resolveReviewSpecText() (+1 more)
### Community 43 - "Community 43"
Cohesion: 0.19
Nodes (6): fetchServiceOrderTxnList(), handleReset(), handleSearch(), handleTabChange(), loadData(), switchTab()
### Community 44 - "Community 44"
### Community 45 - "Community 45"
Cohesion: 0.15
Nodes (4): fetchNextDonationSampleCode(), fetchResearchDonationAuditList(), fetchResearchDonationDetail(), fetchResearchDonationList()
### Community 46 - "Community 46"
Cohesion: 0.31
Nodes (4): isSlotAvailable(), resolveStorageSlotRangeFill(), slotFacilityNodeId(), sortBoxSlots()
### Community 45 - "Community 45"
### Community 47 - "Community 47"
Cohesion: 0.25
Nodes (2): handleTouchEnd(), setTransition()
### Community 49 - "Community 49"
### Community 50 - "Community 50"
Cohesion: 0.28
Nodes (4): fetchMyProductionMaterialConsumptions(), handleReset(), handleSearch(), loadData()
### Community 52 - "Community 52"
Cohesion: 0.39
Nodes (6): isIgnorableScriptError(), normalizeErrorMessage(), registerPromiseErrorHandler(), registerResourceErrorHandler(), scriptErrorHandler(), setupErrorHandle()
### Community 50 - "Community 50"
### Community 53 - "Community 53"
Cohesion: 0.36
Nodes (1): TableHeightCalculator
### Community 52 - "Community 52"
### Community 55 - "Community 55"
Cohesion: 0.33
Nodes (2): logApiCryptoBootInfo(), maskSecret()
### Community 53 - "Community 53"
Cohesion: 0.67
Nodes (6): fileNameHint(), fileUrlHint(), getOaUploadDisplayName(), isOaUploadImageFile(), isOaUploadVideoFile(), mimeHint()
### Community 54 - "Community 54"
### Community 56 - "Community 56"
Cohesion: 0.38
Nodes (4): handleFocus(), handleInput(), parseDecimalToNumber(), sanitizeDecimalInput()
### Community 55 - "Community 55"
### Community 57 - "Community 57"
Cohesion: 0.4
Nodes (2): isUnfinishedQcWorkOrder(), resolveQcWorkOrderUnfinishedBadgeCount()
### Community 56 - "Community 56"
### Community 58 - "Community 58"
Cohesion: 0.47
Nodes (3): isPaymentDueWithinWarnWindow(), parsePaymentDueYmd(), startOfLocalDay()
### Community 57 - "Community 57"
### Community 59 - "Community 59"
Cohesion: 0.5
Nodes (2): formatProtocolDocDeleteConfirm(), formatProtocolDocSubject()
### Community 58 - "Community 58"
### Community 60 - "Community 60"
Cohesion: 0.5
Nodes (2): parseEquipmentIds(), syncEquipmentNamesFromOptions()
### Community 60 - "Community 60"
### Community 62 - "Community 62"
Cohesion: 0.5
Nodes (2): focusInput(), handleKeydown()
### Community 63 - "Community 63"
Cohesion: 0.4
Nodes (1): fetchQcMaterialAmountAuthUsers()
### Community 66 - "Community 66"
Cohesion: 0.67
Nodes (2): if(), logSidebarMenu()
### Community 68 - "Community 68"
Cohesion: 0.5
Nodes (1): fetchSampleSmsNotificationList()
### Community 69 - "Community 69"
Cohesion: 1.0
Nodes (2): getSettingDefaults(), resetToDefaults()
### Community 72 - "Community 72"
Cohesion: 1.0
Nodes (2): buildOvertimeKitChildren(), uniqueId()
### Community 73 - "Community 73"
Cohesion: 1.0
Nodes (2): buildLeaveKitChildren(), uniqueId()
Cohesion: 0.5
Nodes (1): fetchQcSmsList()
### Community 74 - "Community 74"
Cohesion: 1.0
Nodes (2): buildConfirmationKitChildren(), uniqueId()
Nodes (2): getSettingDefaults(), resetToDefaults()
### Community 75 - "Community 75"
### Community 77 - "Community 77"
Cohesion: 1.0
Nodes (2): buildResignationKitChildren(), uniqueId()
Nodes (2): buildOvertimeKitChildren(), uniqueId()
### Community 76 - "Community 76"
### Community 78 - "Community 78"
Cohesion: 1.0
Nodes (2): copyTextToClipboard(), copyTextWithFallback()
Nodes (2): buildLeaveKitChildren(), uniqueId()
### Community 79 - "Community 79"
Cohesion: 1.0
Nodes (2): buildConfirmationKitChildren(), uniqueId()
### Community 80 - "Community 80"
Cohesion: 1.0
Nodes (2): buildResignationKitChildren(), uniqueId()
### Community 81 - "Community 81"
Cohesion: 1.0
Nodes (2): copyTextToClipboard(), copyTextWithFallback()
### Community 86 - "Community 86"
Cohesion: 1.0
Nodes (2): getSourceProtocolAttachment(), normalizeAttachmentFiles()
### Community 92 - "Community 92"
### Community 97 - "Community 97"
Cohesion: 1.0
Nodes (2): emptyTabCounts(), useProductionWorkOrderTabStepCounts()
### Community 94 - "Community 94"
### Community 99 - "Community 99"
Cohesion: 1.0
Nodes (2): initialProgress(), useQcWorkOrderAttachmentExport()
### Community 95 - "Community 95"
### Community 100 - "Community 100"
Cohesion: 1.0
Nodes (2): emptyTabCounts(), useQcWorkOrderTabUnfinishedCounts()
## Knowledge Gaps
- **Thin community `Community 24`** (42 nodes): `WebSocketClient`, `.calculateReconnectDelay()`, `.clearAllTimers()`, `.clearConnectionTimers()`, `.clearTimer()`, `.close()`, `.closeCurrentSocketForReconnect()`, `.connect()`, `.connectionStatusText()`, `.constructor()`, `.destroyInstance()`, `.flushMessageQueue()`, `.getInstance()`, `.getReadyStateText()`, `.handleClose()`, `.handleConnectionTimeout()`, `.handleError()`, `.handleMessage()`, `.handleOpen()`, `.init()`, `.isWebSocketConnected()`, `.reconnect()`, `.resetHeartbeat()`, `.send()`, `.startHeartbeat()`, `.startPing()`, `TableCache`, `.cleanupExpired()`, `.clear()`, `.clearByTags()`, `.clearCurrentSearch()`, `.clearPagination()`, `.constructor()`, `.evictLRU()`, `.generateKey()`, `.generateTags()`, `.get()`, `.getStats()`, `.log()`, `.set()`, `index.ts`, `tableCache.ts`
- **Thin community `Community 23`** (42 nodes): `WebSocketClient`, `.calculateReconnectDelay()`, `.clearAllTimers()`, `.clearConnectionTimers()`, `.clearTimer()`, `.close()`, `.closeCurrentSocketForReconnect()`, `.connect()`, `.connectionStatusText()`, `.constructor()`, `.destroyInstance()`, `.flushMessageQueue()`, `.getInstance()`, `.getReadyStateText()`, `.handleClose()`, `.handleConnectionTimeout()`, `.handleError()`, `.handleMessage()`, `.handleOpen()`, `.init()`, `.isWebSocketConnected()`, `.reconnect()`, `.resetHeartbeat()`, `.send()`, `.startHeartbeat()`, `.startPing()`, `TableCache`, `.cleanupExpired()`, `.clear()`, `.clearByTags()`, `.clearCurrentSearch()`, `.clearPagination()`, `.constructor()`, `.evictLRU()`, `.generateKey()`, `.generateTags()`, `.get()`, `.getStats()`, `.log()`, `.set()`, `index.ts`, `tableCache.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 45`** (9 nodes): `cleanupEventListeners()`, `handleTouchEnd()`, `handleTouchMove()`, `handleTouchStart()`, `handleWheelScroll()`, `if()`, `setTransition()`, `setupEventListeners()`, `index.vue`
- **Thin community `Community 47`** (9 nodes): `cleanupEventListeners()`, `handleTouchEnd()`, `handleTouchMove()`, `handleTouchStart()`, `handleWheelScroll()`, `if()`, `setTransition()`, `setupEventListeners()`, `index.vue`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 50`** (8 nodes): `TableHeightCalculator`, `.calculate()`, `.calculateOffset()`, `.calculatePaginationOffset()`, `.constructor()`, `.getHeaderHeight()`, `useTableHeight()`, `useTableHeight.ts`
- **Thin community `Community 53`** (8 nodes): `TableHeightCalculator`, `.calculate()`, `.calculateOffset()`, `.calculatePaginationOffset()`, `.constructor()`, `.getHeaderHeight()`, `useTableHeight()`, `useTableHeight.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 52`** (7 nodes): `App.vue`, `main.ts`, `refreshButtonAutoIcons()`, `refreshPanelTitleIcons()`, `logApiCryptoBootInfo()`, `maskSecret()`, `console.ts`
- **Thin community `Community 55`** (7 nodes): `App.vue`, `main.ts`, `refreshButtonAutoIcons()`, `refreshPanelTitleIcons()`, `logApiCryptoBootInfo()`, `maskSecret()`, `console.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 55`** (6 nodes): `formatQcWorkOrderUnfinishedBadgeCount()`, `isUnfinishedQcWorkOrder()`, `qcWorkOrderUnfinishedBadgeTitle()`, `resolveQcWorkOrderUnfinishedBadgeCount()`, `sumQcWorkOrderGroupUnfinishedBadgeCount()`, `qc-work-order-unfinished-badge.ts`
- **Thin community `Community 57`** (6 nodes): `formatQcWorkOrderUnfinishedBadgeCount()`, `isUnfinishedQcWorkOrder()`, `qcWorkOrderUnfinishedBadgeTitle()`, `resolveQcWorkOrderUnfinishedBadgeCount()`, `sumQcWorkOrderGroupUnfinishedBadgeCount()`, `qc-work-order-unfinished-badge.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 57`** (5 nodes): `formatProtocolDocBatchDeleteConfirm()`, `formatProtocolDocDeleteConfirm()`, `formatProtocolDocSubject()`, `getProtocolDocTypeLabel()`, `protocol-doc-label.ts`
- **Thin community `Community 59`** (5 nodes): `formatProtocolDocBatchDeleteConfirm()`, `formatProtocolDocDeleteConfirm()`, `formatProtocolDocSubject()`, `getProtocolDocTypeLabel()`, `protocol-doc-label.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 58`** (5 nodes): `equipmentOptionLabel()`, `joinEquipmentIds()`, `parseEquipmentIds()`, `syncEquipmentNamesFromOptions()`, `equipment-select.ts`
- **Thin community `Community 60`** (5 nodes): `equipmentOptionLabel()`, `joinEquipmentIds()`, `parseEquipmentIds()`, `syncEquipmentNamesFromOptions()`, `equipment-select.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 60`** (5 nodes): `focusInput()`, `handleKeydown()`, `if()`, `search()`, `index.vue`
- **Thin community `Community 62`** (5 nodes): `focusInput()`, `handleKeydown()`, `if()`, `search()`, `index.vue`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 63`** (4 nodes): `if()`, `logSidebarMenu()`, `index.vue`, `SidebarSubmenu.vue`
- **Thin community `Community 63`** (5 nodes): `fetchBatchRevokeQcMaterialAmountAuth()`, `fetchGrantQcMaterialAmountAuth()`, `fetchQcMaterialAmountAuthUsers()`, `fetchRevokeQcMaterialAmountAuth()`, `qc-material-amount-auth.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 69`** (3 nodes): `getSettingDefaults()`, `resetToDefaults()`, `setting.ts`
- **Thin community `Community 66`** (4 nodes): `if()`, `logSidebarMenu()`, `index.vue`, `SidebarSubmenu.vue`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 72`** (3 nodes): `buildOvertimeKitChildren()`, `oa-overtime-kit-rule.ts`, `uniqueId()`
- **Thin community `Community 68`** (4 nodes): `fetchGenerateSms()`, `fetchSampleSmsNotificationList()`, `fetchToggleSmsNotified()`, `sample-sms-notification.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 73`** (3 nodes): `buildLeaveKitChildren()`, `oa-leave-kit-rule.ts`, `uniqueId()`
- **Thin community `Community 69`** (4 nodes): `fetchGenerateQcSms()`, `fetchQcSmsList()`, `fetchToggleQcSmsNotified()`, `qc-sms-notification.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 74`** (3 nodes): `buildConfirmationKitChildren()`, `oa-confirmation-kit-rule.ts`, `uniqueId()`
- **Thin community `Community 74`** (3 nodes): `getSettingDefaults()`, `resetToDefaults()`, `setting.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 75`** (3 nodes): `buildResignationKitChildren()`, `oa-resignation-kit-rule.ts`, `uniqueId()`
- **Thin community `Community 77`** (3 nodes): `buildOvertimeKitChildren()`, `oa-overtime-kit-rule.ts`, `uniqueId()`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 76`** (3 nodes): `copyTextToClipboard()`, `copyTextWithFallback()`, `copy-text.ts`
- **Thin community `Community 78`** (3 nodes): `buildLeaveKitChildren()`, `oa-leave-kit-rule.ts`, `uniqueId()`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 79`** (3 nodes): `getSourceProtocolAttachment()`, `normalizeAttachmentFiles()`, `protocol-source-attachment.ts`
- **Thin community `Community 79`** (3 nodes): `buildConfirmationKitChildren()`, `oa-confirmation-kit-rule.ts`, `uniqueId()`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 92`** (3 nodes): `emptyTabCounts()`, `useProductionWorkOrderTabStepCounts()`, `useProductionWorkOrderTabStepCounts.ts`
- **Thin community `Community 80`** (3 nodes): `buildResignationKitChildren()`, `oa-resignation-kit-rule.ts`, `uniqueId()`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 94`** (3 nodes): `initialProgress()`, `useQcWorkOrderAttachmentExport()`, `useQcWorkOrderAttachmentExport.ts`
- **Thin community `Community 81`** (3 nodes): `copyTextToClipboard()`, `copyTextWithFallback()`, `copy-text.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 95`** (3 nodes): `emptyTabCounts()`, `useQcWorkOrderTabUnfinishedCounts()`, `useQcWorkOrderTabUnfinishedCounts.ts`
- **Thin community `Community 86`** (3 nodes): `getSourceProtocolAttachment()`, `normalizeAttachmentFiles()`, `protocol-source-attachment.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 97`** (3 nodes): `emptyTabCounts()`, `useProductionWorkOrderTabStepCounts()`, `useProductionWorkOrderTabStepCounts.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 99`** (3 nodes): `initialProgress()`, `useQcWorkOrderAttachmentExport()`, `useQcWorkOrderAttachmentExport.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
- **Thin community `Community 100`** (3 nodes): `emptyTabCounts()`, `useQcWorkOrderTabUnfinishedCounts()`, `useQcWorkOrderTabUnfinishedCounts.ts`
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
## Suggested Questions
_Questions this graph is uniquely positioned to answer:_
- **Why does `push()` connect `Community 2` to `Community 0`, `Community 1`, `Community 3`, `Community 4`, `Community 6`, `Community 8`, `Community 10`, `Community 11`, `Community 12`, `Community 13`, `Community 14`, `Community 15`, `Community 17`, `Community 19`, `Community 20`, `Community 21`, `Community 22`, `Community 24`, `Community 25`, `Community 27`, `Community 30`, `Community 31`, `Community 33`, `Community 36`, `Community 37`?**
_High betweenness centrality (0.281) - this node is a cross-community bridge._
- **Why does `get()` connect `Community 0` to `Community 1`, `Community 2`, `Community 3`, `Community 4`, `Community 6`, `Community 7`, `Community 8`, `Community 9`, `Community 10`, `Community 11`, `Community 13`, `Community 14`, `Community 15`, `Community 16`, `Community 18`, `Community 19`, `Community 22`, `Community 23`, `Community 28`, `Community 29`, `Community 30`, `Community 31`, `Community 32`, `Community 33`, `Community 34`, `Community 42`, `Community 44`?**
_High betweenness centrality (0.273) - this node is a cross-community bridge._
- **Why does `buildInboundBasicSection()` connect `Community 12` to `Community 2`?**
_High betweenness centrality (0.033) - this node is a cross-community bridge._
- **Are the 304 inferred relationships involving `get()` (e.g. with `resolveStorageSlotRangeFill()` and `buildNodeCodePathFromFlat()`) actually correct?**
_`get()` has 304 INFERRED edges - model-reasoned connections that need verification._
- **Are the 109 inferred relationships involving `push()` (e.g. with `refreshQcMenuBadges()` and `collectLeafFacilityNodesInTreeOrder()`) actually correct?**
_`push()` has 109 INFERRED edges - model-reasoned connections that need verification._
- **Why does `push()` connect `Community 2` to `Community 0`, `Community 1`, `Community 3`, `Community 4`, `Community 6`, `Community 7`, `Community 8`, `Community 9`, `Community 10`, `Community 11`, `Community 12`, `Community 13`, `Community 14`, `Community 15`, `Community 17`, `Community 18`, `Community 20`, `Community 22`, `Community 23`, `Community 25`, `Community 27`, `Community 28`, `Community 29`, `Community 34`, `Community 35`?**
_High betweenness centrality (0.299) - this node is a cross-community bridge._
- **Why does `get()` connect `Community 0` to `Community 1`, `Community 3`, `Community 4`, `Community 6`, `Community 8`, `Community 9`, `Community 10`, `Community 11`, `Community 12`, `Community 13`, `Community 14`, `Community 15`, `Community 16`, `Community 17`, `Community 18`, `Community 19`, `Community 20`, `Community 21`, `Community 26`, `Community 27`, `Community 28`, `Community 29`, `Community 31`, `Community 33`, `Community 37`, `Community 43`, `Community 45`, `Community 46`, `Community 50`, `Community 63`, `Community 68`, `Community 69`?**
_High betweenness centrality (0.256) - this node is a cross-community bridge._
- **Why does `handleSubmit()` connect `Community 9` to `Community 2`, `Community 18`, `Community 6`?**
_High betweenness centrality (0.029) - this node is a cross-community bridge._
- **Are the 305 inferred relationships involving `get()` (e.g. with `resolveStorageSlotRangeFill()` and `buildNodeCodePathFromFlat()`) actually correct?**
_`get()` has 305 INFERRED edges - model-reasoned connections that need verification._
- **Are the 118 inferred relationships involving `push()` (e.g. with `refreshQcMenuBadges()` and `collectLeafFacilityNodesInTreeOrder()`) actually correct?**
_`push()` has 118 INFERRED edges - model-reasoned connections that need verification._
- **Are the 29 inferred relationships involving `emit()` (e.g. with `handleSubmit()` and `handleDialogClose()`) actually correct?**
_`emit()` has 29 INFERRED edges - model-reasoned connections that need verification._
- **Are the 20 inferred relationships involving `set()` (e.g. with `buildNodeCodePathFromFlat()` and `collectLeafFacilityNodesInTreeOrder()`) actually correct?**
+4 -4
View File
@@ -57,12 +57,12 @@
</div>
<div id="legend"></div>
</div>
<div id="stats">3371 nodes &middot; 4776 edges &middot; 379 communities</div>
<div id="stats">3417 nodes &middot; 4865 edges &middot; 386 communities</div>
</div>
<script>
const RAW_NODES = [{"id": "app_vue", "label": "App.vue", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "App.vue", "community": 52, "community_name": "Community 52", "source_file": "App.vue", "file_type": "code", "degree": 3}, {"id": "src_app_refreshbuttonautoicons", "label": "refreshButtonAutoIcons()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "refreshButtonAutoIcons()", "community": 52, "community_name": "Community 52", "source_file": "App.vue", "file_type": "code", "degree": 1}, {"id": "src_app_refreshpaneltitleicons", "label": "refreshPanelTitleIcons()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "refreshPanelTitleIcons()", "community": 52, "community_name": "Community 52", "source_file": "App.vue", "file_type": "code", "degree": 1}, {"id": "main_ts", "label": "main.ts", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.4, "font": {"size": 0, "color": "#ffffff"}, "title": "main.ts", "community": 52, "community_name": "Community 52", "source_file": "main.ts", "file_type": "code", "degree": 4}, {"id": "src_main_masksecret", "label": "maskSecret()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "maskSecret()", "community": 52, "community_name": "Community 52", "source_file": "main.ts", "file_type": "code", "degree": 2}, {"id": "src_main_logapicryptobootinfo", "label": "logApiCryptoBootInfo()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "logApiCryptoBootInfo()", "community": 52, "community_name": "Community 52", "source_file": "main.ts", "file_type": "code", "degree": 2}, {"id": "env_d_ts", "label": "env.d.ts", "color": {"background": "#F28E2B", "border": "#F28E2B", "highlight": {"background": "#ffffff", "border": "#F28E2B"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "env.d.ts", "community": 141, "community_name": "Community 141", "source_file": "env.d.ts", "file_type": "code", "degree": 0}, {"id": "shims_loose_d_ts", "label": "shims-loose.d.ts", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "shims-loose.d.ts", "community": 142, "community_name": "Community 142", "source_file": "shims-loose.d.ts", "file_type": "code", "degree": 0}, {"id": "directives_index_ts", "label": "index.ts", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "index.ts", "community": 35, "community_name": "Community 35", "source_file": "directives/index.ts", "file_type": "code", "degree": 1}, {"id": "directives_index_setupglobdirectives", "label": "setupGlobDirectives()", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 10.5, "font": {"size": 0, "color": "#ffffff"}, "title": "setupGlobDirectives()", "community": 35, "community_name": "Community 35", "source_file": "directives/index.ts", "file_type": "code", "degree": 5}, {"id": "directives_core_roles_ts", "label": "roles.ts", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "roles.ts", "community": 35, "community_name": "Community 35", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 3}, {"id": "core_roles_checkrolepermission", "label": "checkRolePermission()", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "checkRolePermission()", "community": 35, "community_name": "Community 35", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 2}, {"id": "core_roles_removeelement", "label": "removeElement()", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "removeElement()", "community": 35, "community_name": "Community 35", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 2}, {"id": "core_roles_setuprolesdirective",Line truncated
const RAW_EDGES = [{"from": "app_vue", "to": "src_app_refreshbuttonautoicons", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_vue", "to": "src_app_refreshpaneltitleicons", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_vue", "to": "main_ts", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "utils_sys_console_ts", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "src_main_masksecret", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "src_main_logapicryptobootinfo", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_main_masksecret", "to": "src_main_logapicryptobootinfo", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_index_ts", "to": "directives_index_setupglobdirectives", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_index_setupglobdirectives", "to": "core_auth_setupauthdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "core_roles_setuprolesdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "business_highlight_setuphighlightdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "business_ripple_setuprippledirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_core_roles_ts", "to": "core_roles_checkrolepermission", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_roles_ts", "to": "core_roles_removeelement", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_roles_ts", "to": "core_roles_setuprolesdirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_roles_checkrolepermission", "to": "core_roles_removeelement", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_checkauthpermission", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_removeelement", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_setupauthdirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_auth_checkauthpermission", "to": "core_auth_removeelement", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_ripple_ts", "to": "business_ripple_setuprippledirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_highlightcode", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_insertlinenumbers", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_addcopybutton", "label": "contains", "title": "contains [EXTRACTED]", "dLine truncated
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Community 0", "count": 474}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 138}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 119}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 109}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 108}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 101}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 100}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 96}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 92}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 92}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 87}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 80}, {"cid": 12, "color": "#E15759", "label": "Community 12", "count": 74}, {"cid": 13, "color": "#76B7B2", "label": "Community 13", "count": 70}, {"cid": 14, "color": "#59A14F", "label": "Community 14", "count": 69}, {"cid": 15, "color": "#EDC948", "label": "Community 15", "count": 69}, {"cid": 16, "color": "#B07AA1", "label": "Community 16", "count": 62}, {"cid": 17, "color": "#FF9DA7", "label": "Community 17", "count": 55}, {"cid": 18, "color": "#9C755F", "label": "Community 18", "count": 50}, {"cid": 19, "color": "#BAB0AC", "label": "Community 19", "count": 48}, {"cid": 20, "color": "#4E79A7", "label": "Community 20", "count": 47}, {"cid": 21, "color": "#F28E2B", "label": "Community 21", "count": 47}, {"cid": 22, "color": "#E15759", "label": "Community 22", "count": 47}, {"cid": 23, "color": "#76B7B2", "label": "Community 23", "count": 43}, {"cid": 24, "color": "#59A14F", "label": "Community 24", "count": 42}, {"cid": 25, "color": "#EDC948", "label": "Community 25", "count": 41}, {"cid": 26, "color": "#B07AA1", "label": "Community 26", "count": 37}, {"cid": 27, "color": "#FF9DA7", "label": "Community 27", "count": 36}, {"cid": 28, "color": "#9C755F", "label": "Community 28", "count": 36}, {"cid": 29, "color": "#BAB0AC", "label": "Community 29", "count": 35}, {"cid": 30, "color": "#4E79A7", "label": "Community 30", "count": 34}, {"cid": 31, "color": "#F28E2B", "label": "Community 31", "count": 34}, {"cid": 32, "color": "#E15759", "label": "Community 32", "count": 28}, {"cid": 33, "color": "#76B7B2", "label": "Community 33", "count": 25}, {"cid": 34, "color": "#59A14F", "label": "Community 34", "count": 24}, {"cid": 35, "color": "#EDC948", "label": "Community 35", "count": 22}, {"cid": 36, "color": "#B07AA1", "label": "Community 36", "count": 20}, {"cid": 37, "color": "#FF9DA7", "label": "Community 37", "count": 20}, {"cid": 38, "color": "#9C755F", "label": "Community 38", "count": 19}, {"cid": 39, "color": "#BAB0AC", "label": "Community 39", "count": 17}, {"cid": 40, "color": "#4E79A7", "label": "Community 40", "count": 17}, {"cid": 41, "color": "#F28E2B", "label": "Community 41", "count": 16}, {"cid": 42, "color": "#E15759", "label": "Community 42", "count": 14}, {"cid": 43, "color": "#76B7B2", "label": "Community 43", "count": 13}, {"cid": 44, "color": "#59A14F", "label": "Community 44", "count": 9}, {"cid": 45, "color": "#EDC948", "label": "Community 45", "count": 9}, {"cid": 46, "color": "#B07AA1", "label": "Community 46", "count": 9}, {"cid": 47, "color": "#FF9DA7", "label": "Community 47", "count": 9}, {"cid": 48, "color": "#9C755F", "label": "Community 48", "count": 9}, {"cid": 49, "color": "#BAB0AC", "label": "Community 49", "count": 8}, {"cid": 50, "color": "#4E79A7", "label": "Community 50", "count": 8}, {"cid": 51, "color": "#F28E2B", "label": "Community 51", "count": 8}, {"cid": 52, "color": "#E15759", "label": "Community 52", "count": 7}, {"cid": 53, "color": "#76B7B2", "label": "Community 53", "count": 7}, {"cid": 54, "color": "#59A14F", "label": "Community 54", "count": 7}, {"cid": 55, "color": "#EDC948", "label": "Community 55", "count": 6}, {"cid": 56, "color": "#B07AA1", "label": "Community 56", "count": 6}, {"cid": 57, "color": "#FF9DA7", "label": "Community 57", "count": 5}, {"cid": 58, "color": "#9C755F", "label": "Community 58", "count": 5}, {"cid": 59, "color": "#BAB0AC", "label": "Community 59", "count": 5}, {"cid": 60, "color": "#4E79A7", "label": "Community 60", "count": 5}, {"cid": 61, "color": "#F28E2B", "label": "Community 61", "count": 5}, {"cid": 62, "color": "#E15759", "label": "Community 62", "count": 4}, {"cid": 63, "color": "#76B7B2", "label": "Community 63", "count": 4}, {"cid": 64, "color": "#59A14F", "label": "Community 64", "count": 4}, {"cid": 65, "color": "#EDC948", "label": "Community 65", "count": 4}, {"cid": 66, "color": "#B07AA1", "label": "Community 66", "count": 4}, {"cid": 67, "color": "#FF9DA7", "label": "Community 67", "count": 4}, {"cid": 68, "color": "#9C755F", "label": "Community 68", "count": 3}, {"cid": 69, "color": "#BAB0AC", "label": "Community 69", "count": 3}, {"cid": 70, "color": "#4E79A7", "label": "Community Line truncated
const RAW_NODES = [{"id": "app_vue", "label": "App.vue", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "App.vue", "community": 55, "community_name": "Community 55", "source_file": "App.vue", "file_type": "code", "degree": 3}, {"id": "src_app_refreshbuttonautoicons", "label": "refreshButtonAutoIcons()", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "refreshButtonAutoIcons()", "community": 55, "community_name": "Community 55", "source_file": "App.vue", "file_type": "code", "degree": 1}, {"id": "src_app_refreshpaneltitleicons", "label": "refreshPanelTitleIcons()", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "refreshPanelTitleIcons()", "community": 55, "community_name": "Community 55", "source_file": "App.vue", "file_type": "code", "degree": 1}, {"id": "main_ts", "label": "main.ts", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 10.4, "font": {"size": 0, "color": "#ffffff"}, "title": "main.ts", "community": 55, "community_name": "Community 55", "source_file": "main.ts", "file_type": "code", "degree": 4}, {"id": "src_main_masksecret", "label": "maskSecret()", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "maskSecret()", "community": 55, "community_name": "Community 55", "source_file": "main.ts", "file_type": "code", "degree": 2}, {"id": "src_main_logapicryptobootinfo", "label": "logApiCryptoBootInfo()", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "logApiCryptoBootInfo()", "community": 55, "community_name": "Community 55", "source_file": "main.ts", "file_type": "code", "degree": 2}, {"id": "env_d_ts", "label": "env.d.ts", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "env.d.ts", "community": 146, "community_name": "Community 146", "source_file": "env.d.ts", "file_type": "code", "degree": 0}, {"id": "shims_loose_d_ts", "label": "shims-loose.d.ts", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "shims-loose.d.ts", "community": 147, "community_name": "Community 147", "source_file": "shims-loose.d.ts", "file_type": "code", "degree": 0}, {"id": "directives_index_ts", "label": "index.ts", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "index.ts", "community": 32, "community_name": "Community 32", "source_file": "directives/index.ts", "file_type": "code", "degree": 1}, {"id": "directives_index_setupglobdirectives", "label": "setupGlobDirectives()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.5, "font": {"size": 0, "color": "#ffffff"}, "title": "setupGlobDirectives()", "community": 32, "community_name": "Community 32", "source_file": "directives/index.ts", "file_type": "code", "degree": 5}, {"id": "directives_core_roles_ts", "label": "roles.ts", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "roles.ts", "community": 32, "community_name": "Community 32", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 3}, {"id": "core_roles_checkrolepermission", "label": "checkRolePermission()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "checkRolePermission()", "community": 32, "community_name": "Community 32", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 2}, {"id": "core_roles_removeelement", "label": "removeElement()", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "removeElement()", "community": 32, "community_name": "Community 32", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 2}, {"id": "core_roles_setuprolesdirective",Line truncated
const RAW_EDGES = [{"from": "app_vue", "to": "src_app_refreshbuttonautoicons", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_vue", "to": "src_app_refreshpaneltitleicons", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_vue", "to": "main_ts", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "utils_sys_console_ts", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "src_main_masksecret", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "src_main_logapicryptobootinfo", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_main_masksecret", "to": "src_main_logapicryptobootinfo", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_index_ts", "to": "directives_index_setupglobdirectives", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_index_setupglobdirectives", "to": "core_auth_setupauthdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "core_roles_setuprolesdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "business_highlight_setuphighlightdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "business_ripple_setuprippledirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_core_roles_ts", "to": "core_roles_checkrolepermission", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_roles_ts", "to": "core_roles_removeelement", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_roles_ts", "to": "core_roles_setuprolesdirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_roles_checkrolepermission", "to": "core_roles_removeelement", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_checkauthpermission", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_removeelement", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_setupauthdirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_auth_checkauthpermission", "to": "core_auth_removeelement", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_ripple_ts", "to": "business_ripple_setuprippledirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_highlightcode", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_insertlinenumbers", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_addcopybutton", "label": "contains", "title": "contains [EXTRACTED]", "dLine truncated
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Community 0", "count": 552}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 117}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 110}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 110}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 107}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 102}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 100}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 95}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 89}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 88}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 84}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 82}, {"cid": 12, "color": "#E15759", "label": "Community 12", "count": 79}, {"cid": 13, "color": "#76B7B2", "label": "Community 13", "count": 74}, {"cid": 14, "color": "#59A14F", "label": "Community 14", "count": 69}, {"cid": 15, "color": "#EDC948", "label": "Community 15", "count": 69}, {"cid": 16, "color": "#B07AA1", "label": "Community 16", "count": 62}, {"cid": 17, "color": "#FF9DA7", "label": "Community 17", "count": 59}, {"cid": 18, "color": "#9C755F", "label": "Community 18", "count": 54}, {"cid": 19, "color": "#BAB0AC", "label": "Community 19", "count": 52}, {"cid": 20, "color": "#4E79A7", "label": "Community 20", "count": 51}, {"cid": 21, "color": "#F28E2B", "label": "Community 21", "count": 50}, {"cid": 22, "color": "#E15759", "label": "Community 22", "count": 47}, {"cid": 23, "color": "#76B7B2", "label": "Community 23", "count": 42}, {"cid": 24, "color": "#59A14F", "label": "Community 24", "count": 37}, {"cid": 25, "color": "#EDC948", "label": "Community 25", "count": 36}, {"cid": 26, "color": "#B07AA1", "label": "Community 26", "count": 35}, {"cid": 27, "color": "#FF9DA7", "label": "Community 27", "count": 34}, {"cid": 28, "color": "#9C755F", "label": "Community 28", "count": 33}, {"cid": 29, "color": "#BAB0AC", "label": "Community 29", "count": 25}, {"cid": 30, "color": "#4E79A7", "label": "Community 30", "count": 24}, {"cid": 31, "color": "#F28E2B", "label": "Community 31", "count": 24}, {"cid": 32, "color": "#E15759", "label": "Community 32", "count": 22}, {"cid": 33, "color": "#76B7B2", "label": "Community 33", "count": 22}, {"cid": 34, "color": "#59A14F", "label": "Community 34", "count": 21}, {"cid": 35, "color": "#EDC948", "label": "Community 35", "count": 20}, {"cid": 36, "color": "#B07AA1", "label": "Community 36", "count": 19}, {"cid": 37, "color": "#FF9DA7", "label": "Community 37", "count": 19}, {"cid": 38, "color": "#9C755F", "label": "Community 38", "count": 17}, {"cid": 39, "color": "#BAB0AC", "label": "Community 39", "count": 17}, {"cid": 40, "color": "#4E79A7", "label": "Community 40", "count": 17}, {"cid": 41, "color": "#F28E2B", "label": "Community 41", "count": 16}, {"cid": 42, "color": "#E15759", "label": "Community 42", "count": 14}, {"cid": 43, "color": "#76B7B2", "label": "Community 43", "count": 14}, {"cid": 44, "color": "#59A14F", "label": "Community 44", "count": 13}, {"cid": 45, "color": "#EDC948", "label": "Community 45", "count": 13}, {"cid": 46, "color": "#B07AA1", "label": "Community 46", "count": 9}, {"cid": 47, "color": "#FF9DA7", "label": "Community 47", "count": 9}, {"cid": 48, "color": "#9C755F", "label": "Community 48", "count": 9}, {"cid": 49, "color": "#BAB0AC", "label": "Community 49", "count": 9}, {"cid": 50, "color": "#4E79A7", "label": "Community 50", "count": 9}, {"cid": 51, "color": "#F28E2B", "label": "Community 51", "count": 9}, {"cid": 52, "color": "#E15759", "label": "Community 52", "count": 8}, {"cid": 53, "color": "#76B7B2", "label": "Community 53", "count": 8}, {"cid": 54, "color": "#59A14F", "label": "Community 54", "count": 8}, {"cid": 55, "color": "#EDC948", "label": "Community 55", "count": 7}, {"cid": 56, "color": "#B07AA1", "label": "Community 56", "count": 7}, {"cid": 57, "color": "#FF9DA7", "label": "Community 57", "count": 6}, {"cid": 58, "color": "#9C755F", "label": "Community 58", "count": 6}, {"cid": 59, "color": "#BAB0AC", "label": "Community 59", "count": 5}, {"cid": 60, "color": "#4E79A7", "label": "Community 60", "count": 5}, {"cid": 61, "color": "#F28E2B", "label": "Community 61", "count": 5}, {"cid": 62, "color": "#E15759", "label": "Community 62", "count": 5}, {"cid": 63, "color": "#76B7B2", "label": "Community 63", "count": 5}, {"cid": 64, "color": "#59A14F", "label": "Community 64", "count": 5}, {"cid": 65, "color": "#EDC948", "label": "Community 65", "count": 4}, {"cid": 66, "color": "#B07AA1", "label": "Community 66", "count": 4}, {"cid": 67, "color": "#FF9DA7", "label": "Community 67", "count": 4}, {"cid": 68, "color": "#9C755F", "label": "Community 68", "count": 4}, {"cid": 69, "color": "#BAB0AC", "label": "Community 69", "count": 4}, {"cid": 70, "color": "#4E79A7", "label": "CommunitLine truncated
// HTML-escape helper — prevents XSS when injecting graph data into innerHTML
function esc(s) {
File diff suppressed because it is too large. Load diff
+25 -19
View File
@@ -17,8 +17,8 @@
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/common/index.ts": 1781272556.3597305,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/directive/directive.d.ts": 1781272556.3601494,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/api/api.d.ts": 1781272556.3606477,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts": 1786006340.0068274,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/auto-imports.d.ts": 1786005792.7525885,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts": 1786415187.7799106,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/auto-imports.d.ts": 1786413529.8487704,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/store/index.ts": 1781272556.364766,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/router/index.ts": 1782394569.8806834,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/composables/useAttachmentActions.ts": 1783921717.4015942,
@@ -45,13 +45,14 @@
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/patch-el-select-filterable.ts": 1781272556.3791182,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/storage-slot-range-fill.ts": 1785235070.1226468,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/storage-slot-options.ts": 1785235070.1219137,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-form-value-display.ts": 1786364516.517105,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-tabs.ts": 1785209209.371611,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/protocol-doc-label.ts": 1781272556.3840382,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/user-avatar.ts": 1781403605.517818,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/fullscreen-loading.ts": 1781272556.3849921,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/chinese-numeral-parse.ts": 1782960575.662593,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/sample-production-reception-fields.ts": 1782806741.4880455,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-upload-file-type.ts": 1785145511.867549,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-upload-file-type.ts": 1786413851.5280254,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-owner-person-select-rule.ts": 1785401001.9203484,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-form-create-post.ts": 1785394335.3053484,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-trip-kit-runtime.ts": 1785412937.5821183,
@@ -59,7 +60,7 @@
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-approval-print-related.ts": 1785145511.865531,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-material-ui.ts": 1781525352.6976836,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-work-order-tabs.ts": 1783326303.9709864,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-overtime-kit-rule.ts": 1785488986.9903543,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-overtime-kit-rule.ts": 1786374586.9544816,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/rmb-upper.test.ts": 1785380467.5004647,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-work-order-unfinished-badge.ts": 1782878267.729195,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-money-field-rule.ts": 1785381038.6256208,
@@ -72,6 +73,7 @@
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/router.ts": 1781272556.3875713,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-mine-task-groups.ts": 1785209209.7549982,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-mine-task-groups.ts": 1783327864.4037368,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-overtime-hours.test.ts": 1786373618.5292711,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/expected-cell-count.ts": 1782705039.2515786,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/protocol-payment-labels.ts": 1782893910.9937537,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/status-tag-registry.ts": 1785206796.3246918,
@@ -81,7 +83,7 @@
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-menu-badge.ts": 1785990724.1404996,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-form-create-receive-account.ts": 1785390573.9898896,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-trip-days.test.ts": 1785407049.2669108,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-overtime-kit-runtime.ts": 1785489676.7154438,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-overtime-kit-runtime.ts": 1786374590.6903448,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-confirmation-kit-rule.ts": 1785488986.1610565,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/decimal-input-format.ts": 1782807247.117702,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-form-create-confirmation-kit.ts": 1785488978.7074184,
@@ -91,6 +93,7 @@
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-work-order-attachment-export.ts": 1782962844.3685946,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-receive-account-value.ts": 1785390441.8286228,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/datetime-display.ts": 1782806208.3904786,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-form-value-display.test.ts": 1786364545.4796336,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/sample-reception-lab-storage-code.ts": 1782378453.1031013,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/outbound-qc-pilot-view-sections.ts": 1781566346.7618802,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-app-icons.ts": 1785992369.9430938,
@@ -102,6 +105,7 @@
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-item-param-options.ts": 1782446792.147386,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/clinical-payment-flow-steps.ts": 1782806499.3105526,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-leave-hours.ts": 1785397673.1590223,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-overtime-hours.ts": 1786373623.0874693,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-form-create-leave-kit.ts": 1785488971.141004,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-work-order-step-badge.ts": 1783307221.345424,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-owner-field-defaults.ts": 1785401266.0298183,
@@ -114,7 +118,7 @@
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-confirmation-date.ts": 1785403063.4649312,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/sample-reception-view-sections.ts": 1783389099.9667985,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-labels.ts": 1783306730.912153,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-approval-print.ts": 1785412931.7636745,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-approval-print.ts": 1786413856.470563,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-owner-dept-select-rule.ts": 1785401003.0360808,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/inbound-sample-special-mark.ts": 1782889894.1376855,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-receive-account-value.test.ts": 1785390443.3642433,
@@ -160,7 +164,7 @@
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-task-editor-cache.ts": 1782602746.754815,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/protocol-pay-mode-switch.ts": 1785145536.399596,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-resignation-kit-runtime.ts": 1785405017.8343015,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-progress-person-lines.ts": 1785145511.8667505,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-progress-person-lines.ts": 1786375203.836954,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-form-create-person.ts": 1785385009.8220263,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-post-select-rule.ts": 1785394334.9268312,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/protocol-payment-installment.ts": 1783329873.2829163,
@@ -322,20 +326,21 @@
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaFlowPreview.vue": 1785392987.9755206,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/oa-condition-fields.ts": 1786002784.7150648,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaPersonSelect.vue": 1785388355.4534001,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaOvertimeKit.vue": 1785404041.649327,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaApprovalPrintSheet.vue": 1785145511.6904423,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaOvertimeKit.vue": 1786374594.648936,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaApprovalPrintSheet.vue": 1786413858.4258535,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaReceiveAccountSelect.vue": 1785391747.3254373,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaAppIcon.vue": 1785993067.5623589,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaLeaveKit.vue": 1785398262.9313874,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaPrintRelatedTree.vue": 1785145511.6928434,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaPrintRelatedTree.vue": 1786413860.094557,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaFcRow.vue": 1785145511.6907504,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaFormDesignerEmbed.vue": 1785145511.6925569,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaRelatedApproval.vue": 1785145511.6944861,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaRelatedApproval.vue": 1786415204.9434047,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaProgressChain.vue": 1785835679.6218681,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaInstanceDetailDialog.vue": 1786415214.1541882,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaResignationKit.vue": 1785405000.8028867,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaConfirmationKit.vue": 1785403411.176012,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaOwnerPersonSelect.vue": 1785401010.5990565,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaStartFormDialog.vue": 1785998284.1840684,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaStartFormDialog.vue": 1786374809.2291305,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaDeptSelect.vue": 1785382264.265851,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaTripItinerary.vue": 1785489392.2403016,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaMoneyField.vue": 1785382264.3025115,
@@ -345,7 +350,7 @@
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/OaTripKit.vue": 1785412919.2794502,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/flow-tree/FlowBranch.vue": 1786005666.7149255,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/flow-tree/ConditionRuleEditor.vue": 1786002982.9909377,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/flow-tree/FlowDesigner.vue": 1786002526.9068692,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/flow-tree/FlowDesigner.vue": 1786415781.0569599,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/components/oa-approval/flow-tree/types.ts": 1785835692.8501098,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/hooks/index.ts": 1781272556.653748,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/hooks/core/useFastEnter.ts": 1781272556.6454022,
@@ -373,6 +378,7 @@
"/Users/wuzilong/work/00code/zkxw/web-admin/src/api/workflow.ts": 1781272556.6579714,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/api/production-work-order.ts": 1785207996.1724288,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/api/sample-production-reception.ts": 1782719155.415783,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/api/cnHoliday.ts": 1786374778.8665812,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-material-amount-auth.ts": 1783916949.4248378,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task-result.ts": 1785145511.6871066,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/api/protocol-sample-collection.ts": 1781272556.659353,
@@ -390,7 +396,7 @@
"/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-lab-test-item.ts": 1781272556.666375,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/api/cell-product.ts": 1785290097.6330564,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/api/sample-sms-notification.ts": 1781272556.666838,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/api/oaApproval.ts": 1785990706.4427185,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/api/oaApproval.ts": 1786416767.4737556,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/api/material-stock-check.ts": 1781427280.4992144,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/api/research-donation.ts": 1782893816.502791,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/api/qc-task.ts": 1783327864.9737554,
@@ -479,13 +485,13 @@
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/oa-approval/drafts/index.vue": 1785999332.6019115,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/oa-approval/start/index.vue": 1785998815.7739394,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/oa-approval/form-designer-spike/index.vue": 1785145511.870818,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/oa-approval/done/index.vue": 1785145511.870267,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/oa-approval/mine/index.vue": 1785145511.871705,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/oa-approval/designer/index.vue": 1785993334.4776318,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/oa-approval/done/index.vue": 1786416827.7349942,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/oa-approval/mine/index.vue": 1786416848.7317674,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/oa-approval/designer/index.vue": 1786415778.485927,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/oa-approval/instances/detail.vue": 1785990793.1733682,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/oa-approval/cc/index.vue": 1785989789.4646015,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/oa-approval/cc/index.vue": 1786416869.1902819,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/oa-approval/apps/index.vue": 1785993209.2907894,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/oa-approval/pending/index.vue": 1785990736.3445468,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/oa-approval/pending/index.vue": 1786416827.4376934,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/output-type/index.vue": 1782893852.8585393,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/index.vue": 1785235070.1234033,
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/cell-product/SourceChainGraph.vue": 1782893852.699336,
Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

@@ -30,6 +30,14 @@ function run() {
'丙 待处理'
]
)
assert.deepEqual(
andLines.map((x) => ({ body: x.body, timestamp: x.timestamp })),
[
{ body: '甲 同意', timestamp: '2026-07-23 10:01:00' },
{ body: '乙 无异议', timestamp: '2026-07-23 10:20:00' },
{ body: '丙 待处理', timestamp: '' }
]
)
assert.equal(andLines[0].tone, 'ok')
assert.equal(andLines[2].tone, 'pending')
@@ -6,7 +6,9 @@ import assert from 'node:assert/strict'
import {
isOaUploadImageFile,
isOaUploadVideoFile,
getOaUploadDisplayName
getOaUploadDisplayName,
formatOaUploadPathsForPrint,
formatOaPrintAttachmentText
} from '../src/utils/oa-upload-file-type.ts'
assert.equal(isOaUploadImageFile({ name: 'a.png', url: 'https://x/a.png' }), true)
@@ -20,5 +22,41 @@ assert.equal(isOaUploadVideoFile({ name: 'a.pdf', url: 'https://x/a.pdf' }), fal
assert.equal(getOaUploadDisplayName({ name: '合同.pdf', url: 'https://x/path/合同.pdf' }), '合同.pdf')
assert.equal(getOaUploadDisplayName({ url: 'https://x/path/only-url.docx' }), 'only-url.docx')
assert.equal(
getOaUploadDisplayName({
url: '/minio/zkxw/oa-approval/202608/10/5691c39340f646afa55b750a1aa0ccc2.png'
}),
'5691c39340f646afa55b750a1aa0ccc2.png'
)
assert.deepEqual(
formatOaUploadPathsForPrint(
'/minio/zkxw/oa-approval/202608/10/5691c39340f646afa55b750a1aa0ccc2.png'
),
['5691c39340f646afa55b750a1aa0ccc2.png']
)
assert.deepEqual(
formatOaUploadPathsForPrint([
'/minio/zkxw/oa-approval/202608/10/5691c39340f646afa55b750a1aa0ccc2.png',
{ name: '合同.pdf', url: '/minio/zkxw/oa-approval/202608/10/abc.pdf' }
]),
['5691c39340f646afa55b750a1aa0ccc2.png', '合同.pdf']
)
assert.deepEqual(formatOaUploadPathsForPrint(''), [])
assert.deepEqual(formatOaUploadPathsForPrint(null), [])
assert.equal(
formatOaPrintAttachmentText(
'/minio/zkxw/oa-approval/202608/10/5691c39340f646afa55b750a1aa0ccc2.png'
),
'5691c39340f646afa55b750a1aa0ccc2.png'
)
assert.equal(
formatOaPrintAttachmentText(
'/minio/a.png、/minio/b.pdf'
),
'a.png、b.pdf'
)
assert.equal(formatOaPrintAttachmentText('安徽省 / 合肥市 / 瑶海区'), '安徽省 / 合肥市 / 瑶海区')
console.log('ok: oa upload file type helpers')
+15
View File
@@ -0,0 +1,15 @@
import request from '@/utils/http'
export type CnHolidayDay = {
dayDate: string
dayType: number
isRestDay: boolean
dayName?: string
}
export function fetchCnHolidayRange(start: string, end: string) {
return request.get<{ days: CnHolidayDay[] }>({
url: '/cn-holiday/range',
params: { start, end }
})
}
@@ -43,10 +43,14 @@
<OaPrintRelatedTree :blocks="row.blocks" />
</template>
<template v-else-if="row.urls?.length">
<div v-for="(u, ui) in row.urls" :key="ui" class="oa-print-url">{{ u }}</div>
<div v-for="(u, ui) in row.urls" :key="ui" class="oa-print-url">
{{ formatOaPrintAttachmentText(u) }}
</div>
</template>
<template v-else>
<span class="oa-print-text">{{ row.text || '-' }}</span>
<span class="oa-print-text">{{
formatOaPrintAttachmentText(row.text || '-')
}}</span>
</template>
</td>
</tr>
@@ -67,15 +71,16 @@
<td class="oa-print-flow__cell">
<div class="oa-print-flow__row">
<div class="oa-print-flow__left">{{ f.left }}</div>
<div class="oa-print-flow__right">{{ f.right }}</div>
<div v-if="f.right" class="oa-print-flow__right">{{ f.right }}</div>
</div>
<div v-if="f.personLines?.length" class="oa-print-flow__person-lines">
<div
v-for="(line, li) in f.personLines"
:key="li"
class="oa-print-flow__person-line"
class="oa-print-flow__row oa-print-flow__person-line"
>
{{ line }}
<div class="oa-print-flow__left">{{ line.left }}</div>
<div v-if="line.right" class="oa-print-flow__right">{{ line.right }}</div>
</div>
</div>
<div v-else-if="f.comment" class="oa-print-flow__comment">
@@ -105,6 +110,7 @@
<script setup lang="ts">
import type { OaPrintModel } from '@/utils/oa-approval-print'
import OaPrintRelatedTree from '@/components/oa-approval/OaPrintRelatedTree.vue'
import { formatOaPrintAttachmentText } from '@/utils/oa-upload-file-type'
defineOptions({ name: 'OaApprovalPrintSheet' })
@@ -238,15 +244,18 @@
justify-content: space-between;
gap: 16px;
align-items: flex-start;
width: 100%;
}
.oa-print-flow__left {
flex: 1;
flex: 1 1 auto;
min-width: 0;
}
.oa-print-flow__right {
flex-shrink: 0;
flex: 0 0 auto;
margin-left: auto;
text-align: right;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
@@ -265,6 +274,9 @@
.oa-print-flow__person-line {
line-height: 1.55;
}
.oa-print-flow__person-line .oa-print-flow__left {
word-break: break-word;
white-space: pre-wrap;
}
@@ -0,0 +1,250 @@
<!-- 关联审批单 · 只读详情弹窗(盖在发起表单等弹窗之上) -->
<template>
<el-dialog
:model-value="modelValue"
width="920px"
class="dialog-form-layout"
align-center
append-to-body
modal-class="protocol-dialog-mask"
destroy-on-close
:close-on-click-modal="false"
@update:model-value="emit('update:modelValue', $event)"
@closed="onClosed"
>
<template #header>
<div class="oa-detail-dlg__header">
<span class="oa-detail-dlg__header-title">{{ dialogTitle }}</span>
<el-tag v-if="detail?.status" size="small" :type="statusType(detail.status)">
{{ statusText(detail.status) }}
</el-tag>
</div>
</template>
<div v-loading="loading" class="oa-detail-dlg__body">
<section class="oa-detail-dlg__section">
<h3>表单内容</h3>
<div class="oa-detail-dlg__form-wrap">
<form-create
v-if="viewRule.length"
v-model="viewFormData"
:rule="viewRule"
:option="viewOption"
/>
<pre v-else-if="!loading" class="oa-detail-dlg__json">{{ prettyForm }}</pre>
</div>
</section>
<section class="oa-detail-dlg__section oa-detail-dlg__section--progress">
<OaProgressChain :items="timelineItems" />
</section>
</div>
<template #footer>
<el-button class="btn-ghost" @click="emit('update:modelValue', false)">
<el-icon><Close /></el-icon>
关闭
</el-button>
</template>
</el-dialog>
</template>
<script setup lang="ts">
import { computed, ref, watch } from 'vue'
import { Close } from '@element-plus/icons-vue'
import { ElMessage } from 'element-plus'
import { fetchOaInstanceDetail } from '@/api/oaApproval'
import OaProgressChain from '@/components/oa-approval/OaProgressChain.vue'
import {
OA_FC_DEFAULT_GUTTER,
ensureOaUploadRuleProps
} from '@/utils/oa-form-create-upload'
import { ensureLeaveKitRuleProps } from '@/utils/oa-leave-kit-runtime'
import { ensureOvertimeKitRuleProps } from '@/utils/oa-overtime-kit-runtime'
import { ensureConfirmationKitVisibility } from '@/utils/oa-confirmation-kit-runtime'
import { ensureOwnerFieldRuleProps } from '@/utils/oa-owner-field-defaults'
defineOptions({ name: 'OaInstanceDetailDialog' })
const props = defineProps<{
modelValue: boolean
instanceId: string
}>()
const emit = defineEmits<{
'update:modelValue': [boolean]
}>()
const loading = ref(false)
const detail = ref<any>(null)
const viewFormData = ref<Record<string, any>>({})
const viewRule = ref<any[]>([])
const viewOption = ref({
form: { disabled: true, labelPosition: 'top' },
row: { gutter: OA_FC_DEFAULT_GUTTER },
submitBtn: false,
resetBtn: false
})
const dialogTitle = computed(() => detail.value?.title || '审批详情')
const prettyForm = computed(() => JSON.stringify(detail.value?.formDataJson || {}, null, 2))
const timelineItems = computed(() => {
const list = detail.value?.progress
if (!Array.isArray(list) || !list.length) return []
return list
.filter((p: any) => {
const kind = String(p?.kind || '')
const status = String(p?.status || '')
const title = String(p?.title || '').trim()
if (kind === 'terminal' && (status === 'returned' || title === '已打回')) return false
return true
})
.map((p: any, idx: number) => ({
key: `${p.kind}-${p.nodeKey || p.taskId || idx}-${p.roundNo || 1}`,
title: p.title || '-',
status: p.status || 'info',
timestamp: p.timestamp || '',
assignee: p.assigneeUserName || p.assigneeUserId || '',
resolveSource: p.resolveSource || '',
commentText: p.commentText || '',
taskType: p.taskType || '',
kind: p.kind || '',
roundNo: p.roundNo || 1,
signMode: p.signMode || '',
people: Array.isArray(p.people)
? p.people.map((x: any) => ({
id: x.id || '',
nickName: x.nickName || x.id || '',
status: x.status || '',
timestamp: x.timestamp || '',
commentText: x.commentText || '',
taskId: x.taskId || '',
transferToUserId: x.transferToUserId || '',
transferToUserName: x.transferToUserName || ''
}))
: []
}))
})
function statusType(s: string) {
if (s === 'pending' || s === 'running') return 'warning'
if (s === 'approved' || s === 'completed' || s === 'done' || s === 'submitted') return 'success'
if (s === 'rejected' || s === 'cancelled' || s === 'returned') return 'danger'
if (s === 'not_reached') return 'info'
return 'info'
}
function statusText(s: string) {
const map: Record<string, string> = {
pending: '待处理',
running: '进行中',
approved: '已同意',
rejected: '已拒绝',
completed: '已完成',
cancelled: '已撤销',
done: '已结束',
submitted: '已提交',
not_reached: '未到达',
returned: '已打回',
transferred: '已转交'
}
return map[s] || s
}
function applySchema(schema: any, data: any) {
viewFormData.value = { ...(data || {}) }
const rule = Array.isArray(schema?.rule) ? schema.rule : Array.isArray(schema) ? schema : []
viewRule.value = ensureConfirmationKitVisibility(
ensureOwnerFieldRuleProps(
ensureOvertimeKitRuleProps(ensureLeaveKitRuleProps(ensureOaUploadRuleProps(rule)))
)
)
const savedGutter = Number(schema?.option?.row?.gutter)
viewOption.value = {
...(schema?.option || {}),
form: { ...(schema?.option?.form || {}), disabled: true, labelPosition: 'top' },
row: {
...(schema?.option?.row || {}),
gutter: savedGutter > 0 ? savedGutter : OA_FC_DEFAULT_GUTTER
},
submitBtn: false,
resetBtn: false
}
}
async function load() {
const id = String(props.instanceId || '').trim()
if (!id) return
loading.value = true
detail.value = null
viewRule.value = []
viewFormData.value = {}
try {
detail.value = await fetchOaInstanceDetail(id)
applySchema(detail.value?.formSchemaJson, detail.value?.formDataJson)
} catch (e: any) {
ElMessage.error(e?.message || '加载审批详情失败')
emit('update:modelValue', false)
} finally {
loading.value = false
}
}
function onClosed() {
detail.value = null
viewRule.value = []
viewFormData.value = {}
}
watch(
() => [props.modelValue, props.instanceId] as const,
([visible, id]) => {
if (visible && id) void load()
}
)
</script>
<style scoped lang="scss">
.oa-detail-dlg__header {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
padding-right: 28px;
}
.oa-detail-dlg__header-title {
font-size: 16px;
font-weight: 600;
color: var(--mint-text, #0f172a);
}
.oa-detail-dlg__body {
min-height: 120px;
}
.oa-detail-dlg__section {
h3 {
margin: 8px 0 12px;
font-size: 14px;
font-weight: 600;
color: var(--mint-text, #0f172a);
}
&--progress {
margin-top: 8px;
}
}
.oa-detail-dlg__form-wrap {
box-sizing: border-box;
padding: 4px 0 8px;
}
.oa-detail-dlg__json {
margin: 0;
padding: 0;
overflow: auto;
font-size: 12px;
background: transparent;
border: none;
}
</style>
@@ -1,4 +1,4 @@
<!-- 加班套件:仅组合容器;时长手动填写,无自动计算 -->
<!-- 加班套件:组合容器;时长可按起止自动计算,支持手改 -->
<template>
<div class="oa-overtime-kit" v-bind="$attrs">
<slot />
@@ -13,6 +13,10 @@
startField?: string
endField?: string
durationField?: string
workdayOvertimeStart?: string
workdayOvertimeEnd?: string
restBreakStart?: string
restBreakEnd?: string
}>()
</script>
@@ -13,7 +13,7 @@
class="oa-print-related__line"
>
<span class="oa-print-related__k">{{ line.label }}</span>
<span class="oa-print-related__v">{{ line.value }}</span>
<span class="oa-print-related__v">{{ formatOaPrintAttachmentText(line.value) }}</span>
</div>
<div v-if="b.children?.length" class="oa-print-related__children">
<OaPrintRelatedTree :blocks="b.children" />
@@ -24,6 +24,7 @@
<script setup lang="ts">
import type { RelatedPrintBlock } from '@/utils/oa-approval-print-related'
import { formatOaPrintAttachmentText } from '@/utils/oa-upload-file-type'
defineOptions({ name: 'OaPrintRelatedTree' })
@@ -115,38 +115,94 @@
@opened="loadCandidates"
>
<div class="oa-related-picker">
<el-input
v-model="keyword"
clearable
placeholder="搜索应用名 / 标题"
@keyup.enter="loadCandidates"
>
<template #append>
<el-button @click="loadCandidates">
<el-icon><Search /></el-icon>
</el-button>
</template>
</el-input>
<el-table
v-loading="pickerLoading"
class="list-table"
:data="candidates"
stripe
max-height="360"
@selection-change="onSelectionChange"
>
<el-table-column type="selection" width="48" :selectable="rowSelectable" />
<el-table-column prop="appName" label="流程名称" min-width="140" show-overflow-tooltip />
<el-table-column prop="title" label="标题" min-width="120" show-overflow-tooltip />
<el-table-column prop="applyTime" label="申请时间" min-width="160" />
</el-table>
<el-empty
v-if="!pickerLoading && !candidates.length"
description="暂无已通过的申请"
:image-size="64"
/>
<div v-if="pickerTotal > pageSize" class="oa-related-picker__pager">
<div class="oa-related-picker__tabs" role="tablist">
<button
v-for="t in tabOptions"
:key="t.value"
type="button"
class="oa-related-picker__tab"
:class="{ 'is-active': activeTab === t.value }"
role="tab"
@click="onTabChange(t.value)"
>
{{ t.label }}
</button>
</div>
<div class="oa-related-picker__filters">
<el-input
v-model="keyword"
clearable
placeholder="搜索流程名 / 标题"
@keyup.enter="onSearch"
>
<template #append>
<el-button @click="onSearch">
<el-icon><Search /></el-icon>
</el-button>
</template>
</el-input>
</div>
<div v-loading="pickerLoading" class="oa-related-picker__list">
<div
v-for="row in candidates"
:key="row.id"
class="oa-related-picker__card"
:class="{
'is-selected': pendingIds.includes(row.id),
'is-disabled': !rowSelectable(row)
}"
@click="togglePending(row)"
>
<el-checkbox
:model-value="pendingIds.includes(row.id)"
:disabled="!rowSelectable(row)"
@click.stop
@change="() => togglePending(row)"
/>
<div
class="oa-related-picker__avatar"
:style="{ background: avatarColor(row.initiatorUserName) }"
>
{{ shortName(row.initiatorUserName) }}
</div>
<div class="oa-related-picker__main">
<div class="oa-related-picker__title">
{{ row.displayTitle || row.appName || '审批单' }}
</div>
<div v-if="row.initiatorDeptName" class="oa-related-picker__meta">
部门:{{ row.initiatorDeptName }}
</div>
<div
v-for="(f, i) in (row.previewFields || []).slice(0, 2)"
:key="i"
class="oa-related-picker__meta"
>
{{ f.label }}:{{ f.value }}
</div>
<div class="oa-related-picker__time">{{ row.applyTime }}</div>
</div>
<div class="oa-related-picker__right" :class="statusClass(row.status)">
<template v-if="row.status === 'running'">
<div v-if="row.currentApproverNames">
{{ row.currentApproverNames }}(审批人)
</div>
<div>{{ row.statusText || '处理中' }}</div>
</template>
<template v-else>{{ row.statusText || row.status }}</template>
</div>
</div>
<el-empty
v-if="!pickerLoading && !candidates.length"
description="暂无审批单"
:image-size="64"
/>
</div>
<div class="oa-related-picker__pager">
<div class="oa-related-picker__selected">
已选 <em>{{ pendingIds.length }}</em> 项
</div>
<el-pagination
v-if="pickerTotal > pageSize"
:current-page="page"
:page-size="pageSize"
layout="prev, pager, next"
@@ -166,23 +222,30 @@
</el-button>
</template>
</el-dialog>
<OaInstanceDetailDialog
v-model="detailVisible"
:instance-id="detailInstanceId"
/>
</div>
</template>
<script setup lang="ts">
import { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'
import { useRouter } from 'vue-router'
import { Check, Close, Plus, Search } from '@element-plus/icons-vue'
import {
fetchOaRelatedCandidates,
fetchOaRelatedSummaries,
type OaRelatedCandidate,
type OaRelatedSummary
} from '@/api/oaApproval'
import { attachmentFullUrl } from '@/composables/useAttachmentActions'
import OaInstanceDetailDialog from '@/components/oa-approval/OaInstanceDetailDialog.vue'
defineOptions({ name: 'relatedApproval' })
const COLLAPSE_FIELD_COUNT = 3
const AVATAR_COLORS = ['#3b82f6', '#10b981', '#8b5cf6', '#f59e0b', '#06b6d4', '#ef4444']
const props = defineProps<{
modelValue?: string[] | string | null
@@ -195,21 +258,28 @@
(e: 'change', v: string[]): void
}>()
const router = useRouter()
const expanded = ref(new Set<string>())
const summaries = ref<OaRelatedSummary[]>([])
const isStack = ref(false)
let mql: MediaQueryList | null = null
const detailVisible = ref(false)
const detailInstanceId = ref('')
const pickerVisible = ref(false)
const pickerLoading = ref(false)
const keyword = ref('')
const page = ref(1)
const pageSize = 10
const candidates = ref<any[]>([])
const candidates = ref<OaRelatedCandidate[]>([])
const pickerTotal = ref(0)
const pendingIds = ref<string[]>([])
const activeTab = ref<'mine' | 'done' | 'cc'>('mine')
const tabOptions = [
{ value: 'mine' as const, label: '我发起的' },
{ value: 'done' as const, label: '我审批的' },
{ value: 'cc' as const, label: '抄送我的' }
]
const ids = computed(() => {
const raw = props.modelValue
if (Array.isArray(raw)) return raw.map((x) => String(x || '').trim()).filter(Boolean)
@@ -261,9 +331,13 @@
.map((s) => s.trim())
.filter(Boolean)
if (!parts.length) return []
const looksLikeUrl = parts.every(
(p) => /^https?:\/\//i.test(p) || p.startsWith('/') || /\.[a-z0-9]{2,8}(\?|$)/i.test(p)
)
const looksLikeUrl = parts.every((p) => {
if (/^https?:\/\//i.test(p) || p.startsWith('/')) return true
// 纯数字/金额小数(如 100.00)不是附件 URL
if (/^\d+(\.\d+)?$/.test(p)) return false
// 扩展名须含字母,避免把 .00/.56 误判为文件后缀
return /\.[a-z][a-z0-9]{0,7}(\?|$)/i.test(p)
})
return looksLikeUrl ? parts : []
}
@@ -298,11 +372,8 @@
function goDetail(id: string) {
if (!id) return
try {
router.push({ path: `/system-manage/oa-approval/instances/${id}` })
} catch {
/* designer iframe may lack router */
}
detailInstanceId.value = id
detailVisible.value = true
}
async function loadSummaries() {
@@ -329,6 +400,7 @@
function openPicker() {
if (props.disabled) return
activeTab.value = 'mine'
keyword.value = ''
page.value = 1
pendingIds.value = []
@@ -339,6 +411,7 @@
pickerLoading.value = true
try {
const res: any = await fetchOaRelatedCandidates({
tab: activeTab.value,
keyword: keyword.value.trim() || undefined,
page: page.value,
pageSize
@@ -353,12 +426,51 @@
}
}
function rowSelectable(row: any) {
function onTabChange(tab: 'mine' | 'done' | 'cc') {
if (activeTab.value === tab) return
activeTab.value = tab
page.value = 1
pendingIds.value = []
void loadCandidates()
}
function onSearch() {
page.value = 1
void loadCandidates()
}
function rowSelectable(row: OaRelatedCandidate) {
return !ids.value.includes(String(row?.id || ''))
}
function onSelectionChange(rows: any[]) {
pendingIds.value = (rows || []).map((r) => String(r.id || '')).filter(Boolean)
function togglePending(row: OaRelatedCandidate) {
if (!rowSelectable(row)) return
const id = String(row.id || '')
if (!id) return
const idx = pendingIds.value.indexOf(id)
if (idx >= 0) pendingIds.value = pendingIds.value.filter((x) => x !== id)
else pendingIds.value = [...pendingIds.value, id]
}
function shortName(name?: string) {
const s = String(name || '').trim()
if (!s) return '?'
return s.length <= 2 ? s : s.slice(-2)
}
function avatarColor(name?: string) {
const s = String(name || '')
let h = 0
for (let i = 0; i < s.length; i++) h = (h + s.charCodeAt(i) * 17) % AVATAR_COLORS.length
return AVATAR_COLORS[h]
}
function statusClass(status?: string) {
const s = String(status || '').trim()
if (s === 'completed') return 'is-success'
if (s === 'rejected') return 'is-danger'
if (s === 'cancelled') return 'is-muted'
return 'is-warning'
}
function onPageChange(p: number) {
@@ -551,11 +663,168 @@
.oa-related-picker {
display: flex;
flex-direction: column;
gap: 0;
}
.oa-related-picker__tabs {
display: flex;
gap: 0;
margin: 0 -4px 0;
border-bottom: 1px solid var(--mint-border, #e2e8f0);
}
.oa-related-picker__tab {
position: relative;
height: 40px;
padding: 0 14px;
border: 0;
background: transparent;
color: var(--mint-text-muted, #64748b);
font-size: 14px;
cursor: pointer;
}
.oa-related-picker__tab:hover {
color: var(--mint-text, #1e293b);
}
.oa-related-picker__tab.is-active {
color: var(--primary-dark, #059669);
font-weight: 600;
}
.oa-related-picker__tab.is-active::after {
content: '';
position: absolute;
right: 10px;
bottom: 0;
left: 10px;
height: 2px;
border-radius: 1px;
background: var(--primary, #10b981);
}
.oa-related-picker__filters {
padding: 12px 0;
}
.oa-related-picker__list {
max-height: 360px;
overflow: auto;
border: 1px solid var(--mint-border, #e2e8f0);
border-radius: 8px;
}
.oa-related-picker__card {
display: flex;
gap: 12px;
align-items: flex-start;
padding: 12px 14px;
border-bottom: 1px solid #f1f5f9;
cursor: pointer;
transition: background 0.12s;
}
.oa-related-picker__card:last-child {
border-bottom: 0;
}
.oa-related-picker__card:hover {
background: #f8fafc;
}
.oa-related-picker__card.is-selected {
background: var(--primary-bg, #ecfdf5);
}
.oa-related-picker__card.is-disabled {
opacity: 0.55;
cursor: not-allowed;
}
.oa-related-picker__avatar {
display: flex;
flex-shrink: 0;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
margin-top: 2px;
border-radius: 8px;
color: #fff;
font-weight: 600;
font-size: 13px;
letter-spacing: 0.5px;
}
.oa-related-picker__main {
flex: 1;
min-width: 0;
}
.oa-related-picker__title {
margin: 0 0 4px;
color: var(--mint-text, #1e293b);
font-weight: 600;
font-size: 14px;
line-height: 1.4;
}
.oa-related-picker__meta {
overflow: hidden;
color: var(--mint-text-muted, #64748b);
font-size: 12.5px;
text-overflow: ellipsis;
white-space: nowrap;
}
.oa-related-picker__time {
margin-top: 6px;
color: var(--mint-text-muted, #94a3b8);
font-size: 12px;
}
.oa-related-picker__right {
flex-shrink: 0;
min-width: 96px;
padding-top: 2px;
font-size: 12.5px;
font-weight: 500;
text-align: right;
line-height: 1.4;
}
.oa-related-picker__right.is-warning {
color: #d97706;
}
.oa-related-picker__right.is-success {
color: #059669;
}
.oa-related-picker__right.is-danger {
color: #ef4444;
}
.oa-related-picker__right.is-muted {
color: #64748b;
}
.oa-related-picker__pager {
display: flex;
justify-content: flex-end;
align-items: center;
justify-content: space-between;
margin-top: 10px;
}
.oa-related-picker__selected {
color: var(--mint-text-muted, #64748b);
font-size: 13px;
}
.oa-related-picker__selected em {
font-style: normal;
font-weight: 600;
color: var(--primary-dark, #059669);
}
</style>
@@ -25,6 +25,12 @@
恢复转正日期自动计算
</el-button>
</p>
<p v-if="overtimeDurationManualFields.length" class="oa-start__tip">
<el-button link type="primary" @click="restoreOvertimeAuto">
<el-icon><RefreshRight /></el-icon>
恢复加班时长自动计算
</el-button>
</p>
<p v-else-if="!formRule.length && !detailLoading" class="oa-start__tip">
该模板暂无表单字段,仍可直接提交。
</p>
@@ -58,9 +64,10 @@
<script setup lang="ts">
import { computed, ref, watch } from 'vue'
import { Check, Close, Document } from '@element-plus/icons-vue'
import { Check, Close, Document, RefreshRight } from '@element-plus/icons-vue'
import { ElMessage } from 'element-plus'
import { fetchUserList } from '@/api/admin'
import { fetchCnHolidayRange } from '@/api/cnHoliday'
import {
fetchCreateOaInstanceDraft,
fetchOaFlowPreview,
@@ -84,7 +91,11 @@
} from '@/utils/oa-leave-kit-runtime'
import {
applyOvertimeKitDefaults,
ensureOvertimeKitRuleProps
applyOvertimeKitDurationsToFormData,
ensureOvertimeKitRuleProps,
listOvertimeKitBindings,
markOvertimeDurationManual,
OVERTIME_MANUAL_PREFIX
} from '@/utils/oa-overtime-kit-runtime'
import { applyResignationKitDefaults } from '@/utils/oa-resignation-kit-runtime'
import {
@@ -146,11 +157,24 @@
let tripKitPrevSnapshot: Record<string, unknown> = {}
let confirmationKitSyncing = false
let confirmationKitPrevSnapshot: Record<string, unknown> = {}
let overtimeKitSyncing = false
let overtimeKitPrevSnapshot: Record<string, unknown> = {}
const overtimeRestMap: Record<string, boolean> = {}
const confirmationDateManualFields = computed(() =>
listManualConfirmationDateFields({ rule: formRule.value }, formData.value)
)
const overtimeDurationManualFields = computed(() => {
const fields: string[] = []
for (const kit of listOvertimeKitBindings({ rule: formRule.value })) {
if (formData.value[OVERTIME_MANUAL_PREFIX + kit.durationField]) {
fields.push(kit.durationField)
}
}
return fields
})
function flowNeedsInitiatorSelect(node: any): boolean {
if (!node || typeof node !== 'object') return false
const cfg = node.approverConfig || {}
@@ -219,6 +243,7 @@
leaveKitPrevSnapshot = {}
tripKitPrevSnapshot = {}
confirmationKitPrevSnapshot = {}
overtimeKitPrevSnapshot = {}
needInitiatorSelect.value = false
initiatorSelectByNode.value = {}
flowSteps.value = []
@@ -274,6 +299,8 @@
const linked = applyConfirmationKitDateLinkage({ rule: formRule.value }, data)
formData.value = linked.data
confirmationKitPrevSnapshot = { ...linked.data }
overtimeKitPrevSnapshot = { ...linked.data }
void syncOvertimeKitDurations()
const flow = detail?.flowTreeJson || {}
const root = flow.root || flow
needInitiatorSelect.value = flowNeedsInitiatorSelect(root)
@@ -338,6 +365,8 @@
confirmationKitPrevSnapshot = { ...linked.data }
leaveKitPrevSnapshot = { ...formData.value }
tripKitPrevSnapshot = { ...formData.value }
overtimeKitPrevSnapshot = { ...formData.value }
void syncOvertimeKitDurations()
const sel = detail?.initiatorSelectByNode
initiatorSelectByNode.value =
sel && typeof sel === 'object' && !Array.isArray(sel) ? { ...sel } : {}
@@ -360,6 +389,8 @@
formData.value,
(userStore.info || userStore.getUserInfo) as any
)
overtimeKitPrevSnapshot = { ...formData.value }
void syncOvertimeKitDurations()
} catch {
/* 预填失败仍可手工填 */
}
@@ -530,12 +561,137 @@
})
}
async function ensureOvertimeHolidayRange(startYmd: string, endYmd: string) {
const start = String(startYmd || '').trim().slice(0, 10)
const end = String(endYmd || '').trim().slice(0, 10)
if (!start || !end) return
let lo = start
let hi = end
if (lo > hi) {
const t = lo
lo = hi
hi = t
}
const begin = new Date(lo + 'T00:00:00')
const finish = new Date(hi + 'T00:00:00')
if (Number.isNaN(begin.getTime()) || Number.isNaN(finish.getTime())) return
let allPresent = true
for (let d = new Date(begin); d <= finish; d.setDate(d.getDate() + 1)) {
const y = d.getFullYear()
const m = String(d.getMonth() + 1).padStart(2, '0')
const day = String(d.getDate()).padStart(2, '0')
const key = `${y}-${m}-${day}`
if (!(key in overtimeRestMap)) {
allPresent = false
break
}
}
if (allPresent) return
try {
const res = await fetchCnHolidayRange(lo, hi)
const days = res?.days || []
for (const day of days) {
const key = String(day?.dayDate || '').trim().slice(0, 10)
if (!key) continue
overtimeRestMap[key] = !!day.isRestDay
}
} catch {
/* 失败保留已有 map,计算回退周末规则 */
}
}
function isRestDayResolver(ymd: string): boolean {
if (ymd in overtimeRestMap) return overtimeRestMap[ymd]
const d = new Date(ymd + 'T00:00:00')
const w = d.getDay()
return w === 0 || w === 6
}
async function syncOvertimeKitDurations() {
if (overtimeKitSyncing) return
if (!formRule.value.length) return
const schema = { rule: formRule.value }
const bindings = listOvertimeKitBindings(schema)
if (!bindings.length) return
overtimeKitSyncing = true
try {
let minYmd = ''
let maxYmd = ''
for (const kit of bindings) {
for (const field of [kit.startField, kit.endField]) {
const ymd = String(formData.value[field] || '')
.trim()
.slice(0, 10)
if (ymd.length < 10) continue
if (!minYmd || ymd < minYmd) minYmd = ymd
if (!maxYmd || ymd > maxYmd) maxYmd = ymd
}
}
if (minYmd && maxYmd) {
await ensureOvertimeHolidayRange(minYmd, maxYmd)
}
const curr = { ...formData.value }
for (const kit of bindings) {
const prevDur = overtimeKitPrevSnapshot[kit.durationField]
const currDur = curr[kit.durationField]
const startChanged = overtimeKitPrevSnapshot[kit.startField] !== curr[kit.startField]
const endChanged = overtimeKitPrevSnapshot[kit.endField] !== curr[kit.endField]
const durChanged = prevDur !== currDur
if (
durChanged &&
!startChanged &&
!endChanged &&
currDur !== undefined &&
currDur !== ''
) {
Object.assign(curr, markOvertimeDurationManual(curr, kit.durationField, true))
}
}
const { data, changed } = applyOvertimeKitDurationsToFormData(
schema,
curr,
isRestDayResolver
)
overtimeKitPrevSnapshot = { ...data }
const manualKeysChanged = bindings.some(
(k) =>
!!data[OVERTIME_MANUAL_PREFIX + k.durationField] !==
!!formData.value[OVERTIME_MANUAL_PREFIX + k.durationField]
)
const durationChanged = bindings.some(
(k) => data[k.durationField] !== formData.value[k.durationField]
)
if (changed || manualKeysChanged || durationChanged) {
formData.value = data
}
} finally {
queueMicrotask(() => {
overtimeKitSyncing = false
})
}
}
function restoreOvertimeAuto() {
let data = { ...formData.value }
for (const kit of listOvertimeKitBindings({ rule: formRule.value })) {
data = markOvertimeDurationManual(data, kit.durationField, false)
}
formData.value = data
void syncOvertimeKitDurations()
}
watch(
formData,
() => {
syncLeaveKitDurations()
syncTripKitDurations()
syncConfirmationKitDates()
void syncOvertimeKitDurations()
scheduleFlowPreview()
},
{ deep: true }
@@ -299,7 +299,7 @@
import { computed, nextTick, onMounted, reactive, ref, watch } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Plus, Close, Check, UserFilled } from '@element-plus/icons-vue'
import { fetchUserList, fetchPostList, fetchDeptTree } from '@/api/admin'
import { fetchUserOptions, fetchPostList, fetchDeptTree } from '@/api/admin'
import { MAX_ADMIN_LIST_PAGE_SIZE } from '@/utils/fetch-paged-list'
import type {
ConditionCandidate,
@@ -561,22 +561,13 @@
async function loadUsers() {
userLoading.value = true
try {
const pageSize = MAX_ADMIN_LIST_PAGE_SIZE
const raw: any[] = []
let page = 1
for (;;) {
const res = await fetchUserList({ page, pageSize, status: '1' })
const list = res?.list || []
raw.push(...list)
if (list.length < pageSize) break
if (typeof res?.total === 'number' && raw.length >= res.total) break
page += 1
}
userOptions.value = raw.map((u) => ({
id: u.id,
nickName: u.nickName || '',
userNo: u.userNo || ''
}))
// 轻量 options 接口,避免 /users 列表 N+1 关联补全拖慢设计器
const opts = (await fetchUserOptions()) || []
userOptions.value = opts.map((o) => ({
id: String(o.value || ''),
nickName: String(o.label || ''),
userNo: ''
})).filter((u) => u.id)
} finally {
userLoading.value = false
}
+59 -33
View File
@@ -17,7 +17,12 @@ import { formatPersonDisplay } from '@/utils/oa-person-value'
import { formatPostDisplay } from '@/utils/oa-post-value'
import { formatMoneyDisplay } from '@/utils/money-format'
import { formatReceiveAccountDisplay } from '@/utils/oa-receive-account-value'
import {
formatFormValueDisplay,
formatRegionLikeDisplay
} from '@/utils/oa-form-value-display'
import { toRmbUpper } from '@/utils/rmb-upper'
import { formatOaUploadPathsForPrint } from '@/utils/oa-upload-file-type'
export const OA_PRINT_COMPANY_NAME = '安徽中科兴皖医学研究有限公司'
@@ -29,19 +34,24 @@ export type OaPrintFieldRow = {
label: string
/** 普通文本(可含换行) */
text?: string
/** 附件 / 链接列表 */
/** 附件文件名 / 链接列表(上传字段仅文件名) */
urls?: string[]
/** 关联审批单多行块(优先于 text) */
blocks?: RelatedPrintBlock[]
}
export type OaPrintPersonLine = {
left: string
right: string
}
export type OaPrintFlowItem = {
left: string
right: string
/** @deprecated 多人节点改用 personLines;单人/发起人可保留 */
comment?: string
/** 或签/会签按人纯文本行 */
personLines?: string[]
/** 或签/会签按人行:左侧文案 + 右侧时间(右对齐) */
personLines?: OaPrintPersonLine[]
}
export type OaPrintModel = {
@@ -172,25 +182,7 @@ function extractUrls(value: unknown): string[] {
}
function formatScalar(value: unknown, sep = '、'): string {
if (value == null || value === '') return '-'
if (typeof value === 'boolean') return value ? '是' : '否'
if (typeof value === 'number') return String(value)
if (typeof value === 'string') return value.trim() || '-'
if (Array.isArray(value)) {
if (!value.length) return '-'
return value
.map((v) => formatScalar(v))
.filter((s) => s && s !== '-')
.join(sep)
}
if (typeof value === 'object') {
try {
return JSON.stringify(value)
} catch {
return String(value)
}
}
return String(value)
return formatFormValueDisplay(value, sep)
}
/** 日期/时间区间(FormCreate:日期区间、时间区间等)打印用 ~ 连接起止 */
@@ -322,14 +314,26 @@ async function walkRules(
continue
}
if (type === 'region' || type === 'cascader') {
const text = formatRegionLikeDisplay(value)
out.push({ label, text: text || '-' })
continue
}
if (type === 'tripItinerary') {
out.push({ label, text: formatTripItineraryForPrint(value) })
continue
}
if (UPLOAD_TYPES.has(type) || String(rule.name || '').toLowerCase().includes('upload')) {
const urls = extractUrls(value)
out.push({ label, urls: urls.length ? urls : [], text: urls.length ? undefined : '-' })
const dragTag = String(rule._fc_drag_tag || '').trim()
if (
UPLOAD_TYPES.has(type) ||
UPLOAD_TYPES.has(dragTag) ||
String(rule.name || '').toLowerCase().includes('upload') ||
dragTag.toLowerCase().includes('upload')
) {
const names = formatOaUploadPathsForPrint(value)
out.push({ label, urls: names.length ? names : [], text: names.length ? undefined : '-' })
continue
}
// 字符串里像 URL 列表的也拆开展示
@@ -349,21 +353,40 @@ async function walkRules(
}
}
function ensurePlainObject(raw: unknown): Record<string, any> {
if (raw == null) return {}
if (typeof raw === 'string') {
try {
const parsed = JSON.parse(raw)
return parsed && typeof parsed === 'object' ? (parsed as Record<string, any>) : {}
} catch {
return {}
}
}
if (typeof raw === 'object') return raw as Record<string, any>
return {}
}
async function buildFormRows(detail: any): Promise<OaPrintFieldRow[]> {
const schema = detail?.formSchemaJson
const formData = (detail?.formDataJson || {}) as Record<string, any>
const schema = ensurePlainObject(detail?.formSchemaJson)
const formData = ensurePlainObject(detail?.formDataJson)
const rule = Array.isArray(schema?.rule)
? schema.rule
: Array.isArray(schema)
? schema
: Array.isArray(detail?.formSchemaJson)
? detail.formSchemaJson
: []
const out: OaPrintFieldRow[] = []
await walkRules(rule, formData, out)
if (out.length) return out
// schema 缺失:兜底平铺 formData
// schema 缺失:兜底平铺 formData(附件路径收成文件名)
for (const [k, v] of Object.entries(formData)) {
const names = formatOaUploadPathsForPrint(v)
if (names.length && extractUrls(v).every((u) => /\/minio\//i.test(u) || /\.[a-z0-9]{2,5}(\?|$)/i.test(u))) {
out.push({ label: k, urls: names })
continue
}
const urls = extractUrls(v).filter(isHttpUrl)
if (urls.length) out.push({ label: k, urls })
if (urls.length) out.push({ label: k, urls: formatOaUploadPathsForPrint(urls) })
else out.push({ label: k, text: formatScalar(v) })
}
return out
@@ -380,10 +403,13 @@ function peopleDisplayNames(p: any): string[] {
return name ? [name] : []
}
function progressPersonLinesFromItem(p: any): string[] {
function progressPersonLinesFromItem(p: any): OaPrintPersonLine[] {
const people = Array.isArray(p?.people) ? p.people : []
if (!people.length) return []
return formatProgressPersonLines(people).map((x) => x.text)
return formatProgressPersonLines(people).map((x) => ({
left: x.body || x.text,
right: x.timestamp || ''
}))
}
function isCcProgressItem(p: any): boolean {
@@ -0,0 +1,47 @@
import { describe, it } from 'node:test'
import assert from 'node:assert/strict'
import {
formatFormValueDisplay,
formatRegionLikeDisplay,
formatUnknownObjectDisplay
} from './oa-form-value-display'
describe('oa-form-value-display', () => {
it('formats region path array and object', () => {
assert.equal(
formatRegionLikeDisplay(['安徽省', '合肥市', '蜀山区']),
'安徽省 / 合肥市 / 蜀山区'
)
assert.equal(
formatRegionLikeDisplay({
province: '安徽省',
city: '合肥市',
district: '蜀山区'
}),
'安徽省 / 合肥市 / 蜀山区'
)
})
it('never JSON.stringifies unknown objects', () => {
const text = formatFormValueDisplay({
foo: 1,
bar: 'baz',
id: 'hidden',
durationManual: true
})
assert.equal(text.includes('{'), false)
assert.equal(text.includes('hidden'), false)
assert.ok(text.includes('baz'))
})
it('formats trip-like object without dumping keys', () => {
const text = formatUnknownObjectDisplay({
transport: '汽车',
fromCity: '合肥',
toCity: '上海',
durationManual: false
})
assert.ok(text.includes('合肥 → 上海'))
assert.equal(text.includes('durationManual'), false)
})
})
@@ -0,0 +1,93 @@
/**
* OA 表单值可读化(打印 / 摘要兜底)
* 禁止把对象直接 JSON.stringify 到界面。
*/
export function formatRegionLikeDisplay(value: unknown): string {
if (value == null || value === '') return ''
if (typeof value === 'string') return value.trim()
if (Array.isArray(value)) {
const parts = value
.map((x) => {
if (x == null || x === '') return ''
if (typeof x === 'object') {
const o = x as Record<string, unknown>
return String(o.label || o.name || o.text || o.value || '').trim()
}
return String(x).trim()
})
.filter(Boolean)
return parts.join(' / ')
}
if (typeof value === 'object') {
const o = value as Record<string, unknown>
const path = [
String(o.province || o.provinceName || o.province_name || '').trim(),
String(o.city || o.cityName || o.city_name || '').trim(),
String(
o.district || o.districtName || o.area || o.areaName || o.district_name || ''
).trim()
].filter(Boolean)
if (path.length) return path.join(' / ')
return formatUnknownObjectDisplay(o)
}
return String(value).trim()
}
export function formatUnknownObjectDisplay(raw: Record<string, unknown>): string {
const named = String(raw.label || raw.name || raw.text || raw.value || '').trim()
if (named) return named
if (raw.accountType || raw.accountNo || raw.accountName) {
const parts = [
String(raw.accountType || '').trim(),
String(raw.accountName || '').trim(),
String(raw.accountNo || '').trim()
].filter(Boolean)
return parts.join(' · ')
}
if (raw.fromCity || raw.toCity || raw.transport) {
const fromCity = String(raw.fromCity || '').trim() || '-'
const toCity = String(raw.toCity || '').trim() || '-'
const transport = String(raw.transport || '').trim()
const tripType = String(raw.tripType || '').trim()
const bits = [
transport,
tripType,
`${fromCity} → ${toCity}`
].filter(Boolean)
return bits.join(' · ')
}
const skip = new Set(['id', 'uuid', 'key', 'durationManual', 'manual'])
const parts: string[] = []
for (const [k, v] of Object.entries(raw)) {
if (skip.has(k) || k.startsWith('__') || /id$/i.test(k)) continue
if (typeof v === 'boolean' || v == null || v === '') continue
if (typeof v === 'string' || typeof v === 'number') {
parts.push(String(v).trim())
}
}
return parts.filter(Boolean).join('、')
}
/** 标量/数组/对象统一可读化;对象绝不 JSON.stringify */
export function formatFormValueDisplay(value: unknown, sep = '、'): string {
if (value == null || value === '') return '-'
if (typeof value === 'boolean') return value ? '是' : '否'
if (typeof value === 'number') return String(value)
if (typeof value === 'string') return value.trim() || '-'
if (Array.isArray(value)) {
if (!value.length) return '-'
const parts = value
.map((v) => formatFormValueDisplay(v, sep))
.filter((s) => s && s !== '-')
return parts.length ? parts.join(sep) : '-'
}
if (typeof value === 'object') {
const text = formatUnknownObjectDisplay(value as Record<string, unknown>)
return text || '-'
}
return String(value)
}
@@ -0,0 +1,66 @@
import { describe, it } from 'node:test'
import assert from 'node:assert/strict'
import {
calcOvertimeHours,
DEFAULT_OVERTIME_WINDOWS,
type RestDayResolver
} from './oa-overtime-hours'
/** 固定:2026-08-07 周五工作日,08-08 周六休息日 */
const restMap: Record<string, boolean> = {
'2026-08-07': false,
'2026-08-08': true,
'2026-08-09': true
}
function isRestDay(ymd: string): boolean {
if (ymd in restMap) return restMap[ymd]
const d = new Date(ymd + 'T00:00:00')
const w = d.getDay()
return w === 0 || w === 6
}
describe('calcOvertimeHours', () => {
const w = DEFAULT_OVERTIME_WINDOWS
it('weekday 18:00-20:00 => 2.0', () => {
assert.equal(
calcOvertimeHours('2026-08-07 18:00', '2026-08-07 20:00', w, isRestDay),
2.0
)
})
it('weekday 14:00-18:00 => 0.5', () => {
assert.equal(
calcOvertimeHours('2026-08-07 14:00', '2026-08-07 18:00', w, isRestDay),
0.5
)
})
it('weekday 17:30 to next 08:30 => 15.0', () => {
assert.equal(
calcOvertimeHours('2026-08-07 17:30', '2026-08-08 08:30', w, isRestDay),
15.0
)
})
it('Saturday 09:00-15:00 => 4.0', () => {
assert.equal(
calcOvertimeHours('2026-08-08 09:00', '2026-08-08 15:00', w, isRestDay),
4.0
)
})
it('Fri 18:00 - Sat 12:00 => 17.5', () => {
assert.equal(
calcOvertimeHours('2026-08-07 18:00', '2026-08-08 12:00', w, isRestDay),
17.5
)
})
it('end <= start => null', () => {
assert.equal(
calcOvertimeHours('2026-08-07 20:00', '2026-08-07 18:00', w, isRestDay),
null
)
})
})
+200
View File
@@ -0,0 +1,200 @@
/** 加班套件:工作日/休息日窗口重叠小时数(与 backend oa_overtime_hours 对齐) */
export type OvertimeWindows = {
workdayOvertimeStart: string
workdayOvertimeEnd: string
restBreakStart: string
restBreakEnd: string
}
export const DEFAULT_OVERTIME_WINDOWS: OvertimeWindows = {
workdayOvertimeStart: '17:30',
workdayOvertimeEnd: '08:30',
restBreakStart: '11:30',
restBreakEnd: '13:30'
}
export type RestDayResolver = (ymd: string) => boolean
const DT_RE = /^(\d{4})-(\d{2})-(\d{2})[ T](\d{2}):(\d{2})$/
type Interval = [number, number]
function parseHm(hm: string): number | null {
const m = String(hm || '')
.trim()
.match(/^(\d{1,2}):(\d{2})$/)
if (!m) return null
const h = Number(m[1])
const min = Number(m[2])
if (h < 0 || h > 23 || min < 0 || min > 59) return null
return h * 60 + min
}
function parseDt(s: string): Date | null {
const m = String(s || '')
.trim()
.match(DT_RE)
if (!m) return null
const d = new Date(
Number(m[1]),
Number(m[2]) - 1,
Number(m[3]),
Number(m[4]),
Number(m[5]),
0,
0
)
return Number.isNaN(d.getTime()) ? null : d
}
function formatYmd(d: Date): string {
const y = d.getFullYear()
const mo = String(d.getMonth() + 1).padStart(2, '0')
const da = String(d.getDate()).padStart(2, '0')
return `${y}-${mo}-${da}`
}
function dayStartMs(d: Date): number {
return new Date(d.getFullYear(), d.getMonth(), d.getDate()).getTime()
}
function dayAtMinutes(d: Date, minutes: number): number {
return dayStartMs(d) + minutes * 60000
}
function mergeIntervals(intervals: Interval[]): Interval[] {
if (intervals.length === 0) return []
const sorted = [...intervals].sort((a, b) => a[0] - b[0])
const merged: Interval[] = [[sorted[0][0], sorted[0][1]]]
for (let i = 1; i < sorted.length; i++) {
const last = merged[merged.length - 1]
const [s, e] = sorted[i]
if (s <= last[1]) {
last[1] = Math.max(last[1], e)
} else {
merged.push([s, e])
}
}
return merged
}
function intersectInterval(a: Interval, b: Interval): Interval | null {
const lo = Math.max(a[0], b[0])
const hi = Math.min(a[1], b[1])
return hi > lo ? [lo, hi] : null
}
function subtractInterval(base: Interval, sub: Interval): Interval[] {
const [bs, be] = base
const [ss, se] = sub
if (se <= bs || ss >= be) return [base]
const out: Interval[] = []
if (ss > bs) out.push([bs, ss])
if (se < be) out.push([se, be])
return out
}
function subtractIntervals(base: Interval, subs: Interval[]): Interval[] {
let result: Interval[] = [base]
for (const sub of subs) {
const next: Interval[] = []
for (const r of result) {
next.push(...subtractInterval(r, sub))
}
result = next
}
return result
}
function intervalMinutes(intervals: Interval[]): number {
return intervals.reduce((sum, [a, b]) => sum + (b - a) / 60000, 0)
}
function buildWorkdayWindows(
anchorDay: Date,
windows: OvertimeWindows
): Interval | null {
const startMin = parseHm(windows.workdayOvertimeStart)
const endMin = parseHm(windows.workdayOvertimeEnd)
if (startMin == null || endMin == null) return null
const anchorStart = dayAtMinutes(anchorDay, startMin)
const nextDay = new Date(anchorDay)
nextDay.setDate(nextDay.getDate() + 1)
const anchorEnd = dayAtMinutes(nextDay, endMin)
if (anchorEnd <= anchorStart) return null
return [anchorStart, anchorEnd]
}
function buildRestDaySegments(day: Date, windows: OvertimeWindows): Interval[] {
const breakStart = parseHm(windows.restBreakStart)
const breakEnd = parseHm(windows.restBreakEnd)
if (breakStart == null || breakEnd == null) return []
const day0 = dayStartMs(day)
const nextDay = new Date(day)
nextDay.setDate(nextDay.getDate() + 1)
const dayEnd = dayStartMs(nextDay)
const segments: Interval[] = []
if (breakStart > 0) segments.push([day0, dayAtMinutes(day, breakStart)])
if (breakEnd < 24 * 60) segments.push([dayAtMinutes(day, breakEnd), dayEnd])
return segments.filter(([a, b]) => b > a)
}
/**
* 计算加班时长(小时,1 位小数)。
* end <= start 或非法输入返回 null。
*/
export function calcOvertimeHours(
startStr: string,
endStr: string,
windows: OvertimeWindows = DEFAULT_OVERTIME_WINDOWS,
isRestDay: RestDayResolver
): number | null {
const start = parseDt(startStr)
const end = parseDt(endStr)
if (!start || !end || end.getTime() <= start.getTime()) return null
const query: Interval = [start.getTime(), end.getTime()]
const startDay = new Date(start.getFullYear(), start.getMonth(), start.getDate())
const endDay = new Date(end.getFullYear(), end.getMonth(), end.getDate())
const workdayIntervals: Interval[] = []
const anchor = new Date(startDay)
anchor.setDate(anchor.getDate() - 1)
const lastAnchor = new Date(endDay)
while (anchor.getTime() <= lastAnchor.getTime()) {
const ymd = formatYmd(anchor)
if (!isRestDay(ymd)) {
const win = buildWorkdayWindows(anchor, windows)
if (win) {
const hit = intersectInterval(win, query)
if (hit) workdayIntervals.push(hit)
}
}
anchor.setDate(anchor.getDate() + 1)
}
const workdayMerged = mergeIntervals(workdayIntervals)
const restIntervals: Interval[] = []
const day = new Date(startDay)
while (day.getTime() <= endDay.getTime()) {
const ymd = formatYmd(day)
if (isRestDay(ymd)) {
for (const seg of buildRestDaySegments(day, windows)) {
const hit = intersectInterval(seg, query)
if (hit) {
const remaining = subtractIntervals(hit, workdayMerged)
restIntervals.push(...remaining)
}
}
}
day.setDate(day.getDate() + 1)
}
const totalMinutes = intervalMinutes(workdayMerged) + intervalMinutes(restIntervals)
return Math.round((totalMinutes / 60) * 10) / 10
}
+34 -2
View File
@@ -1,3 +1,5 @@
import { DEFAULT_OVERTIME_WINDOWS } from '@/utils/oa-overtime-hours'
/** FormCreate Designer DragRule:加班套件 */
let _uidSeq = 0
@@ -66,7 +68,7 @@ function buildOvertimeKitChildren() {
type: 'inputNumber',
field: durationField,
title: '时长(h)',
info: '请手动填写加班时长',
info: '可根据起止时间自动计算,支持手改',
$required: true,
props: {
_fc_kit_field: 'overtimeDuration',
@@ -97,6 +99,7 @@ export const overtimeKitDragRule = {
return {
type: 'overtimeKit',
props: {
...DEFAULT_OVERTIME_WINDOWS,
personField: built.personField,
startField: built.startField,
endField: built.endField,
@@ -106,6 +109,35 @@ export const overtimeKitDragRule = {
}
},
props() {
return []
return [
{
type: 'input',
field: 'workdayOvertimeStart',
title: '工作日加班起',
value: DEFAULT_OVERTIME_WINDOWS.workdayOvertimeStart,
props: { placeholder: 'HH:mm' }
},
{
type: 'input',
field: 'workdayOvertimeEnd',
title: '工作日加班止(次日)',
value: DEFAULT_OVERTIME_WINDOWS.workdayOvertimeEnd,
props: { placeholder: 'HH:mm' }
},
{
type: 'input',
field: 'restBreakStart',
title: '休息日午休起',
value: DEFAULT_OVERTIME_WINDOWS.restBreakStart,
props: { placeholder: 'HH:mm' }
},
{
type: 'input',
field: 'restBreakEnd',
title: '休息日午休止',
value: DEFAULT_OVERTIME_WINDOWS.restBreakEnd,
props: { placeholder: 'HH:mm' }
}
]
}
}
+117 -27
View File
@@ -1,9 +1,17 @@
/** 加班套件运行时:时长仅手动填写,补齐数字框左对齐;加班人默认当前登录人 */
/** 加班套件运行时:时长可按起止自动计算,支持手改;加班人默认当前登录人 */
import {
buildCurrentOwnerPerson,
type OwnerUserSnapshot
} from '@/utils/oa-owner-field-defaults'
import {
calcOvertimeHours,
DEFAULT_OVERTIME_WINDOWS,
type OvertimeWindows,
type RestDayResolver
} from '@/utils/oa-overtime-hours'
export const OVERTIME_MANUAL_PREFIX = '__manual_'
function asRules(schema: unknown): Record<string, unknown>[] {
if (Array.isArray(schema)) return schema.filter((r) => r && typeof r === 'object') as any
@@ -29,16 +37,22 @@ function walk(rules: Record<string, unknown>[], out: Record<string, unknown>[])
export type OvertimeKitBinding = {
personField?: string
durationField?: string
startField: string
endField: string
durationField: string
windows: OvertimeWindows
}
function resolveBinding(kit: Record<string, unknown>): OvertimeKitBinding {
function resolveBinding(kit: Record<string, unknown>): OvertimeKitBinding | null {
const props = (kit.props && typeof kit.props === 'object' ? kit.props : {}) as Record<
string,
any
>
let personField = props.personField ? String(props.personField) : undefined
let startField = props.startField ? String(props.startField) : undefined
let endField = props.endField ? String(props.endField) : undefined
let durationField = props.durationField ? String(props.durationField) : undefined
const children = (
Array.isArray(kit.children)
? kit.children
@@ -46,19 +60,66 @@ function resolveBinding(kit: Record<string, unknown>): OvertimeKitBinding {
? props.rule
: []
) as Record<string, any>[]
for (const c of children) {
if (!c?.field) continue
const sem = String(c.props?._fc_kit_field || '')
if (sem === 'overtimePerson' && !personField) personField = String(c.field)
if (sem === 'overtimeStart' && !startField) startField = String(c.field)
if (sem === 'overtimeEnd' && !endField) endField = String(c.field)
if (sem === 'overtimeDuration' && !durationField) durationField = String(c.field)
}
return { personField, durationField }
if (!startField || !endField || !durationField) {
const dateFields: string[] = []
let dur: string | undefined
for (const c of children) {
if (!c?.field) continue
const t = String(c.type || '')
if (t === 'datePicker' || t === 'date' || t === 'timePicker' || t === 'time') {
dateFields.push(String(c.field))
} else if (
(t === 'inputNumber' || t === 'number') &&
(String(c.title || '').includes('时长') || String(c.props?._fc_kit_field || '') === 'overtimeDuration')
) {
dur = String(c.field)
}
}
startField = startField || dateFields[0]
endField = endField || dateFields[1]
durationField = durationField || dur
}
if (!startField || !endField || !durationField) return null
return {
personField,
startField,
endField,
durationField,
windows: {
workdayOvertimeStart: String(
props.workdayOvertimeStart || DEFAULT_OVERTIME_WINDOWS.workdayOvertimeStart
),
workdayOvertimeEnd: String(
props.workdayOvertimeEnd || DEFAULT_OVERTIME_WINDOWS.workdayOvertimeEnd
),
restBreakStart: String(props.restBreakStart || DEFAULT_OVERTIME_WINDOWS.restBreakStart),
restBreakEnd: String(props.restBreakEnd || DEFAULT_OVERTIME_WINDOWS.restBreakEnd)
}
}
}
export function listOvertimeKitBindings(schema: unknown): OvertimeKitBinding[] {
const flat: Record<string, unknown>[] = []
walk(asRules(schema), flat)
return flat.filter((r) => String(r.type || '') === 'overtimeKit').map(resolveBinding)
const out: OvertimeKitBinding[] = []
for (const r of flat) {
if (String(r.type || '') !== 'overtimeKit') continue
const b = resolveBinding(r)
if (b) out.push(b)
}
return out
}
function isEmptyPersonValue(raw: unknown): boolean {
@@ -91,28 +152,57 @@ export function applyOvertimeKitDefaults(
return data
}
function resolveDurationField(kit: Record<string, unknown>): string | undefined {
const binding = resolveBinding(kit)
if (binding.durationField) return binding.durationField
const props = (kit.props && typeof kit.props === 'object' ? kit.props : {}) as Record<
string,
any
>
const children = (
Array.isArray(kit.children)
? kit.children
: Array.isArray(props.rule)
? props.rule
: []
) as Record<string, any>[]
for (const c of children) {
if (!c?.field) continue
const t = String(c.type || '')
if ((t === 'inputNumber' || t === 'number') && String(c.title || '').includes('时长')) {
return String(c.field)
/** 未手改时写回时长;返回是否有变更 */
export function applyOvertimeKitDurationsToFormData(
schema: unknown,
formData: Record<string, unknown>,
isRestDay: RestDayResolver
): { data: Record<string, unknown>; changed: boolean } {
const data = { ...formData }
let changed = false
for (const kit of listOvertimeKitBindings(schema)) {
const manualKey = OVERTIME_MANUAL_PREFIX + kit.durationField
if (data[manualKey]) continue
const hours = calcOvertimeHours(
String(data[kit.startField] || ''),
String(data[kit.endField] || ''),
kit.windows,
isRestDay
)
if (hours == null) continue
if (data[kit.durationField] !== hours) {
data[kit.durationField] = hours
changed = true
}
}
return undefined
return { data, changed }
}
export function markOvertimeDurationManual(
formData: Record<string, unknown>,
durationField: string,
manual = true
) {
const data = { ...formData }
const key = OVERTIME_MANUAL_PREFIX + durationField
if (manual) data[key] = true
else delete data[key]
return data
}
export function isOvertimeDurationField(schema: unknown, field: string): boolean {
return listOvertimeKitBindings(schema).some((k) => k.durationField === field)
}
export function findOvertimeKitByStartOrEnd(
schema: unknown,
field: string
): OvertimeKitBinding | null {
return (
listOvertimeKitBindings(schema).find(
(k) => k.startField === field || k.endField === field
) || null
)
}
/**
@@ -124,14 +214,14 @@ export function ensureOvertimeKitRuleProps(rules: unknown): any[] {
if (!raw || typeof raw !== 'object') return raw
const rule: any = { ...(raw as object) }
if (String(rule.type || '') === 'overtimeKit') {
const durationField = resolveDurationField(rule)
const binding = resolveBinding(rule)
const patchChildren = (list: any[]): any[] =>
list.map((c) => {
if (!c || typeof c !== 'object') return c
const child: any = { ...c }
const t = String(child.type || '')
const isDuration =
(durationField && child.field === durationField) ||
(binding && child.field === binding.durationField) ||
((t === 'inputNumber' || t === 'number') &&
String(child.title || '').includes('时长'))
if (isDuration) {
+26 -15
View File
@@ -19,8 +19,13 @@ export type ProgressPersonInput = {
export type PersonLineTone = 'ok' | 'pending' | 'danger' | 'mute' | ''
export type ProgressPersonLine = {
/** 完整一行(含时间),详情页等纯文本场景用 */
text: string
tone: PersonLineTone
/** 不含时间的主体,打印右对齐时间用 */
body: string
/** 审批时间(可空) */
timestamp: string
}
const ACTED_STATUS = new Set(['approved', 'rejected', 'returned', 'completed', 'transferred'])
@@ -52,6 +57,21 @@ function toneForStatus(status: string): PersonLineTone {
return ''
}
function pushLine(
out: ProgressPersonLine[],
body: string,
timestamp: string,
tone: PersonLineTone
) {
const ts = String(timestamp || '').trim()
out.push({
body,
timestamp: ts,
text: ts ? `${body} ${ts}` : body,
tone
})
}
/** 将 progress.people 格式化为「姓名 意见/状态 时间」纯文本行 */
export function formatProgressPersonLines(
people: ProgressPersonInput[] | null | undefined
@@ -67,7 +87,7 @@ export function formatProgressPersonLines(
const tone = toneForStatus(status)
if (status === 'done') {
out.push({ text: `${name} 无需处理`, tone: 'mute' })
pushLine(out, `${name} 无需处理`, '', 'mute')
continue
}
if (status === 'transferred') {
@@ -77,34 +97,25 @@ export function formatProgressPersonLines(
? `转交给${target} ${comment}`
: `转交给${target}`
: comment || statusFallbackLabel('transferred')
out.push({
text: ts ? `${name} ${mid} ${ts}` : `${name} ${mid}`,
tone: 'mute'
})
pushLine(out, `${name} ${mid}`, ts, 'mute')
continue
}
if (status === 'pending' || status === 'running' || status === 'not_reached' || !status) {
// 无 status 时:若有意见/时间仍按已处理拼;否则待处理
if (!status && (comment || ts)) {
const mid = comment || statusFallbackLabel('approved')
out.push({
text: ts ? `${name} ${mid} ${ts}` : `${name} ${mid}`,
tone: 'ok'
})
pushLine(out, `${name} ${mid}`, ts, 'ok')
continue
}
out.push({ text: `${name} 待处理`, tone: 'pending' })
pushLine(out, `${name} 待处理`, '', 'pending')
continue
}
if (ACTED_STATUS.has(status) || comment || ts) {
const mid = comment || statusFallbackLabel(status)
out.push({
text: ts ? `${name} ${mid} ${ts}` : `${name} ${mid}`,
tone: tone || 'ok'
})
pushLine(out, `${name} ${mid}`, ts, tone || 'ok')
continue
}
out.push({ text: `${name} 待处理`, tone: 'pending' })
pushLine(out, `${name} 待处理`, '', 'pending')
}
return out
}
@@ -50,3 +50,58 @@ export function getOaUploadDisplayName(file: OaUploadFileLike | null | undefined
return '未命名文件'
}
}
/** 打印 PDF:上传字段值 → 仅附件文件名列表(不含 MinIO/目录路径) */
export function formatOaUploadPathsForPrint(value: unknown): string[] {
if (value == null || value === '') return []
if (Array.isArray(value)) {
const out: string[] = []
for (const item of value) {
if (typeof item === 'string') {
const parts = item
.split(',')
.map((x) => x.trim())
.filter(Boolean)
for (const p of parts) {
out.push(getOaUploadDisplayName({ url: p }))
}
} else if (item && typeof item === 'object') {
out.push(getOaUploadDisplayName(item as OaUploadFileLike))
}
}
return out
}
if (typeof value === 'string') {
return value
.split(',')
.map((x) => x.trim())
.filter(Boolean)
.map((p) => getOaUploadDisplayName({ url: p }))
}
if (typeof value === 'object') {
return [getOaUploadDisplayName(value as OaUploadFileLike)]
}
return []
}
/** 是否像对象存储 / 附件地址(打印展示时应收成文件名) */
export function isOaStoredFileRef(text: string): boolean {
const s = String(text || '').trim()
if (!s) return false
if (/\/minio\//i.test(s)) return true
if (/^https?:\/\//i.test(s) && /\.[a-z0-9]{2,5}(\?|$)/i.test(s)) return true
if (s.startsWith('/') && /\.[a-z0-9]{2,5}(\?|$)/i.test(s)) return true
return false
}
/**
* 打印单元格文案:若整段为附件路径(可多条,顿号/逗号分隔),仅保留文件名。
* 普通业务文案原样返回,避免误伤「省 / 市 / 区」等路径。
*/
export function formatOaPrintAttachmentText(text: unknown): string {
const s = String(text ?? '').trim()
if (!s || s === '-') return s
const parts = s.split(/[、,]/).map((x) => x.trim()).filter(Boolean)
if (!parts.length || !parts.every(isOaStoredFileRef)) return s
return parts.map((p) => getOaUploadDisplayName({ url: p })).join('、')
}
@@ -60,7 +60,12 @@
</div>
<div v-show="activeStep === 'flow'" class="oa-designer__step oa-designer__flow-step">
<FlowDesigner v-model="flowTreeJson" :candidates="conditionCandidates" />
<!-- v-if:进入流程 Tab 再挂载,避免打开设计器即拉取用户列表 -->
<FlowDesigner
v-if="activeStep === 'flow'"
v-model="flowTreeJson"
:candidates="conditionCandidates"
/>
</div>
<div v-show="activeStep === 'advanced'" class="oa-designer__step">