This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
<ArtSearchBar
|
||||
v-model:filter="searchForm"
|
||||
:items="searchFormItems"
|
||||
label-width="90"
|
||||
:show-expand="false"
|
||||
@reset="handleReset"
|
||||
@search="handleSearch"
|
||||
@@ -36,7 +35,7 @@
|
||||
:total="pagination.total"
|
||||
:marginTop="10"
|
||||
:actions="getActions"
|
||||
:actionsWidth="150"
|
||||
:actionsWidth="120"
|
||||
@size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange"
|
||||
>
|
||||
@@ -199,7 +198,7 @@
|
||||
packageOptions.value.map((item) => ({ label: item.package_name, value: item.id }))
|
||||
},
|
||||
{
|
||||
label: '启用状态',
|
||||
label: '状态',
|
||||
prop: 'enabled',
|
||||
type: 'select',
|
||||
config: { clearable: true, placeholder: '全部' },
|
||||
@@ -236,7 +235,7 @@
|
||||
},
|
||||
{
|
||||
prop: 'enabled',
|
||||
label: '启用状态',
|
||||
label: '状态',
|
||||
width: 100,
|
||||
formatter: (row: PackageTrafficAlertRuleItem) =>
|
||||
h(
|
||||
@@ -264,7 +263,7 @@
|
||||
{ label: '套餐名称', prop: 'package_name' },
|
||||
{ label: '当前真流量额度', prop: 'real_data_mb' },
|
||||
{ label: '预警阈值', prop: 'threshold_percent' },
|
||||
{ label: '启用状态', prop: 'enabled' },
|
||||
{ label: '状态', prop: 'enabled' },
|
||||
{ label: '备注', prop: 'remark' },
|
||||
{ label: '更新时间', prop: 'updated_at' }
|
||||
]
|
||||
@@ -289,7 +288,6 @@
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('获取真流量预警规则列表失败:', error)
|
||||
ElMessage.error(normalizeApiError(error).message || '获取真流量预警规则列表失败')
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
@@ -375,7 +373,6 @@
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('更新真流量预警规则失败:', error)
|
||||
ElMessage.error(normalizeApiError(error).message || '操作失败')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -472,7 +469,6 @@
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('保存真流量预警规则失败:', error)
|
||||
ElMessage.error(normalizeApiError(error).message || '操作失败')
|
||||
} finally {
|
||||
submitting.value = false
|
||||
}
|
||||
|
||||
@@ -394,7 +394,6 @@
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('获取真流量达量预警记录失败:', error)
|
||||
ElMessage.error(normalizeApiError(error).message || '获取真流量达量预警记录失败')
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
@@ -506,7 +505,6 @@
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('创建真流量达量预警导出任务失败:', error)
|
||||
ElMessage.error(normalizeApiError(error).message || '创建导出任务失败')
|
||||
} finally {
|
||||
exportSubmitting.value = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user