Compare commits
2 Commits
9606d4d9e1
...
2114880e47
| Author | SHA1 | Date | |
|---|---|---|---|
| 2114880e47 | |||
| c7ce916cca |
@@ -27,9 +27,15 @@ watch(() => props.isExpanded, (expanded, wasExpanded) => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// 当 test 通过后,props.model.enabled 会更新,需要同步到 editingModel
|
||||||
|
watch(() => props.model.enabled, (enabled) => {
|
||||||
|
editingModel.value.enabled = enabled
|
||||||
|
})
|
||||||
|
|
||||||
const status = computed(() => {
|
const status = computed(() => {
|
||||||
if (!props.model.api_key || !props.model.model) return 'empty'
|
// 基于 editingModel 计算状态
|
||||||
if (props.model.enabled) return 'available'
|
if (!editingModel.value.api_key || !editingModel.value.model) return 'empty'
|
||||||
|
if (editingModel.value.enabled) return 'available'
|
||||||
return 'unavailable'
|
return 'unavailable'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ const hourlyActivityData = computed(() =>
|
|||||||
<!-- CONVERSATIONS -->
|
<!-- CONVERSATIONS -->
|
||||||
<section class="stats-section">
|
<section class="stats-section">
|
||||||
<SectionHeader title="沟通系统" tag="cyan" />
|
<SectionHeader title="沟通系统" tag="cyan" />
|
||||||
<div class="stats-metrics-row">
|
<div class="stats-metrics-grid-4">
|
||||||
<div class="stat-bar-item">
|
<div class="stat-bar-item">
|
||||||
<div class="stat-bar-label">对话数</div>
|
<div class="stat-bar-label">对话数</div>
|
||||||
<div class="stat-bar-value">{{ formatNumber(conversationStats?.totals?.conversations || 0) }}</div>
|
<div class="stat-bar-value">{{ formatNumber(conversationStats?.totals?.conversations || 0) }}</div>
|
||||||
@@ -330,6 +330,12 @@ const hourlyActivityData = computed(() =>
|
|||||||
gap: 16px;
|
gap: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.stats-metrics-grid-4 {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(4, 1fr);
|
||||||
|
gap: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
.stat-bar-item {
|
.stat-bar-item {
|
||||||
background: var(--bg-card);
|
background: var(--bg-card);
|
||||||
border: 1px solid var(--border-dim);
|
border: 1px solid var(--border-dim);
|
||||||
@@ -356,6 +362,7 @@ const hourlyActivityData = computed(() =>
|
|||||||
|
|
||||||
.stat-bar-chart {
|
.stat-bar-chart {
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
|
min-height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stats-section {
|
.stats-section {
|
||||||
|
|||||||
Reference in New Issue
Block a user