feat: 删除告警通知场景编辑页-限流阈值
This commit is contained in:
parent
40fb767609
commit
64d105c61b
2
src/typings/api.d.ts
vendored
2
src/typings/api.d.ts
vendored
@ -559,7 +559,7 @@ declare namespace Api {
|
|||||||
/** 限流开关 */
|
/** 限流开关 */
|
||||||
rateLimiterStatus: Api.Common.EnableStatusNumber;
|
rateLimiterStatus: Api.Common.EnableStatusNumber;
|
||||||
/** 每秒限流阈值 */
|
/** 每秒限流阈值 */
|
||||||
rateLimiterThreshold: number;
|
rateLimiterThreshold: number | null;
|
||||||
/** 描述 */
|
/** 描述 */
|
||||||
description: string;
|
description: string;
|
||||||
}>;
|
}>;
|
||||||
|
@ -99,8 +99,8 @@ function createDefaultModel(): Model {
|
|||||||
notifyStatus: 1,
|
notifyStatus: 1,
|
||||||
notifyScene: 1,
|
notifyScene: 1,
|
||||||
notifyThreshold: 16,
|
notifyThreshold: 16,
|
||||||
rateLimiterStatus: 1,
|
rateLimiterStatus: 0,
|
||||||
rateLimiterThreshold: 1,
|
rateLimiterThreshold: null,
|
||||||
description: ''
|
description: ''
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -308,11 +308,7 @@ watch(visible, () => {
|
|||||||
/>
|
/>
|
||||||
</NFormItem>
|
</NFormItem>
|
||||||
<NFormItem :label="$t('page.notifyConfig.rateLimiterStatus')" path="rateLimiterStatus">
|
<NFormItem :label="$t('page.notifyConfig.rateLimiterStatus')" path="rateLimiterStatus">
|
||||||
<NRadioGroup
|
<NRadioGroup v-model:value="model.rateLimiterStatus" name="rateLimiterStatus" disabled>
|
||||||
v-model:value="model.rateLimiterStatus"
|
|
||||||
name="rateLimiterStatus"
|
|
||||||
:disabled="props.operateType === 'edit'"
|
|
||||||
>
|
|
||||||
<NSpace>
|
<NSpace>
|
||||||
<NRadio
|
<NRadio
|
||||||
v-for="item in enableStatusNumberOptions"
|
v-for="item in enableStatusNumberOptions"
|
||||||
@ -323,20 +319,12 @@ watch(visible, () => {
|
|||||||
</NSpace>
|
</NSpace>
|
||||||
</NRadioGroup>
|
</NRadioGroup>
|
||||||
</NFormItem>
|
</NFormItem>
|
||||||
<NFormItem :label="$t('page.notifyConfig.rateLimiterThreshold')" path="rateLimiterThreshold">
|
|
||||||
<NInputNumber
|
|
||||||
v-model:value="model.rateLimiterThreshold"
|
|
||||||
:min="1"
|
|
||||||
:placeholder="$t('page.notifyConfig.form.rateLimiterThreshold')"
|
|
||||||
:disabled="props.operateType === 'edit'"
|
|
||||||
/>
|
|
||||||
</NFormItem>
|
|
||||||
<NFormItem :label="$t('page.notifyConfig.notifyThreshold')" path="notifyThreshold">
|
<NFormItem :label="$t('page.notifyConfig.notifyThreshold')" path="notifyThreshold">
|
||||||
<NInputNumber
|
<NInputNumber
|
||||||
v-model:value="model.notifyThreshold"
|
v-model:value="model.notifyThreshold"
|
||||||
:min="1"
|
:min="1"
|
||||||
:placeholder="$t('page.notifyConfig.form.notifyThreshold')"
|
:placeholder="$t('page.notifyConfig.form.notifyThreshold')"
|
||||||
:disabled="props.operateType === 'edit'"
|
disabled
|
||||||
/>
|
/>
|
||||||
</NFormItem>
|
</NFormItem>
|
||||||
<NFormItem :label="$t('page.notifyConfig.description')" path="description">
|
<NFormItem :label="$t('page.notifyConfig.description')" path="description">
|
||||||
|
Loading…
Reference in New Issue
Block a user