优化达人页面

This commit is contained in:
2026-04-28 17:01:53 +08:00
parent d5d6495cba
commit ff25bb3922
3 changed files with 11 additions and 17 deletions

View File

@@ -125,7 +125,6 @@
<div class="mb-4 flex items-center justify-between gap-4">
<div>
<label class="mb-1 block text-sm font-medium text-gray-700">数据池来源</label>
<p class="text-xs text-gray-500">启动时只需告诉后端用主播池还是大哥池</p>
</div>
<span class="rounded-full border border-gray-200 bg-gray-100 px-3 py-1 text-xs text-gray-600">{{
dataPoolLabel }}</span>
@@ -220,7 +219,6 @@
<div class="flex items-start justify-between gap-3">
<div>
<div class="text-sm font-medium text-gray-900">大哥池</div>
<p class="mt-1 text-xs leading-5 text-gray-500">参考 brother_info 数据池维护大哥列表并支持切换为大哥池模式启动任务</p>
</div>
<span
:class="['rounded-full px-3 py-1 text-xs font-medium', isBrotherInfoMode ? 'bg-fuchsia-100 text-fuchsia-700' : 'bg-gray-100 text-gray-600']">{{

View File

@@ -129,6 +129,7 @@
<script setup>
import { computed, onBeforeUnmount, onMounted, ref } from 'vue';
import { useI18n } from 'vue-i18n';
import { ElMessage } from 'element-plus';
import { getUser } from '@/utils/storage';
import { expertInfoPage } from '@/api/account';
@@ -151,6 +152,7 @@ const tableData = ref([]);
const isRunning = ref(false);
const elapsedSeconds = ref(0);
const elapsedTimerId = ref(null);
const { t } = useI18n();
const { countryData, isLoading: isRefreshingCountry, initCountryInfo, refreshCountry, showEditCountryDialog } = useCountryInfo();
const { controlExpertCapture } = usePythonBridge();
@@ -171,7 +173,7 @@ onMounted(() => {
userInfo.value = getUser() || {};
tenantId.value = String(userInfo.value?.tenantId || '');
queryDate.value = buildTodayText();
void initCountryInfo((key) => key);
void initCountryInfo(t);
void loadList();
});
@@ -347,12 +349,12 @@ async function handleStop() {
}
async function refreshCountryFn() {
await refreshCountry((key) => key);
await refreshCountry(t);
}
async function editCountry() {
try {
await showEditCountryDialog((key) => key);
await showEditCountryDialog(t);
} catch {
// 用户取消
}