diff --git a/src/views/property-marketing/media-account/account-manage/index.vue b/src/views/property-marketing/media-account/account-manage/index.vue index 2a383fc..74753a7 100644 --- a/src/views/property-marketing/media-account/account-manage/index.vue +++ b/src/views/property-marketing/media-account/account-manage/index.vue @@ -146,7 +146,7 @@ const dataSource = ref([]); const selectedItems = ref([]); const healthData = ref({}); -const isAbNormalStatus = computed(() => healthData.value?.abnormal_number > 0); +const isAbNormalStatus = computed(() => healthData.value?.total_abnormal_number > 0); const checkedAll = computed(() => selectedItems.value.length === dataSource.value.length); const indeterminate = computed( @@ -159,23 +159,25 @@ const tipLabel = computed(() => { } const { - abnormal_number = 0, + total_abnormal_number = 0, login_invalid_number = 0, too_many_requests_number = 0, account_frozen_number = 0, + miss_data_number = 0, } = healthData.value; // 定义异常类型映射 const abnormalTypes = [ { count: login_invalid_number, label: 'cookie过期' }, - { count: too_many_requests_number, label: '已请求频繁' }, + { count: too_many_requests_number, label: '请求频繁' }, { count: account_frozen_number, label: '账号被封' }, + { count: miss_data_number, label: '数据缺失' }, ]; // 过滤出有异常的项并格式化 const abnormalLabels = abnormalTypes.filter(({ count }) => count > 0).map(({ count, label }) => `${count}个${label}`); - return `共有 ${abnormal_number} 个账号存在授权异常,其中:${abnormalLabels.join(',')}。`; + return `共有 ${total_abnormal_number} 个账号存在授权异常,其中:${abnormalLabels.join(',')}。`; }); onMounted(() => { diff --git a/src/views/property-marketing/put-account/account-manage/index.vue b/src/views/property-marketing/put-account/account-manage/index.vue index da35605..d0b4a33 100644 --- a/src/views/property-marketing/put-account/account-manage/index.vue +++ b/src/views/property-marketing/put-account/account-manage/index.vue @@ -122,7 +122,7 @@ const dataSource = ref([]); const selectedItems = ref([]); const healthData = ref({}); -const isAbNormalStatus = computed(() => healthData.value?.abnormal_number > 0); +const isAbNormalStatus = computed(() => healthData.value?.total_abnormal_number > 0); const checkedAll = computed(() => selectedItems.value.length === dataSource.value.length); const indeterminate = computed( @@ -135,23 +135,25 @@ const tipLabel = computed(() => { } const { - abnormal_number = 0, + total_abnormal_number = 0, login_invalid_number = 0, too_many_requests_number = 0, account_frozen_number = 0, + miss_data_number = 0, } = healthData.value; // 定义异常类型映射 const abnormalTypes = [ { count: login_invalid_number, label: 'cookie过期' }, - { count: too_many_requests_number, label: '已请求频繁' }, + { count: too_many_requests_number, label: '请求频繁' }, { count: account_frozen_number, label: '账号被封' }, + { count: miss_data_number, label: '数据缺失' }, ]; // 过滤出有异常的项并格式化 const abnormalLabels = abnormalTypes.filter(({ count }) => count > 0).map(({ count, label }) => `${count}个${label}`); - return `共有 ${abnormal_number} 个账号存在授权异常,其中:${abnormalLabels.join(',')}。`; + return `共有 ${total_abnormal_number} 个账号存在授权异常,其中:${abnormalLabels.join(',')}。`; }); onMounted(() => {