tangweijie e8d78a1aea feat: 新增AI监控仪表盘前端页面和功能
- 新增AI监控仪表盘入口页面(DashEntry.vue)
- 新增AI监控相关API(ai-dash-entry)
- 新增导入对话框组件(ImportDialog)
- 各模块页面新增导入按钮和功能
- 优化国际化配置和路由权限

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-21 00:19:30 +08:00

83 lines
2.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import request from '@/config/axios'
/** 计分考核分页参数 */
export interface ScorePageParams {
pageNo: number
pageSize: number
prisonerNo?: string
prisonerName?: string // 罪犯姓名
prisonAreaId?: number // 监区ID
prisonCellId?: number // 监室ID
year?: number
month?: number
level?: number
status?: number
}
/** 计分考核信息 */
export interface Score {
id: number // 记录ID
prisonerId?: number // 罪犯ID
prisonerNo?: string // 罪犯编号
prisonerName?: string // 罪犯姓名
prisonAreaId?: number // 监区ID
prisonAreaName?: string // 监区名称
prisonCellId?: number // 监室ID
prisonCellName?: string // 监室名称
year?: number // 考核年份
month?: number // 考核月份
baseScore: number // 基础分
rewardScore: number // 加分
penaltyScore: number // 扣分
totalScore: number // 总分
level: number // 考核等级1-优秀 2-良好 3-合格 4-不合格
assessorId: number // 考核人ID
assessorName: string // 考核人姓名
status?: number // 状态1-待审核 2-已通过 3-已驳回
remark: string // 备注
createTime?: Date // 创建时间
updateTime?: Date // 更新时间
}
// 计分考核 API
export const ScoreApi = {
// 查询计分考核分页
getScorePage: async (params: ScorePageParams) => {
return await request.get({ url: `/prison/score/page`, params })
},
// 查询计分考核详情
getScore: async (id: number) => {
return await request.get({ url: `/prison/score/get?id=` + id })
},
// 新增计分考核
createScore: async (data: Score) => {
return await request.post({ url: `/prison/score/create`, data })
},
// 修改计分考核
updateScore: async (data: Score) => {
return await request.put({ url: `/prison/score/update`, data })
},
// 删除计分考核
deleteScore: async (id: number) => {
return await request.delete({ url: `/prison/score/delete?id=` + id })
},
/** 批量删除计分考核 */
deleteScoreList: async (ids: number[]) => {
return await request.delete({ url: `/prison/score/delete-list?ids=${ids.join(',')}` })
},
// 导出计分考核 Excel
exportScore: async (params: ScorePageParams) => {
return await request.download({ url: `/prison/score/export-excel`, params })
},
// 获取导入模板
getImportTemplate: async () => {
return await request.download({ url: `/prison/score/get-import-template` })
}
}