Skip to content

Commit

Permalink
release: 5.1.2 & 修改留观时长的单位
Browse files Browse the repository at this point in the history
  • Loading branch information
guguji5 committed Jan 29, 2022
1 parent 3ae3da1 commit bae92ed
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "n9e-fe",
"version": "5.1.1",
"version": "5.1.2",
"scripts": {
"dev": "vite --port 8765 --host",
"preinstall": "sh beforeinstall.sh",
Expand Down
9 changes: 7 additions & 2 deletions src/pages/warning/strategy/components/editModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -498,9 +498,14 @@ const editModal: React.FC<Props> = ({ isModalVisible, editModalFinish }) => {
},
]}
>
<InputNumber min={0} />
<InputNumber
min={0}
onChange={(val) => {
setRefresh(!refresh);
}}
/>
</Form.Item>
分钟
<Tooltip title={t(`持续${form.getFieldValue('recover_duration')}秒没有再次触发阈值才发送恢复通知`)}>
<QuestionCircleFilled />
</Tooltip>
Expand Down
9 changes: 7 additions & 2 deletions src/pages/warning/strategy/components/operateForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,14 @@ const operateForm: React.FC<Props> = ({ type, detail = {} }) => {
<Form.Item label={t('留观时长')} required>
<Space>
<Form.Item style={{ marginBottom: 0 }} name='recover_duration' initialValue={0} wrapperCol={{ span: 10 }}>
<InputNumber min={0} />
<InputNumber
min={0}
onChange={(val) => {
setRefresh(!refresh);
}}
/>
</Form.Item>
分钟
<Tooltip title={t(`持续${form.getFieldValue('recover_duration')}秒没有再次触发阈值才发送恢复通知`)}>
<QuestionCircleFilled />
</Tooltip>
Expand Down

0 comments on commit bae92ed

Please sign in to comment.