Skip to content

Commit

Permalink
refactor(ui): 优化通知模板编辑弹窗和历史记录列表展示
Browse files Browse the repository at this point in the history
- 在通知模板编辑弹窗中移除了不必要的参数
- 优化了历史记录列表的摘要列显示,添加省略号
- 在时间引擎和规则单元组件中增加了点击事件,改善了用户交互
  • Loading branch information
aide-cloud committed Jan 15, 2025
1 parent 49de3c8 commit 1e49ee8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pages/archive/history/options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const getColumnList = (props: GroupColumnProps): ColumnsType<AlarmHistory
title: '摘要',
dataIndex: 'summary',
key: 'summary',
width: 400
ellipsis: true
},
{
title: '操作',
Expand Down
7 changes: 6 additions & 1 deletion src/pages/notify/rule/time-engine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,12 @@ const TimeEngine: React.FC<TimeEngineProps> = ({ switchTimeEngine }) => {
<Button type='link' onClick={switchTimeEngine}>
<SwapOutlined />
</Button>
<div className='text-lg font-bold text-slate-400'>规则单元</div>
<div
className='text-lg font-bold text-slate-400 cursor-pointer hover:text-purple-500'
onClick={switchTimeEngine}
>
规则单元
</div>
</div>
<Space size={8}>
<Button type='primary' onClick={() => handleEditModal()}>
Expand Down
7 changes: 6 additions & 1 deletion src/pages/notify/rule/time-rule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,12 @@ const TimeRule: React.FC<TimeRuleProps> = ({ switchTimeEngine }) => {
<Button type='link' onClick={switchTimeEngine}>
<SwapOutlined />
</Button>
<div className='text-lg font-bold text-slate-400'>时间引擎</div>
<div
className='text-lg font-bold text-slate-400 cursor-pointer hover:text-purple-500'
onClick={switchTimeEngine}
>
时间引擎
</div>
</div>
<Space size={8}>
<Button type='primary' onClick={() => handleEditModal()}>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/notify/template/modal-edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function EditSendTemplateModal(props: EditSendTemplateModalProps) {

useEffect(() => {
if (sendTemplateId && open) {
initSendTemplateDetail(sendTemplateId, true)
initSendTemplateDetail(sendTemplateId)
}
if (!open) {
form.resetFields()
Expand Down

0 comments on commit 1e49ee8

Please sign in to comment.