Merge remote-tracking branch 'origin/main' into feature/0710_下载中心_rxd

This commit is contained in:
rd
2025-07-17 15:28:41 +08:00
28 changed files with 857 additions and 463 deletions

View File

@ -19,6 +19,12 @@
<span class="label">状态</span>
<StatusBox :status="item.status" />
</div>
<div class="field-row">
<span class="label">数据更新时间</span>
<span class="cts num">{{
exactFormatTime(item.last_synced_at, 'YYYY-MM-DD HH:mm:ss', 'YYYY-MM-DD HH:mm:ss')
}}</span>
</div>
<div class="field-row">
<span class="label">平台</span>
<img :src="PLATFORM_LIST.find((v) => v.value === item.platform)?.icon" width="14" height="14" />
@ -73,7 +79,7 @@ import { defineProps, ref, computed } from 'vue';
import { PLATFORM_LIST } from '@/views/property-marketing/put-account/common_constants';
import { EnumStatus } from '@/views/property-marketing/put-account/components/status-select/constants';
import { formatNumberShow } from '@/utils/tools';
import { formatNumberShow, exactFormatTime } from '@/utils/tools';
import PauseAccountPatchModal from './pause-account-patch';
import StatusBox from '../status-box';

View File

@ -250,6 +250,7 @@ const handleSyncData = () => {
if (syncType.value === INITIAL_SYNC_TYPE) {
postPlacementAccountsSync(id.value).then((res) => {
if (res.code === 200) {
update();
close();
}
});

View File

@ -76,7 +76,8 @@
size="mini"
show-total
show-jumper
:show-page-size="false"
show-page-size
:page-size-options="[8, 16, 20, 32, 64]"
:current="pageInfo.page"
:page-size="pageInfo.pageSize"
@change="onPageChange"
@ -113,7 +114,7 @@ const deleteAccountRef = ref(null);
const pageInfo = ref({
page: 1,
pageSize: 8,
pageSize: 20,
total: 0,
});
const query = ref(cloneDeep(INITIAL_QUERY));
@ -139,6 +140,7 @@ const tipLabel = computed(() => {
too_many_requests_number = 0,
account_frozen_number = 0,
miss_data_number = 0,
abnormal_number = 0,
} = healthData.value;
// 定义异常类型映射
@ -147,6 +149,7 @@ const tipLabel = computed(() => {
{ count: too_many_requests_number, label: '请求频繁' },
{ count: account_frozen_number, label: '账号被封' },
{ count: miss_data_number, label: '数据缺失' },
{ count: abnormal_number, label: '其他异常' },
];
// 过滤出有异常的项并格式化