refactor(system): 重构消息中心功能
- 移除 WebSocket相关代码 - 新增 SSE (Server-Sent Events) 实现消息推送 - 优化消息中心未读数量展示和更新逻辑- 调整消息中心相关 API 和前端展示
This commit is contained in:
@@ -131,10 +131,7 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
||||
data: [
|
||||
{ value: 0, label: '按用户' },
|
||||
{ value: 1, label: '按角色' },
|
||||
{
|
||||
value: 2,
|
||||
label: '按部门',
|
||||
},
|
||||
{ value: 2, label: '按部门' },
|
||||
{ value: 3, label: '通知公告' },
|
||||
],
|
||||
}),
|
||||
@@ -142,14 +139,7 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
||||
component: {
|
||||
optionName: 'el-radio-button',
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: '必选项',
|
||||
// @ts-ignore
|
||||
trigger: ['blur', 'change'],
|
||||
},
|
||||
],
|
||||
rules: [{ required: true, message: '必选项', trigger: ['blur', 'change'] }],
|
||||
},
|
||||
},
|
||||
target_user: {
|
||||
@@ -191,10 +181,7 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
||||
}),
|
||||
rules: [
|
||||
// 表单校验规则
|
||||
{
|
||||
required: true,
|
||||
message: '必填项',
|
||||
},
|
||||
{ required: true, message: '必填项' },
|
||||
],
|
||||
},
|
||||
column: {
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
highlight-current
|
||||
show-checkbox
|
||||
default-expand-all
|
||||
:check-on-click-leaf="false"
|
||||
>
|
||||
</el-tree>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user