@tencent-rtc/trtc-agent-skills 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +172 -0
- package/README.zh.md +173 -0
- package/bin/cli.js +434 -0
- package/knowledge-base/index.yaml +454 -0
- package/knowledge-base/platform-slice-template.md +233 -0
- package/knowledge-base/scenario-spec.md +350 -0
- package/knowledge-base/scenarios/conference/base/general-conference.md +365 -0
- package/knowledge-base/scenarios/conference/base/webinar-conference.md +130 -0
- package/knowledge-base/scenarios/conference/medical/1v1-video-consultation.md +145 -0
- package/knowledge-base/scenarios/conference/medical/medical-multidoctor-consultation.md +113 -0
- package/knowledge-base/scenarios/live/entertainment-live-room.md +118 -0
- package/knowledge-base/slice-spec.md +546 -0
- package/knowledge-base/slices/conference/web/ai-tools.md +225 -0
- package/knowledge-base/slices/conference/web/beauty-effects.md +188 -0
- package/knowledge-base/slices/conference/web/device-control.md +338 -0
- package/knowledge-base/slices/conference/web/login-auth.md +261 -0
- package/knowledge-base/slices/conference/web/network-quality.md +190 -0
- package/knowledge-base/slices/conference/web/official-roomkit-api.md +298 -0
- package/knowledge-base/slices/conference/web/official-roomkit-login-ui.md +246 -0
- package/knowledge-base/slices/conference/web/participant-list.md +238 -0
- package/knowledge-base/slices/conference/web/participant-management.md +718 -0
- package/knowledge-base/slices/conference/web/prejoin-check.md +293 -0
- package/knowledge-base/slices/conference/web/room-call.md +213 -0
- package/knowledge-base/slices/conference/web/room-chat.md +426 -0
- package/knowledge-base/slices/conference/web/room-lifecycle.md +534 -0
- package/knowledge-base/slices/conference/web/room-schedule.md +281 -0
- package/knowledge-base/slices/conference/web/screen-share.md +211 -0
- package/knowledge-base/slices/conference/web/video-layout.md +675 -0
- package/knowledge-base/slices/conference/web/virtual-background.md +197 -0
- package/knowledge-base/slices/conference/web/webinar-interaction.md +206 -0
- package/knowledge-base/slices/live/anchor-lifecycle.md +122 -0
- package/knowledge-base/slices/live/anchor-preview.md +90 -0
- package/knowledge-base/slices/live/anchor-room-config.md +104 -0
- package/knowledge-base/slices/live/audience-list.md +86 -0
- package/knowledge-base/slices/live/audience-manage.md +92 -0
- package/knowledge-base/slices/live/audience-watch.md +85 -0
- package/knowledge-base/slices/live/audio.md +116 -0
- package/knowledge-base/slices/live/barrage.md +88 -0
- package/knowledge-base/slices/live/beauty.md +99 -0
- package/knowledge-base/slices/live/coguest-apply.md +105 -0
- package/knowledge-base/slices/live/device-control.md +91 -0
- package/knowledge-base/slices/live/error-codes.md +167 -0
- package/knowledge-base/slices/live/gift.md +84 -0
- package/knowledge-base/slices/live/ios/.gitkeep +0 -0
- package/knowledge-base/slices/live/ios/anchor-lifecycle.md +313 -0
- package/knowledge-base/slices/live/ios/anchor-preview.md +228 -0
- package/knowledge-base/slices/live/ios/anchor-room-config.md +257 -0
- package/knowledge-base/slices/live/ios/audience-list.md +353 -0
- package/knowledge-base/slices/live/ios/audience-manage.md +381 -0
- package/knowledge-base/slices/live/ios/audience-watch.md +286 -0
- package/knowledge-base/slices/live/ios/audio.md +373 -0
- package/knowledge-base/slices/live/ios/barrage.md +285 -0
- package/knowledge-base/slices/live/ios/beauty.md +323 -0
- package/knowledge-base/slices/live/ios/coguest-apply.md +506 -0
- package/knowledge-base/slices/live/ios/device-control.md +286 -0
- package/knowledge-base/slices/live/ios/error-codes.md +270 -0
- package/knowledge-base/slices/live/ios/gift.md +315 -0
- package/knowledge-base/slices/live/ios/live-list.md +269 -0
- package/knowledge-base/slices/live/ios/login-auth.md +247 -0
- package/knowledge-base/slices/live/live-list.md +82 -0
- package/knowledge-base/slices/live/login-auth.md +78 -0
- package/package.json +34 -0
- package/skills/trtc/SKILL.md +326 -0
- package/skills/trtc/room-builder/SKILL.md +138 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/README.md +108 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/docs/backend-contract.zh-CN.md +162 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/docs/integration.zh-CN.md +154 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/docs/theme.zh-CN.md +78 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/index.html +12 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/package.json +28 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/postcss.config.js +5 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/App.vue +25 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/components/ConsultationManagePanel.vue +838 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/components/LanguageSwitch.vue +102 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/components/LoadingSpinner.vue +6 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/components/MedicalAlert.vue +34 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/components/MedicalBusinessPanel.vue +148 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/components/MedicalButton.vue +49 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/components/MedicalConfirmDialog.vue +68 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/components/MedicalDataPanel.vue +196 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/components/MedicalRecordPanel.vue +270 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/components/PrescriptionPanel.vue +363 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/config/basic-info-config.ts +29 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/config/lib-generate-test-usersig-es.min.d.ts +4 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/config/lib-generate-test-usersig-es.min.js +2 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/config/runtime-config.ts +12 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/env.d.ts +32 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/features/consultation/components/ConsultationChatPanel.vue +123 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/features/consultation/components/ConsultationMembersPanel.vue +230 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/features/consultation/components/ConsultationTranscriptionPanel.vue +135 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/features/consultation/components/ConsultationVideoStage.vue +113 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/features/consultation/components/InviteDoctorDialog.vue +132 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/features/consultation/components/KickMemberConfirmDialog.vue +50 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/features/consultation/types.ts +77 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/features/consultation/useConsultationChat.ts +97 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/features/consultation/useConsultationDevices.ts +48 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/features/consultation/useConsultationParticipants.ts +121 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/features/consultation/useConsultationPermissions.ts +25 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/features/consultation/utils.ts +70 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/i18n/en-US/index.ts +553 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/i18n/index.ts +25 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/i18n/medicalTranslate.ts +85 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/i18n/state.ts +49 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/i18n/zh-CN/index.ts +463 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/main.ts +12 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/mock/appointments.ts +96 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/mock/users.ts +79 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/router/index.ts +63 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/services/adapters/index.ts +25 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/services/adapters/integration/appointmentService.ts +77 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/services/adapters/integration/authService.ts +38 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/services/adapters/integration/launchContext.ts +31 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/services/adapters/integration/userService.ts +35 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/services/adapters/mock/appointmentService.ts +43 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/services/adapters/mock/authService.ts +33 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/services/adapters/mock/userService.ts +43 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/services/adapters/types.ts +135 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/shared/icons.ts +53 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/styles/index.css +106 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/styles/tailwind.css +3 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/styles/theme.css +209 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/utils/auth.ts +50 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/utils/format.ts +24 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/utils/navigation.ts +12 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/utils/session.ts +28 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/views/DoctorConsultationView.vue +777 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/views/DoctorDashboardView.vue +678 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/views/LoginView.vue +441 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/views/PatientConsultationFinishedView.vue +185 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/views/PatientConsultationView.vue +1003 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/views/PatientSelectDoctorView.vue +317 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/src/views/PatientWaitingView.vue +454 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/tsconfig.json +21 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/tsconfig.node.json +8 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation/vite.config.ts +17 -0
- package/skills/trtc/room-builder/templates/scenarios/medical-consultation//346/216/245/345/205/245/350/257/264/346/230/216.md +6 -0
- package/skills/trtc/room-builder/tools/render_ai_instructions.py +226 -0
- package/skills/trtc-apply/SKILL.md +97 -0
- package/skills/trtc-apply/guardrails/apply_lib/__init__.py +0 -0
- package/skills/trtc-apply/guardrails/apply_lib/__pycache__/__init__.cpython-313.pyc +0 -0
- package/skills/trtc-apply/guardrails/apply_lib/__pycache__/rule_parser.cpython-313.pyc +0 -0
- package/skills/trtc-apply/guardrails/apply_lib/rule_parser.py +268 -0
- package/skills/trtc-docs/SKILL.md +207 -0
- package/skills/trtc-onboarding/SKILL.md +839 -0
- package/skills/trtc-onboarding/reference/path-a1-demo.md +103 -0
- package/skills/trtc-onboarding/reference/path-a2-integrate.md +693 -0
- package/skills/trtc-onboarding/reference/path-b-troubleshoot.md +115 -0
- package/skills/trtc-onboarding/reference/path-c-expand.md +43 -0
- package/skills/trtc-onboarding/reference/reporting-protocol.md +174 -0
- package/skills/trtc-onboarding/reference/supported-matrix.md +100 -0
- package/skills/trtc-onboarding/reference/usersig-handling.md +140 -0
- package/skills/trtc-search/SKILL.md +221 -0
- package/skills/trtc-topic/SKILL.md +638 -0
- package/skills/trtc-topic/guardrails/__pycache__/gate_slice_read.cpython-313.pyc +0 -0
- package/skills/trtc-topic/guardrails/__pycache__/gate_slice_write.cpython-313.pyc +0 -0
- package/skills/trtc-topic/guardrails/__pycache__/stop_require_apply_evidence.cpython-313.pyc +0 -0
- package/skills/trtc-topic/guardrails/gate_slice_read.py +133 -0
- package/skills/trtc-topic/guardrails/gate_slice_write.py +169 -0
- package/skills/trtc-topic/guardrails/stop_require_apply_evidence.py +97 -0
- package/skills/trtc-topic/references/execution-units.yaml +58 -0
- package/skills/trtc-topic/runtime/README.md +50 -0
- package/skills/trtc-topic/runtime/RUNTIME.md +128 -0
- package/skills/trtc-topic/runtime/lib/__init__.py +0 -0
- package/skills/trtc-topic/runtime/lib/platforms.py +194 -0
- package/skills/trtc-topic/runtime/package-lock.json +1211 -0
- package/skills/trtc-topic/runtime/package.json +13 -0
- package/skills/trtc-topic/runtime/telemetry-bridge.mjs +339 -0
- package/skills/trtc-topic/runtime/telemetry_collector.py +293 -0
- package/skills/trtc-topic/scripts/STATE-MACHINE-GUIDE.md +186 -0
- package/skills/trtc-topic/scripts/__pycache__/apply.cpython-313.pyc +0 -0
- package/skills/trtc-topic/scripts/apply.py +581 -0
- package/skills/trtc-topic/scripts/finalize_session.py +113 -0
- package/skills/trtc-topic/scripts/init_slice_queue.py +96 -0
- package/skills/trtc-topic/scripts/lib/__pycache__/state_machine.cpython-313.pyc +0 -0
- package/skills/trtc-topic/scripts/lib/state_machine.py +328 -0
- package/skills/trtc-topic/scripts/next_slice.py +137 -0
- package/skills/trtc-topic/tests/README.md +70 -0
- package/skills/trtc-topic/tests/__pycache__/conftest.cpython-313-pytest-9.0.2.pyc +0 -0
- package/skills/trtc-topic/tests/__pycache__/conftest.cpython-313-pytest-9.0.3.pyc +0 -0
- package/skills/trtc-topic/tests/__pycache__/test_apply_cli.cpython-313-pytest-9.0.2.pyc +0 -0
- package/skills/trtc-topic/tests/__pycache__/test_apply_cli.cpython-313-pytest-9.0.3.pyc +0 -0
- package/skills/trtc-topic/tests/__pycache__/test_end_to_end.cpython-313-pytest-9.0.2.pyc +0 -0
- package/skills/trtc-topic/tests/__pycache__/test_end_to_end.cpython-313-pytest-9.0.3.pyc +0 -0
- package/skills/trtc-topic/tests/__pycache__/test_finalize_session.cpython-313-pytest-9.0.2.pyc +0 -0
- package/skills/trtc-topic/tests/__pycache__/test_finalize_session.cpython-313-pytest-9.0.3.pyc +0 -0
- package/skills/trtc-topic/tests/__pycache__/test_gates.cpython-313-pytest-9.0.2.pyc +0 -0
- package/skills/trtc-topic/tests/__pycache__/test_gates.cpython-313-pytest-9.0.3.pyc +0 -0
- package/skills/trtc-topic/tests/__pycache__/test_session_resolver.cpython-313-pytest-9.0.2.pyc +0 -0
- package/skills/trtc-topic/tests/__pycache__/test_session_resolver.cpython-313-pytest-9.0.3.pyc +0 -0
- package/skills/trtc-topic/tests/__pycache__/test_state_machine.cpython-313-pytest-9.0.2.pyc +0 -0
- package/skills/trtc-topic/tests/__pycache__/test_state_machine.cpython-313-pytest-9.0.3.pyc +0 -0
- package/skills/trtc-topic/tests/__pycache__/test_stop_require_apply.cpython-313-pytest-9.0.2.pyc +0 -0
- package/skills/trtc-topic/tests/__pycache__/test_stop_require_apply.cpython-313-pytest-9.0.3.pyc +0 -0
- package/skills/trtc-topic/tests/__pycache__/test_topic_skill_invariants.cpython-313-pytest-9.0.2.pyc +0 -0
- package/skills/trtc-topic/tests/__pycache__/test_topic_skill_invariants.cpython-313-pytest-9.0.3.pyc +0 -0
- package/skills/trtc-topic/tests/conftest.py +72 -0
- package/skills/trtc-topic/tests/test_apply_cli.py +480 -0
- package/skills/trtc-topic/tests/test_end_to_end.py +305 -0
- package/skills/trtc-topic/tests/test_finalize_session.py +51 -0
- package/skills/trtc-topic/tests/test_gates.py +316 -0
- package/skills/trtc-topic/tests/test_session_resolver.py +260 -0
- package/skills/trtc-topic/tests/test_state_machine.py +414 -0
- package/skills/trtc-topic/tests/test_stop_require_apply.py +99 -0
- package/skills/trtc-topic/tests/test_topic_skill_invariants.py +130 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { Check, ChevronDown, Languages } from 'lucide-vue-next';
|
|
3
|
+
import { useUIKit } from '@tencentcloud/uikit-base-component-vue3';
|
|
4
|
+
import { computed, onBeforeUnmount, ref } from 'vue';
|
|
5
|
+
import {
|
|
6
|
+
medicalLanguage,
|
|
7
|
+
setMedicalLanguage,
|
|
8
|
+
type MedicalLanguage,
|
|
9
|
+
} from '@/i18n/state';
|
|
10
|
+
|
|
11
|
+
const menuVisible = ref(false);
|
|
12
|
+
const rootRef = ref<HTMLElement | null>(null);
|
|
13
|
+
const { t } = useUIKit();
|
|
14
|
+
|
|
15
|
+
const languageOptions: Array<{
|
|
16
|
+
labelKey: string;
|
|
17
|
+
shortLabel: string;
|
|
18
|
+
value: MedicalLanguage;
|
|
19
|
+
}> = [
|
|
20
|
+
{ labelKey: 'Medical.Language.Chinese', shortLabel: 'ZH', value: 'zh-CN' },
|
|
21
|
+
{ labelKey: 'Medical.Language.English', shortLabel: 'EN', value: 'en-US' },
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
const currentLanguage = computed(
|
|
25
|
+
() =>
|
|
26
|
+
languageOptions.find(item => item.value === medicalLanguage.value) ||
|
|
27
|
+
languageOptions[0]
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
function toggleMenu() {
|
|
31
|
+
menuVisible.value = !menuVisible.value;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function selectLanguage(language: MedicalLanguage) {
|
|
35
|
+
setMedicalLanguage(language);
|
|
36
|
+
menuVisible.value = false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function handleDocumentClick(event: MouseEvent) {
|
|
40
|
+
if (!rootRef.value?.contains(event.target as Node)) {
|
|
41
|
+
menuVisible.value = false;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function handleEscape(event: KeyboardEvent) {
|
|
46
|
+
if (event.key === 'Escape') {
|
|
47
|
+
menuVisible.value = false;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
document.addEventListener('click', handleDocumentClick);
|
|
52
|
+
document.addEventListener('keydown', handleEscape);
|
|
53
|
+
|
|
54
|
+
onBeforeUnmount(() => {
|
|
55
|
+
document.removeEventListener('click', handleDocumentClick);
|
|
56
|
+
document.removeEventListener('keydown', handleEscape);
|
|
57
|
+
});
|
|
58
|
+
</script>
|
|
59
|
+
|
|
60
|
+
<template>
|
|
61
|
+
<div ref="rootRef" class="medical-language-selector">
|
|
62
|
+
<button
|
|
63
|
+
class="medical-language-trigger"
|
|
64
|
+
type="button"
|
|
65
|
+
aria-haspopup="menu"
|
|
66
|
+
:aria-expanded="menuVisible"
|
|
67
|
+
@click.stop="toggleMenu"
|
|
68
|
+
>
|
|
69
|
+
<Languages :size="15" />
|
|
70
|
+
<span class="medical-language-current">
|
|
71
|
+
{{ t(currentLanguage.labelKey) }}
|
|
72
|
+
</span>
|
|
73
|
+
<ChevronDown
|
|
74
|
+
:size="14"
|
|
75
|
+
:class="[
|
|
76
|
+
'medical-language-chevron',
|
|
77
|
+
menuVisible ? 'medical-language-chevron-open' : '',
|
|
78
|
+
]"
|
|
79
|
+
/>
|
|
80
|
+
</button>
|
|
81
|
+
|
|
82
|
+
<div v-if="menuVisible" class="medical-language-menu" role="menu">
|
|
83
|
+
<button
|
|
84
|
+
v-for="item in languageOptions"
|
|
85
|
+
:key="item.value"
|
|
86
|
+
class="medical-language-option"
|
|
87
|
+
type="button"
|
|
88
|
+
role="menuitemradio"
|
|
89
|
+
:aria-checked="medicalLanguage === item.value"
|
|
90
|
+
@click="selectLanguage(item.value)"
|
|
91
|
+
>
|
|
92
|
+
<span class="medical-language-option-badge">{{ item.shortLabel }}</span>
|
|
93
|
+
<span>{{ t(item.labelKey) }}</span>
|
|
94
|
+
<Check
|
|
95
|
+
v-if="medicalLanguage === item.value"
|
|
96
|
+
:size="15"
|
|
97
|
+
class="medical-language-check"
|
|
98
|
+
/>
|
|
99
|
+
</button>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
</template>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed } from 'vue';
|
|
3
|
+
import { AlertCircle, CheckCircle2 } from '@/shared/icons';
|
|
4
|
+
|
|
5
|
+
const props = withDefaults(
|
|
6
|
+
defineProps<{
|
|
7
|
+
variant?: 'warning' | 'error' | 'info' | 'success';
|
|
8
|
+
}>(),
|
|
9
|
+
{
|
|
10
|
+
variant: 'info',
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
const alertClasses = computed(() => [
|
|
15
|
+
'flex items-start gap-2 rounded-2xl border px-4 py-3 text-sm leading-6 backdrop-blur-md',
|
|
16
|
+
{
|
|
17
|
+
warning: 'border-amber-300/40 bg-amber-500/15 text-amber-50',
|
|
18
|
+
error: 'border-red-300/40 bg-red-500/15 text-red-50',
|
|
19
|
+
info: 'border-primary/30 bg-primary/10 text-primary',
|
|
20
|
+
success: 'border-emerald-300/40 bg-emerald-500/15 text-emerald-50',
|
|
21
|
+
}[props.variant],
|
|
22
|
+
]);
|
|
23
|
+
|
|
24
|
+
const iconComponent = computed(() =>
|
|
25
|
+
props.variant === 'success' ? CheckCircle2 : AlertCircle
|
|
26
|
+
);
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<template>
|
|
30
|
+
<div :class="alertClasses">
|
|
31
|
+
<component :is="iconComponent" :size="18" class="mt-0.5 shrink-0" />
|
|
32
|
+
<span><slot /></span>
|
|
33
|
+
</div>
|
|
34
|
+
</template>
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, ref, type Component } from 'vue';
|
|
3
|
+
import { useUIKit } from '@tencentcloud/uikit-base-component-vue3';
|
|
4
|
+
import { FileText, Pill, FolderOpen, LayoutPanelLeft } from '@/shared/icons';
|
|
5
|
+
import {
|
|
6
|
+
MEDICAL_BUSINESS_PANEL_MODE,
|
|
7
|
+
MEDICAL_BUSINESS_SLOT_TITLE,
|
|
8
|
+
} from '@/config/runtime-config';
|
|
9
|
+
import type { MedicalAppointment, MedicalUser } from '@/services/adapters';
|
|
10
|
+
import MedicalRecordPanel from '@/components/MedicalRecordPanel.vue';
|
|
11
|
+
import PrescriptionPanel from '@/components/PrescriptionPanel.vue';
|
|
12
|
+
import MedicalDataPanel from '@/components/MedicalDataPanel.vue';
|
|
13
|
+
|
|
14
|
+
type BusinessTab = 'record' | 'prescription' | 'data' | 'slot';
|
|
15
|
+
|
|
16
|
+
const props = defineProps<{
|
|
17
|
+
appointment: MedicalAppointment;
|
|
18
|
+
patient: MedicalUser;
|
|
19
|
+
}>();
|
|
20
|
+
const { t } = useUIKit();
|
|
21
|
+
|
|
22
|
+
const activeTab = ref<BusinessTab>(
|
|
23
|
+
MEDICAL_BUSINESS_PANEL_MODE === 'slot' ? 'slot' : 'record'
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
const patientInfo = computed(() => ({
|
|
27
|
+
name: props.patient.userName,
|
|
28
|
+
age: props.appointment.patientAge,
|
|
29
|
+
gender: props.appointment.patientGender,
|
|
30
|
+
allergy_history: props.appointment.allergyHistory,
|
|
31
|
+
}));
|
|
32
|
+
|
|
33
|
+
const tabs = computed<
|
|
34
|
+
Array<{ value: BusinessTab; label: string; icon: Component }>
|
|
35
|
+
>(() => {
|
|
36
|
+
const baseTabs: Array<{
|
|
37
|
+
value: BusinessTab;
|
|
38
|
+
label: string;
|
|
39
|
+
icon: Component;
|
|
40
|
+
}> = [
|
|
41
|
+
{ value: 'record', label: t('Medical.Business.RecordTab'), icon: FileText },
|
|
42
|
+
{ value: 'prescription', label: t('Medical.Business.PrescriptionTab'), icon: Pill },
|
|
43
|
+
{ value: 'data', label: t('Medical.Business.DataTab'), icon: FolderOpen },
|
|
44
|
+
];
|
|
45
|
+
|
|
46
|
+
if (MEDICAL_BUSINESS_PANEL_MODE === 'slot') {
|
|
47
|
+
return [
|
|
48
|
+
{ value: 'slot', label: t('Medical.Business.SlotTab'), icon: LayoutPanelLeft },
|
|
49
|
+
...baseTabs,
|
|
50
|
+
];
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return baseTabs;
|
|
54
|
+
});
|
|
55
|
+
</script>
|
|
56
|
+
|
|
57
|
+
<template>
|
|
58
|
+
<div
|
|
59
|
+
class="h-full min-h-0 bg-white border-none shadow-[0_4px_20px_rgba(0,0,0,0.08)] rounded-3xl overflow-hidden flex flex-col"
|
|
60
|
+
>
|
|
61
|
+
<div class="flex-1 min-h-0 flex flex-col">
|
|
62
|
+
<div class="px-5 py-4 border-b border-gray-100 bg-white">
|
|
63
|
+
<h3 class="text-sm font-semibold text-gray-900">{{ t('Medical.Business.Workspace') }}</h3>
|
|
64
|
+
<p class="mt-1 text-xs text-gray-500">
|
|
65
|
+
{{ t('Medical.Business.WorkspaceDesc') }}
|
|
66
|
+
</p>
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
<div
|
|
70
|
+
:class="[
|
|
71
|
+
'w-full grid p-2 bg-gray-50 border-b border-gray-100',
|
|
72
|
+
tabs.length > 3 ? 'grid-cols-4' : 'grid-cols-3',
|
|
73
|
+
]"
|
|
74
|
+
>
|
|
75
|
+
<button
|
|
76
|
+
v-for="tab in tabs"
|
|
77
|
+
:key="tab.value"
|
|
78
|
+
@click="activeTab = tab.value"
|
|
79
|
+
:class="[
|
|
80
|
+
'flex items-center justify-center gap-2 px-4 py-2.5 rounded-xl font-medium text-sm transition-all',
|
|
81
|
+
activeTab === tab.value
|
|
82
|
+
? 'bg-white text-[#0D9488] shadow-sm'
|
|
83
|
+
: 'text-gray-600 hover:text-gray-900',
|
|
84
|
+
]"
|
|
85
|
+
>
|
|
86
|
+
<component :is="tab.icon" :size="16" />
|
|
87
|
+
{{ tab.label }}
|
|
88
|
+
</button>
|
|
89
|
+
</div>
|
|
90
|
+
|
|
91
|
+
<div class="flex-1 min-h-0 overflow-hidden">
|
|
92
|
+
<div
|
|
93
|
+
v-if="activeTab === 'slot'"
|
|
94
|
+
class="h-full p-6 bg-[linear-gradient(135deg,#F8FAFB_0%,#EEF8F6_100%)]"
|
|
95
|
+
>
|
|
96
|
+
<div
|
|
97
|
+
class="h-full rounded-3xl border border-dashed border-[#0D9488]/30 bg-white/70 px-8 py-10 flex flex-col justify-between"
|
|
98
|
+
>
|
|
99
|
+
<div>
|
|
100
|
+
<div
|
|
101
|
+
class="inline-flex items-center gap-2 rounded-full bg-[#0D9488]/10 text-[#0D9488] px-3 py-1 text-xs font-semibold"
|
|
102
|
+
>
|
|
103
|
+
<LayoutPanelLeft :size="14" />
|
|
104
|
+
{{ t('Medical.Business.SlotTab') }}
|
|
105
|
+
</div>
|
|
106
|
+
<h4 class="mt-4 text-2xl font-semibold text-gray-900">
|
|
107
|
+
{{ MEDICAL_BUSINESS_SLOT_TITLE }}
|
|
108
|
+
</h4>
|
|
109
|
+
<p class="mt-3 text-sm leading-7 text-gray-600">
|
|
110
|
+
{{ t('Medical.Business.SlotDesc') }}
|
|
111
|
+
</p>
|
|
112
|
+
</div>
|
|
113
|
+
|
|
114
|
+
<div class="grid grid-cols-1 gap-3 xl:grid-cols-3">
|
|
115
|
+
<div class="rounded-2xl bg-white border border-gray-100 p-4">
|
|
116
|
+
<p class="text-sm font-semibold text-gray-900">{{ t('Medical.Business.Left') }}</p>
|
|
117
|
+
<p class="mt-2 text-xs text-gray-500">{{ t('Medical.Business.LeftDesc') }}</p>
|
|
118
|
+
</div>
|
|
119
|
+
<div class="rounded-2xl bg-white border border-[#0D9488]/20 p-4">
|
|
120
|
+
<p class="text-sm font-semibold text-[#0D9488]">{{ t('Medical.Business.Center') }}</p>
|
|
121
|
+
<p class="mt-2 text-xs text-gray-500">{{ t('Medical.Business.CenterDesc') }}</p>
|
|
122
|
+
</div>
|
|
123
|
+
<div class="rounded-2xl bg-white border border-gray-100 p-4">
|
|
124
|
+
<p class="text-sm font-semibold text-gray-900">{{ t('Medical.Business.Right') }}</p>
|
|
125
|
+
<p class="mt-2 text-xs text-gray-500">
|
|
126
|
+
{{ t('Medical.Business.RightDesc') }}
|
|
127
|
+
</p>
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
|
|
133
|
+
<div v-show="activeTab === 'record'" class="h-full overflow-hidden">
|
|
134
|
+
<MedicalRecordPanel :patient-info="patientInfo" />
|
|
135
|
+
</div>
|
|
136
|
+
<div
|
|
137
|
+
v-show="activeTab === 'prescription'"
|
|
138
|
+
class="h-full overflow-hidden"
|
|
139
|
+
>
|
|
140
|
+
<PrescriptionPanel :patient-info="patientInfo" />
|
|
141
|
+
</div>
|
|
142
|
+
<div v-show="activeTab === 'data'" class="h-full overflow-hidden">
|
|
143
|
+
<MedicalDataPanel :patient-info="patientInfo" />
|
|
144
|
+
</div>
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
</template>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed } from 'vue';
|
|
3
|
+
import LoadingSpinner from '@/components/LoadingSpinner.vue';
|
|
4
|
+
|
|
5
|
+
const props = withDefaults(
|
|
6
|
+
defineProps<{
|
|
7
|
+
type?: 'button' | 'submit' | 'reset';
|
|
8
|
+
variant?: 'primary' | 'secondary' | 'outline' | 'danger' | 'ghost';
|
|
9
|
+
size?: 'sm' | 'md' | 'lg' | 'icon';
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
block?: boolean;
|
|
13
|
+
}>(),
|
|
14
|
+
{
|
|
15
|
+
type: 'button',
|
|
16
|
+
variant: 'primary',
|
|
17
|
+
size: 'md',
|
|
18
|
+
loading: false,
|
|
19
|
+
disabled: false,
|
|
20
|
+
block: false,
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
const buttonClasses = computed(() => [
|
|
25
|
+
'inline-flex items-center justify-center gap-2 font-medium transition-colors disabled:opacity-60 disabled:cursor-not-allowed',
|
|
26
|
+
props.block ? 'w-full' : '',
|
|
27
|
+
{
|
|
28
|
+
sm: 'h-8 rounded-lg px-3 text-sm',
|
|
29
|
+
md: 'h-11 rounded-xl px-5 text-sm',
|
|
30
|
+
lg: 'h-12 rounded-xl px-6 text-base',
|
|
31
|
+
icon: 'h-10 w-10 rounded-xl p-0',
|
|
32
|
+
}[props.size],
|
|
33
|
+
{
|
|
34
|
+
primary: 'bg-primary text-primary-foreground hover:bg-primary-hover',
|
|
35
|
+
secondary: 'bg-accent text-accent-foreground hover:bg-muted',
|
|
36
|
+
outline:
|
|
37
|
+
'border border-border bg-card text-foreground hover:border-primary hover:text-primary',
|
|
38
|
+
danger: 'bg-destructive text-destructive-foreground hover:bg-red-600',
|
|
39
|
+
ghost: 'text-muted-foreground hover:bg-accent hover:text-foreground',
|
|
40
|
+
}[props.variant],
|
|
41
|
+
]);
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<template>
|
|
45
|
+
<button :type="type" :disabled="disabled || loading" :class="buttonClasses">
|
|
46
|
+
<LoadingSpinner v-if="loading" />
|
|
47
|
+
<slot></slot>
|
|
48
|
+
</button>
|
|
49
|
+
</template>
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed } from 'vue';
|
|
3
|
+
import { useUIKit } from '@tencentcloud/uikit-base-component-vue3';
|
|
4
|
+
import MedicalButton from '@/components/MedicalButton.vue';
|
|
5
|
+
|
|
6
|
+
const props = withDefaults(
|
|
7
|
+
defineProps<{
|
|
8
|
+
visible: boolean;
|
|
9
|
+
title: string;
|
|
10
|
+
message: string;
|
|
11
|
+
confirmText?: string;
|
|
12
|
+
cancelText?: string;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
danger?: boolean;
|
|
15
|
+
}>(),
|
|
16
|
+
{
|
|
17
|
+
loading: false,
|
|
18
|
+
danger: false,
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
const { t } = useUIKit();
|
|
22
|
+
const displayConfirmText = computed(
|
|
23
|
+
() => props.confirmText || t('Medical.Common.Confirm')
|
|
24
|
+
);
|
|
25
|
+
const displayCancelText = computed(
|
|
26
|
+
() => props.cancelText || t('Medical.Common.Cancel')
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
const emit = defineEmits<{
|
|
30
|
+
cancel: [];
|
|
31
|
+
confirm: [];
|
|
32
|
+
}>();
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
<template>
|
|
36
|
+
<Teleport to="body">
|
|
37
|
+
<div
|
|
38
|
+
v-if="visible"
|
|
39
|
+
class="fixed inset-0 z-[120] flex items-center justify-center bg-black/45 p-4"
|
|
40
|
+
@click.self="emit('cancel')"
|
|
41
|
+
>
|
|
42
|
+
<div
|
|
43
|
+
class="w-full max-w-[380px] rounded-3xl bg-card p-6 text-card-foreground shadow-[0_20px_60px_rgba(15,23,42,0.25)]"
|
|
44
|
+
>
|
|
45
|
+
<h3 class="text-lg font-semibold text-foreground">{{ title }}</h3>
|
|
46
|
+
<p class="mt-3 text-sm leading-6 text-muted-foreground">
|
|
47
|
+
{{ message }}
|
|
48
|
+
</p>
|
|
49
|
+
<div class="mt-6 grid grid-cols-2 gap-3">
|
|
50
|
+
<MedicalButton
|
|
51
|
+
variant="outline"
|
|
52
|
+
:disabled="loading"
|
|
53
|
+
@click="emit('cancel')"
|
|
54
|
+
>
|
|
55
|
+
{{ displayCancelText }}
|
|
56
|
+
</MedicalButton>
|
|
57
|
+
<MedicalButton
|
|
58
|
+
:variant="danger ? 'danger' : 'primary'"
|
|
59
|
+
:loading="loading"
|
|
60
|
+
@click="emit('confirm')"
|
|
61
|
+
>
|
|
62
|
+
{{ loading ? t('Medical.Common.Processing') : displayConfirmText }}
|
|
63
|
+
</MedicalButton>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</Teleport>
|
|
68
|
+
</template>
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="h-full flex flex-col bg-white">
|
|
3
|
+
<div class="p-6 border-b border-gray-100 shrink-0">
|
|
4
|
+
<div class="flex items-center justify-between mb-4">
|
|
5
|
+
<div>
|
|
6
|
+
<h3 class="font-semibold text-gray-900 flex items-center gap-2">
|
|
7
|
+
<FolderOpen :size="20" class="text-[#0D9488]" />
|
|
8
|
+
{{ t('Medical.Data.Title') }}
|
|
9
|
+
</h3>
|
|
10
|
+
<p class="text-xs text-gray-500 mt-1">
|
|
11
|
+
{{ t('Medical.Data.Description') }}
|
|
12
|
+
</p>
|
|
13
|
+
</div>
|
|
14
|
+
<span
|
|
15
|
+
class="px-3 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-700"
|
|
16
|
+
>
|
|
17
|
+
{{ t('Medical.Data.FileCount', { count: files.length }) }}
|
|
18
|
+
</span>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<div class="bg-[#F1F5F9] rounded-xl p-3 text-sm">
|
|
22
|
+
<div class="flex items-center justify-between">
|
|
23
|
+
<span class="text-gray-600">
|
|
24
|
+
{{ t('Medical.Record.PatientLabel') }}
|
|
25
|
+
<span class="font-medium text-gray-900 ml-1">
|
|
26
|
+
{{ patientInfo.name }} ·
|
|
27
|
+
{{ t('Medical.DoctorDashboard.PatientAge', {
|
|
28
|
+
gender: patientInfo.gender,
|
|
29
|
+
age: patientInfo.age,
|
|
30
|
+
}) }}
|
|
31
|
+
</span>
|
|
32
|
+
</span>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<div class="px-6 pt-5 pb-4 border-b border-gray-100 bg-gray-50 shrink-0">
|
|
38
|
+
<button
|
|
39
|
+
class="w-full border-2 border-dashed border-gray-300 rounded-xl p-4 hover:border-[#0D9488] hover:bg-[#0D9488]/5 transition-all flex flex-col items-center gap-2 text-gray-600 hover:text-[#0D9488]"
|
|
40
|
+
>
|
|
41
|
+
<Upload :size="24" />
|
|
42
|
+
<div class="text-sm font-medium">{{ t('Medical.Data.Upload') }}</div>
|
|
43
|
+
<div class="text-xs text-gray-500">
|
|
44
|
+
{{ t('Medical.Data.UploadHint') }}
|
|
45
|
+
</div>
|
|
46
|
+
</button>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<div class="flex-1 overflow-y-auto px-6 py-5 space-y-3 custom-scrollbar">
|
|
50
|
+
<div
|
|
51
|
+
v-for="file in files"
|
|
52
|
+
:key="file.id"
|
|
53
|
+
class="border border-gray-200 rounded-2xl p-4 hover:shadow-md hover:border-[#0D9488]/30 transition-all duration-200 bg-white group"
|
|
54
|
+
>
|
|
55
|
+
<div class="flex items-start gap-4">
|
|
56
|
+
<div
|
|
57
|
+
:class="[
|
|
58
|
+
'w-16 h-16 rounded-xl flex items-center justify-center shrink-0',
|
|
59
|
+
file.type === 'image' ? 'bg-blue-50' : 'bg-orange-50',
|
|
60
|
+
]"
|
|
61
|
+
>
|
|
62
|
+
<component
|
|
63
|
+
:is="file.type === 'image' ? ImageIcon : FileText"
|
|
64
|
+
:size="28"
|
|
65
|
+
:class="
|
|
66
|
+
file.type === 'image' ? 'text-blue-600' : 'text-orange-600'
|
|
67
|
+
"
|
|
68
|
+
/>
|
|
69
|
+
</div>
|
|
70
|
+
|
|
71
|
+
<div class="flex-1 min-w-0">
|
|
72
|
+
<div class="flex items-start justify-between gap-2 mb-2">
|
|
73
|
+
<h4 class="font-medium text-gray-900 text-sm truncate">
|
|
74
|
+
{{ file.name }}
|
|
75
|
+
</h4>
|
|
76
|
+
<button
|
|
77
|
+
class="p-1.5 hover:bg-gray-100 rounded-lg transition-colors opacity-0 group-hover:opacity-100 shrink-0"
|
|
78
|
+
>
|
|
79
|
+
<MoreVertical :size="16" class="text-gray-500" />
|
|
80
|
+
</button>
|
|
81
|
+
</div>
|
|
82
|
+
|
|
83
|
+
<div class="flex items-center gap-4 text-xs text-gray-500 mb-3">
|
|
84
|
+
<span>{{ file.size }}</span>
|
|
85
|
+
<span>{{ file.date }}</span>
|
|
86
|
+
<span
|
|
87
|
+
:class="[
|
|
88
|
+
'px-2 py-0.5 rounded-full font-medium',
|
|
89
|
+
file.categoryKey === 'BloodRoutine'
|
|
90
|
+
? 'bg-red-100 text-red-700'
|
|
91
|
+
: file.categoryKey === 'CTImage'
|
|
92
|
+
? 'bg-blue-100 text-blue-700'
|
|
93
|
+
: file.categoryKey === 'XRay'
|
|
94
|
+
? 'bg-purple-100 text-purple-700'
|
|
95
|
+
: 'bg-green-100 text-green-700',
|
|
96
|
+
]"
|
|
97
|
+
>
|
|
98
|
+
{{ file.category }}
|
|
99
|
+
</span>
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
<div class="flex gap-2">
|
|
103
|
+
<button
|
|
104
|
+
class="px-3 py-1.5 bg-[#0D9488] hover:bg-[#0F766E] text-white rounded-lg text-xs font-medium transition-colors flex items-center gap-1"
|
|
105
|
+
>
|
|
106
|
+
<Eye :size="14" />
|
|
107
|
+
{{ t('Medical.Common.View') }}
|
|
108
|
+
</button>
|
|
109
|
+
<button
|
|
110
|
+
class="px-3 py-1.5 border border-gray-200 hover:bg-gray-50 rounded-lg text-xs font-medium transition-colors flex items-center gap-1"
|
|
111
|
+
>
|
|
112
|
+
<Download :size="14" />
|
|
113
|
+
{{ t('Medical.Common.Download') }}
|
|
114
|
+
</button>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
|
|
120
|
+
<div v-if="files.length === 0" class="text-center py-12">
|
|
121
|
+
<div
|
|
122
|
+
class="w-20 h-20 rounded-full bg-gray-100 mx-auto flex items-center justify-center mb-4"
|
|
123
|
+
>
|
|
124
|
+
<FolderOpen :size="32" class="text-gray-400" />
|
|
125
|
+
</div>
|
|
126
|
+
<p class="text-sm text-gray-500 mb-2">
|
|
127
|
+
{{ t('Medical.Data.EmptyTitle') }}
|
|
128
|
+
</p>
|
|
129
|
+
<p class="text-xs text-gray-400">{{ t('Medical.Data.EmptyDesc') }}</p>
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
|
|
133
|
+
<div class="p-6 border-t border-gray-100 shrink-0 bg-gray-50">
|
|
134
|
+
<div class="flex items-start gap-2 text-xs text-gray-500">
|
|
135
|
+
<AlertCircle :size="12" class="mt-0.5 shrink-0" />
|
|
136
|
+
<p>{{ t('Medical.Data.SecurityTip') }}</p>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
139
|
+
</div>
|
|
140
|
+
</template>
|
|
141
|
+
|
|
142
|
+
<script setup lang="ts">
|
|
143
|
+
import { computed } from 'vue';
|
|
144
|
+
import { useUIKit } from '@tencentcloud/uikit-base-component-vue3';
|
|
145
|
+
import {
|
|
146
|
+
AlertCircle,
|
|
147
|
+
Download,
|
|
148
|
+
Eye,
|
|
149
|
+
FileText,
|
|
150
|
+
FolderOpen,
|
|
151
|
+
ImageIcon,
|
|
152
|
+
MoreVertical,
|
|
153
|
+
Upload,
|
|
154
|
+
} from '@/shared/icons';
|
|
155
|
+
|
|
156
|
+
interface PatientInfo {
|
|
157
|
+
name: string;
|
|
158
|
+
age: number;
|
|
159
|
+
gender: string;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
defineProps<{
|
|
163
|
+
patientInfo: PatientInfo;
|
|
164
|
+
}>();
|
|
165
|
+
const { t } = useUIKit();
|
|
166
|
+
|
|
167
|
+
const files = computed(() => [
|
|
168
|
+
{
|
|
169
|
+
id: '1',
|
|
170
|
+
name: t('Medical.Data.BloodRoutineReport'),
|
|
171
|
+
type: 'pdf',
|
|
172
|
+
size: '2.3 MB',
|
|
173
|
+
date: '2026-04-15',
|
|
174
|
+
category: t('Medical.Data.BloodRoutine'),
|
|
175
|
+
categoryKey: 'BloodRoutine',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
id: '2',
|
|
179
|
+
name: t('Medical.Data.ChestCTImage'),
|
|
180
|
+
type: 'image',
|
|
181
|
+
size: '5.1 MB',
|
|
182
|
+
date: '2026-04-14',
|
|
183
|
+
category: t('Medical.Data.CTImage'),
|
|
184
|
+
categoryKey: 'CTImage',
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
id: '3',
|
|
188
|
+
name: t('Medical.Data.ECGReport'),
|
|
189
|
+
type: 'pdf',
|
|
190
|
+
size: '1.8 MB',
|
|
191
|
+
date: '2026-04-13',
|
|
192
|
+
category: t('Medical.Data.ECG'),
|
|
193
|
+
categoryKey: 'ECG',
|
|
194
|
+
},
|
|
195
|
+
]);
|
|
196
|
+
</script>
|