mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
feat(analysis): add private chat journey insight
This commit is contained in:
1 parent
ce5dfe08e9
commit
651e9c1935
28 files changed
+1485
-2
No files matched your search
@@ -4,6 +4,7 @@ import { useI18n } from 'vue-i18n'
|
||||
import { SectionTabs } from '@/components/navigation'
|
||||
import UserSelect from '@/components/common/UserSelect.vue'
|
||||
import PrivateRelationshipView from '@/components/analysis/relationships/PrivateRelationshipView.vue'
|
||||
import JourneyView from '@/components/analysis/journey/JourneyView.vue'
|
||||
import TypeAnalysisView from '@/components/analysis/message/TypeAnalysisView.vue'
|
||||
import TimeAnalysisView from '@/components/analysis/message/TimeAnalysisView.vue'
|
||||
import { LanguagePreferenceTab, WordcloudTab } from '@/components/analysis/quotes'
|
||||
@@ -37,6 +38,7 @@ const subTabs = computed(() =>
|
||||
? [
|
||||
{ id: 'overview', label: t('analysis.tabs.overview'), icon: 'i-heroicons-squares-2x2' },
|
||||
{ id: 'relationship', label: t('analysis.subTabs.insights.relationship'), icon: 'i-heroicons-heart' },
|
||||
{ id: 'journey', label: t('analysis.subTabs.insights.journey'), icon: 'i-heroicons-map' },
|
||||
{ id: 'type-analysis', label: t('analysis.subTabs.insights.typeAnalysis'), icon: 'i-heroicons-chart-pie' },
|
||||
{ id: 'time-analysis', label: t('analysis.subTabs.insights.timeAnalysis'), icon: 'i-heroicons-clock' },
|
||||
{ id: 'topic', label: t('analysis.subTabs.insights.topic'), icon: 'i-heroicons-cloud' },
|
||||
@@ -108,6 +110,12 @@ const viewTimeFilter = computed(() => ({ ...props.timeFilter, memberId: selected
|
||||
:session-id="props.sessionId"
|
||||
:time-filter="props.timeFilter"
|
||||
/>
|
||||
<JourneyView
|
||||
v-else-if="activeSubTab === 'journey'"
|
||||
:session-id="props.sessionId"
|
||||
:time-filter="props.timeFilter"
|
||||
:time-range="props.timeRange"
|
||||
/>
|
||||
<TypeAnalysisView
|
||||
v-else-if="activeSubTab === 'type-analysis'"
|
||||
:key="selectedMemberId ?? 'all'"
|
||||
|
||||
Reference in new issue
Block a user