This commit is contained in:
2026-02-10 19:24:46 +08:00
parent d59e4c0bb9
commit bef5c2f437
6 changed files with 94 additions and 5 deletions

View File

@@ -112,6 +112,11 @@
<div class="bg-slate-50 px-4 py-2 rounded-xl border border-slate-100 text-sm flex items-center gap-2">
<span class="text-slate-500">{{ $t('hostsList.currentNetwork') || '当前网络' }}:</span>
<span class="font-bold text-primary">{{ countryData }}</span>
<button @click="editCountry" :disabled="isRefreshingCountry"
class="p-1 rounded-md hover:bg-slate-200 transition-colors disabled:opacity-50 disabled:cursor-not-allowed"
:title="$t('hostsList.editCountry') || '编辑国家'">
<span class="material-icons-round text-slate-500 text-base">edit</span>
</button>
<button @click="refreshCountry" :disabled="isRefreshingCountry"
class="p-1 rounded-md hover:bg-slate-200 transition-colors disabled:opacity-50 disabled:cursor-not-allowed"
:title="$t('hostsList.refreshCountry') || '刷新国家'">
@@ -303,7 +308,7 @@ const sortNameOptions = ref([
const {
givePyAnchorId,
exportToExcel,
loginTikTok,
loginBigTikTok,
controlTask,
getBrotherInfo,
Specifystreaming,
@@ -394,6 +399,7 @@ const getlist = () => {
};
function getBigBrother() {
queryFormData.value.isRunning = true;
const settingData = { ...queryFormData.value, tenantId: userInfo.value.tenantId, region: countryData.value };
// Save settings
@@ -401,7 +407,7 @@ function getBigBrother() {
controlTask(JSON.stringify(settingData)).then(() => {
isRunnings.value = true;
queryFormData.value.isRunning = true;
startTimerfun();
// Start polling stats
@@ -555,9 +561,14 @@ function exportList() {
}
function openTikTok() {
loginTikTok();
loginBigTikTok();
}
// 编辑国家信息 - 使用共享 store
const editCountry = () => {
countryStore.showEditCountryDialog(t);
};
// 刷新国家信息 - 使用共享 store
const refreshCountry = async () => {
await countryStore.refreshCountry(t);