Skip to content

Commit

Permalink
Fix the alert option is incorrect (DataLinkDC#2798)
Browse files Browse the repository at this point in the history
* fix log error

* Fix the alert option is incorrect

* Fix the alert option is incorrect
  • Loading branch information
gaoyan1998 authored Dec 26, 2023
1 parent 1a3cc6a commit b25694d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export const AlertRules: any = {
jobName: {
label: l('sys.alert.rule.label.taskId'),
valueType: OperatorType.NUMBER_VALUE,
options_enum: EqRuleOperator
},
duration: {
label: l('sys.alert.rule.label.duration'),
Expand All @@ -82,8 +81,7 @@ export const AlertRules: any = {
},
checkpointCostTime: {
label: l('sys.alert.rule.label.checkpointTime'),
valueType: OperatorType.OPTIONS_SEL,
valueEnum: BOOLEAN_VALUE_ENUM
valueType: OperatorType.NUMBER_VALUE,
},
isCheckpointFailed: {
label: l('sys.alert.rule.label.checkpointFailed'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,15 @@ export const buildValueItem = (key: string, isSystem: boolean) => {
name={'ruleValue'}
fieldProps={{ precision: 0 }}
placeholder={plh}
width={'sm'}
/>
);
case OperatorType.STR_VALUE:
return <ProFormText disabled={isSystem} name={'ruleValue'} placeholder={plh} />;
return <ProFormText width={'sm'} disabled={isSystem} name={'ruleValue'} placeholder={plh} />;
case OperatorType.OPTIONS_SEL:
return (
<ProFormSelect
width={'sm'}
disabled={isSystem}
width={'sm'}
name='ruleValue'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ const RuleEditForm = (props: AlertRuleFormProps) => {
disabled={isSystem}
name='ruleOperator'
mode={'single'}
width={'sm'}
options={getOperatorOptions(ruleKey.ruleKey)}
/>
)}
Expand Down
31 changes: 0 additions & 31 deletions dinky-web/src/pages/SettingCenter/AlertRule/function.ts

This file was deleted.

0 comments on commit b25694d

Please sign in to comment.