Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 70216b6fae |
@@ -79,8 +79,8 @@ const RULE_LIMITS: Record<RiskKind, { min: number; max: number; help: string }>
|
|||||||
},
|
},
|
||||||
compare: {
|
compare: {
|
||||||
min: 1,
|
min: 1,
|
||||||
max: 100,
|
max: 100000,
|
||||||
help: '同一账户按北京时间自然日累计;最高100次,与比价每日上限一致。',
|
help: '同一账户按北京时间自然日累计;该值同时作为每日比价业务上限和报警阈值。',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
const utcTime = (value: string | null, withDate = true) =>
|
const utcTime = (value: string | null, withDate = true) =>
|
||||||
@@ -412,7 +412,7 @@ export default function RiskMonitorPage() {
|
|||||||
};
|
};
|
||||||
await api.patch<RiskRuleConfig>('/admin/api/risk-monitor/rules', payload);
|
await api.patch<RiskRuleConfig>('/admin/api/risk-monitor/rules', payload);
|
||||||
setRuleOpen(false);
|
setRuleOpen(false);
|
||||||
void message.success('规则已保存,并已重新核算当前时段');
|
void message.success('规则与比价上限已保存,并已重新核算当前时段');
|
||||||
await loadAll(true);
|
await loadAll(true);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
void message.error(errMsg(error, '规则保存失败'));
|
void message.error(errMsg(error, '规则保存失败'));
|
||||||
@@ -857,7 +857,7 @@ export default function RiskMonitorPage() {
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<Modal
|
<Modal
|
||||||
title="风控规则设置"
|
title="风控规则与业务上限设置"
|
||||||
open={ruleOpen}
|
open={ruleOpen}
|
||||||
okText="保存并立即生效"
|
okText="保存并立即生效"
|
||||||
cancelText="取消"
|
cancelText="取消"
|
||||||
@@ -867,7 +867,7 @@ export default function RiskMonitorPage() {
|
|||||||
destroyOnHidden
|
destroyOnHidden
|
||||||
>
|
>
|
||||||
<p className={styles.ruleDialogIntro}>
|
<p className={styles.ruleDialogIntro}>
|
||||||
修改后会立即重算北京时间当前小时或当天的数据。提高阈值时,不再命中的待处理告警会自动收起;已忽略和已封禁记录不会改变。
|
修改后会立即重算北京时间当前小时或当天的数据。比价阈值还会立即成为单账户每日比价上限;提高阈值时,不再命中的待处理告警会自动收起,已忽略和已封禁记录不会改变。
|
||||||
</p>
|
</p>
|
||||||
<div className={styles.ruleSettings}>
|
<div className={styles.ruleSettings}>
|
||||||
{RISK_KINDS.map((kind) => {
|
{RISK_KINDS.map((kind) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user