feat(sj_1.0.0): 告警通知通知类型新增每秒限流阈值、通知状态修改bug

This commit is contained in:
wodeyangzipingpingwuqi 2024-05-15 09:52:53 +08:00
parent f10f573c13
commit d0c63d0be6

View File

@ -131,6 +131,7 @@ const rules: Record<RuleKey, App.Global.FormRule> = {
function handleUpdateModelWhenEdit() {
if (props.operateType === 'add') {
Object.assign(model, createDefaultModel());
retrySceneDisable.value = true;
return;
}
@ -360,18 +361,6 @@ watch(visible, () => {
:disabled="retrySceneDisable"
/>
</NFormItem>
<NFormItem :label="$t('page.notifyConfig.notifyStatus')" path="rateLimiterStatus">
<NRadioGroup v-model:value="model.notifyStatus" name="rateLimiterStatus">
<NSpace>
<NRadio
v-for="item in enableStatusNumberOptions"
:key="item.value"
:value="item.value"
:label="$t(item.label)"
/>
</NSpace>
</NRadioGroup>
</NFormItem>
<NFormItem :label="$t('page.notifyConfig.notifyThreshold')" path="notifyThreshold">
<NInputNumber
v-model:value="model.notifyThreshold"