feat(system): 通知管理与文件选择器来源筛选
Build and Deploy Vue3 / build (push) Successful in 1m27s
Build and Deploy Vue3 / deploy (push) Successful in 34s

- 新增通知管理(渠道卡片化、模板 CRUD、参数按钮插入)

- ImageSelector/AvatarSelector 增加上传来源 is_admin 筛选

- 宿主机详情页实时指标与硬件/网卡 IPv6 展示优化

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
shiran
2026-06-04 16:38:47 +08:00
parent 0829dc9ce4
commit a827fc5c41
7 changed files with 977 additions and 13 deletions
+41
View File
@@ -0,0 +1,41 @@
import { http2 } from '@/utils/request.js'
// ========== 通知渠道配置 ==========
/** 获取全部通知渠道配置列表(无分页) */
export const getNoticeChannelList = () => {
return http2.get('/api/v1/admin/notice_message/channel/list')
}
/** 修改通知渠道配置 */
export const updateNoticeChannel = (data) => {
return http2.post('/api/v1/admin/notice_message/channel/update', data, {
headers: { 'Content-Type': 'multipart/form-data' }
})
}
// ========== 通知模板管理 ==========
/** 获取全部通知模板列表(无分页) */
export const getNoticeTemplateList = () => {
return http2.get('/api/v1/admin/notice_message/template/list')
}
/** 添加通知模板 */
export const addNoticeTemplate = (data) => {
return http2.post('/api/v1/admin/notice_message/template/add', data, {
headers: { 'Content-Type': 'multipart/form-data' }
})
}
/** 修改通知模板 */
export const updateNoticeTemplate = (data) => {
return http2.post('/api/v1/admin/notice_message/template/update', data, {
headers: { 'Content-Type': 'multipart/form-data' }
})
}
/** 删除通知模板 */
export const deleteNoticeTemplate = (params) => {
return http2.delete('/api/v1/admin/notice_message/template/delete', { params })
}