提交代码
This commit is contained in:
1 parent
64a0c9e81a
commit
5022fafc37
115 files changed
+16832
-25
No files matched your search
@@ -0,0 +1,94 @@
|
||||
import request from '@/utils/request';
|
||||
import { XskhAssessmentApplicationApprovalQuery, XskhAssessmentApplicationApprovalBo, XskhAssessmentApplicationApprovalVo, AvailableScheduleOption } from './types';
|
||||
|
||||
// 查询学生考核申请列表
|
||||
export function listAssessmentApplication(query: XskhAssessmentApplicationApprovalQuery) {
|
||||
return request({
|
||||
url: '/assessment/application/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
// 查询学生考核申请详细
|
||||
export function getAssessmentApplication(id: string | number) {
|
||||
return request({
|
||||
url: '/assessment/application/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
// 新增学生考核申请
|
||||
export function addAssessmentApplication(data: XskhAssessmentApplicationApprovalBo) {
|
||||
return request({
|
||||
url: '/assessment/application',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
// 修改学生考核申请
|
||||
export function updateAssessmentApplication(data: XskhAssessmentApplicationApprovalBo) {
|
||||
return request({
|
||||
url: '/assessment/application',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
// 删除学生考核申请
|
||||
export function delAssessmentApplication(id: string | number | Array<string | number>) {
|
||||
return request({
|
||||
url: '/assessment/application/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
// 保存考核申请(草稿状态)
|
||||
export function saveAssessmentApplication(data: XskhAssessmentApplicationApprovalBo) {
|
||||
return request({
|
||||
url: '/assessment/application/save',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
// 提交考核申请
|
||||
export function submitAssessmentApplication(id: string | number) {
|
||||
return request({
|
||||
url: '/assessment/application/submit/' + id,
|
||||
method: 'put'
|
||||
});
|
||||
}
|
||||
|
||||
// 删除考核申请
|
||||
export function deleteAssessmentApplication(id: string | number) {
|
||||
return request({
|
||||
url: '/assessment/application/delete/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
// 获取可申请的考核计划列表
|
||||
export function getAvailableAssessmentSchedules() {
|
||||
return request<AvailableScheduleOption[]>({
|
||||
url: '/assessment/application/available',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
// 根据学生ID和考核计划ID查询申请
|
||||
export function getApplicationByStudentAndSchedule(studentId: string | number, scheduleId: string | number) {
|
||||
return request({
|
||||
url: `/assessment/application/student/${studentId}/schedule/${scheduleId}`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
// 根据考核计划ID获取关联的指标数据
|
||||
export function getIndicatorsByScheduleId(scheduleId: string | number) {
|
||||
return request({
|
||||
url: `/assessment/application/indicators/${scheduleId}`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,421 @@
|
||||
import { BaseEntity } from '@/api/types';
|
||||
|
||||
/**
|
||||
* 学生考核申请查询对象
|
||||
*/
|
||||
export interface XskhAssessmentApplicationApprovalQuery extends BaseEntity {
|
||||
/** 考核计划名称 */
|
||||
scheduleName?: string;
|
||||
/** 状态(1-草稿 2-已提交 3-班主任审核 6-已完成) */
|
||||
status?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核申请业务对象
|
||||
*/
|
||||
export interface XskhAssessmentApplicationApprovalBo extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 学生ID */
|
||||
studentId?: string | number;
|
||||
/** 学生姓名 */
|
||||
studentName?: string;
|
||||
/** 学号 */
|
||||
studentNo?: string;
|
||||
/** 学院名称 */
|
||||
collegeName?: string;
|
||||
/** 专业名称 */
|
||||
majorName?: string;
|
||||
/** 班级名称 */
|
||||
className?: string;
|
||||
/** 考核计划ID */
|
||||
scheduleId?: string | number;
|
||||
/** 考核计划名称 */
|
||||
scheduleName?: string;
|
||||
/** 自评得分 */
|
||||
selfScore?: number;
|
||||
/** 自评备注 */
|
||||
selfRemark?: string;
|
||||
/** 班主任评分 */
|
||||
teacherScore?: number;
|
||||
/** 总得分 */
|
||||
totalScore?: number;
|
||||
/** 状态(1-草稿 2-已提交 3-班主任审核 6-已完成) */
|
||||
status?: string;
|
||||
/** 班主任审核备注 */
|
||||
teacherApprovalRemark?: string;
|
||||
/** 创建者 */
|
||||
createBy?: string | number;
|
||||
/** 创建时间 */
|
||||
createTime?: string;
|
||||
/** 更新者 */
|
||||
updateBy?: string | number;
|
||||
/** 更新时间 */
|
||||
updateTime?: string;
|
||||
/** 删除标志(0-未删除 1-已删除) */
|
||||
deleted?: string;
|
||||
/** 租户ID */
|
||||
tenantId?: string | number;
|
||||
/** 自评得分列表 */
|
||||
selfScoreList?: XskhAssessmentSelfScoreBo[];
|
||||
/** 附加分申请列表 */
|
||||
bonusApprovalList?: XskhAssessmentBonusApprovalBo[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核申请视图对象
|
||||
*/
|
||||
export interface XskhAssessmentApplicationApprovalVo extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 学生ID */
|
||||
studentId?: string | number;
|
||||
/** 学生姓名 */
|
||||
studentName?: string;
|
||||
/** 学号 */
|
||||
studentNo?: string;
|
||||
/** 学院名称 */
|
||||
collegeName?: string;
|
||||
/** 专业名称 */
|
||||
majorName?: string;
|
||||
/** 班级名称 */
|
||||
className?: string;
|
||||
/** 考核计划ID */
|
||||
scheduleId?: string | number;
|
||||
/** 考核计划名称 */
|
||||
scheduleName?: string;
|
||||
/** 自评得分 */
|
||||
selfScore?: number;
|
||||
/** 自评备注 */
|
||||
selfRemark?: string;
|
||||
/** 班主任评分 */
|
||||
teacherScore?: number;
|
||||
/** 总得分 */
|
||||
totalScore?: number;
|
||||
/** 状态(1-草稿 2-已提交 3-班主任审核 6-已完成) */
|
||||
status?: string;
|
||||
/** 状态名称 */
|
||||
statusName?: string;
|
||||
/** 班主任审核备注 */
|
||||
teacherApprovalRemark?: string;
|
||||
/** 创建者 */
|
||||
createBy?: string | number;
|
||||
/** 创建时间 */
|
||||
createTime?: string;
|
||||
/** 更新者 */
|
||||
updateBy?: string | number;
|
||||
/** 更新时间 */
|
||||
updateTime?: string;
|
||||
/** 自评得分列表 */
|
||||
selfScoreList?: XskhAssessmentSelfScoreVo[];
|
||||
/** 附加分申请列表 */
|
||||
bonusApprovalList?: XskhAssessmentBonusApprovalVo[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核申请表单对象
|
||||
*/
|
||||
export interface XskhAssessmentApplicationApprovalForm extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 学生ID */
|
||||
studentId?: string | number;
|
||||
/** 学生姓名 */
|
||||
studentName?: string;
|
||||
/** 学号 */
|
||||
studentNo?: string;
|
||||
/** 学院名称 */
|
||||
collegeName?: string;
|
||||
/** 专业名称 */
|
||||
majorName?: string;
|
||||
/** 班级名称 */
|
||||
className?: string;
|
||||
/** 考核计划ID */
|
||||
scheduleId?: string | number;
|
||||
/** 考核计划名称 */
|
||||
scheduleName?: string;
|
||||
/** 自评得分 */
|
||||
selfScore?: number;
|
||||
/** 自评备注 */
|
||||
selfRemark?: string;
|
||||
/** 班主任评分 */
|
||||
teacherScore?: number;
|
||||
/** 总得分 */
|
||||
totalScore?: number;
|
||||
/** 状态(1-草稿 2-已提交 3-班主任审核 6-已完成) */
|
||||
status?: string;
|
||||
/** 班主任审核备注 */
|
||||
teacherApprovalRemark?: string;
|
||||
/** 自评得分列表 */
|
||||
selfScoreList?: XskhAssessmentSelfScoreForm[];
|
||||
/** 附加分申请列表 */
|
||||
bonusApprovalList?: XskhAssessmentBonusApprovalForm[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核自评得分业务对象
|
||||
*/
|
||||
export interface XskhAssessmentSelfScoreBo extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 考核申请ID */
|
||||
applicationId?: string | number;
|
||||
/** 考核指标ID */
|
||||
indicatorId?: string | number;
|
||||
/** 指标名称 */
|
||||
indicatorName?: string;
|
||||
/** 指标编码 */
|
||||
indicatorCode?: string;
|
||||
/** 指标说明 */
|
||||
indicatorDescription?: string;
|
||||
/** 指标类型 */
|
||||
indicatorType?: string;
|
||||
/** 最高分值 */
|
||||
maxScore?: number;
|
||||
/** 指标默认最高分值 */
|
||||
indicatorMaxScore?: number;
|
||||
/** 方案中该指标最高分值 */
|
||||
planMaxScore?: number;
|
||||
/** 排序号 */
|
||||
sortOrder?: number;
|
||||
/** 自评得分 */
|
||||
selfScore?: number;
|
||||
/** 自评备注 */
|
||||
selfRemark?: string;
|
||||
/** 班主任评分 */
|
||||
teacherScore?: number;
|
||||
/** 班主任备注 */
|
||||
teacherRemark?: string;
|
||||
/** 创建者 */
|
||||
createBy?: string | number;
|
||||
/** 创建时间 */
|
||||
createTime?: string;
|
||||
/** 更新者 */
|
||||
updateBy?: string | number;
|
||||
/** 更新时间 */
|
||||
updateTime?: string;
|
||||
/** 删除标志(0-未删除 1-已删除) */
|
||||
deleted?: string;
|
||||
/** 租户ID */
|
||||
tenantId?: string | number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核自评得分视图对象
|
||||
*/
|
||||
export interface XskhAssessmentSelfScoreVo extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 考核申请ID */
|
||||
applicationId?: string | number;
|
||||
/** 考核指标ID */
|
||||
indicatorId?: string | number;
|
||||
/** 指标名称 */
|
||||
indicatorName?: string;
|
||||
/** 指标编码 */
|
||||
indicatorCode?: string;
|
||||
/** 指标说明 */
|
||||
indicatorDescription?: string;
|
||||
/** 指标类型 */
|
||||
indicatorType?: string;
|
||||
/** 最高分值 */
|
||||
maxScore?: number;
|
||||
/** 指标默认最高分值 */
|
||||
indicatorMaxScore?: number;
|
||||
/** 方案中该指标最高分值 */
|
||||
planMaxScore?: number;
|
||||
/** 排序号 */
|
||||
sortOrder?: number;
|
||||
/** 自评得分 */
|
||||
selfScore?: number;
|
||||
/** 自评备注 */
|
||||
selfRemark?: string;
|
||||
/** 班主任评分 */
|
||||
teacherScore?: number;
|
||||
/** 班主任备注 */
|
||||
teacherRemark?: string;
|
||||
/** 创建者 */
|
||||
createBy?: string | number;
|
||||
/** 创建时间 */
|
||||
createTime?: string;
|
||||
/** 更新者 */
|
||||
updateBy?: string | number;
|
||||
/** 更新时间 */
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核自评得分表单对象
|
||||
*/
|
||||
export interface XskhAssessmentSelfScoreForm extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 考核申请ID */
|
||||
applicationId?: string | number;
|
||||
/** 考核指标ID */
|
||||
indicatorId?: string | number;
|
||||
/** 指标名称 */
|
||||
indicatorName?: string;
|
||||
/** 指标编码 */
|
||||
indicatorCode?: string;
|
||||
/** 指标说明 */
|
||||
indicatorDescription?: string;
|
||||
/** 指标类型 */
|
||||
indicatorType?: string;
|
||||
/** 最高分值 */
|
||||
maxScore?: number;
|
||||
/** 指标默认最高分值 */
|
||||
indicatorMaxScore?: number;
|
||||
/** 方案中该指标最高分值 */
|
||||
planMaxScore?: number;
|
||||
/** 排序号 */
|
||||
sortOrder?: number;
|
||||
/** 自评得分 */
|
||||
selfScore?: number;
|
||||
/** 自评备注 */
|
||||
selfRemark?: string;
|
||||
/** 班主任评分 */
|
||||
teacherScore?: number;
|
||||
/** 班主任备注 */
|
||||
teacherRemark?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生附加分申请业务对象
|
||||
*/
|
||||
export interface XskhAssessmentBonusApprovalBo extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 考核申请ID */
|
||||
applicationId?: string | number;
|
||||
/** 附加分项目名称 */
|
||||
bonusItemName?: string;
|
||||
/** 附加分内容 */
|
||||
bonusContent?: string;
|
||||
/** 附加分值 */
|
||||
bonusScore?: number;
|
||||
/** 附件 */
|
||||
attachment?: string;
|
||||
/** 审核状态(0-待审核 1-已审核) */
|
||||
approvalStatus?: string;
|
||||
/** 审核得分 */
|
||||
approvalScore?: number;
|
||||
/** 审核人 */
|
||||
approvalBy?: string | number;
|
||||
/** 审核时间 */
|
||||
approvalTime?: string;
|
||||
/** 审核备注 */
|
||||
approvalRemark?: string;
|
||||
/** 创建者 */
|
||||
createBy?: string | number;
|
||||
/** 创建时间 */
|
||||
createTime?: string;
|
||||
/** 更新者 */
|
||||
updateBy?: string | number;
|
||||
/** 更新时间 */
|
||||
updateTime?: string;
|
||||
/** 删除标志(0-未删除 1-已删除) */
|
||||
deleted?: string;
|
||||
/** 租户ID */
|
||||
tenantId?: string | number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生附加分申请视图对象
|
||||
*/
|
||||
export interface XskhAssessmentBonusApprovalVo extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 考核申请ID */
|
||||
applicationId?: string | number;
|
||||
/** 附加分项目名称 */
|
||||
bonusItemName?: string;
|
||||
/** 附加分内容 */
|
||||
bonusContent?: string;
|
||||
/** 附加分值 */
|
||||
bonusScore?: number;
|
||||
/** 附件 */
|
||||
attachment?: string;
|
||||
/** 审核状态(0-待审核 1-已审核) */
|
||||
approvalStatus?: string;
|
||||
/** 审核状态名称 */
|
||||
approvalStatusName?: string;
|
||||
/** 审核得分 */
|
||||
approvalScore?: number;
|
||||
/** 审核人 */
|
||||
approvalBy?: string | number;
|
||||
/** 审核时间 */
|
||||
approvalTime?: string;
|
||||
/** 审核备注 */
|
||||
approvalRemark?: string;
|
||||
/** 创建者 */
|
||||
createBy?: string | number;
|
||||
/** 创建时间 */
|
||||
createTime?: string;
|
||||
/** 更新者 */
|
||||
updateBy?: string | number;
|
||||
/** 更新时间 */
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生附加分申请表单对象
|
||||
*/
|
||||
export interface XskhAssessmentBonusApprovalForm extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 考核申请ID */
|
||||
applicationId?: string | number;
|
||||
/** 附加分项目名称 */
|
||||
bonusItemName?: string;
|
||||
/** 附加分内容 */
|
||||
bonusContent?: string;
|
||||
/** 附加分值 */
|
||||
bonusScore?: number;
|
||||
/** 附件 */
|
||||
attachment?: string;
|
||||
/** 审核状态(0-待审核 1-已审核) */
|
||||
approvalStatus?: string;
|
||||
/** 审核得分 */
|
||||
approvalScore?: number;
|
||||
/** 审核人 */
|
||||
approvalBy?: string | number;
|
||||
/** 审核时间 */
|
||||
approvalTime?: string;
|
||||
/** 审核备注 */
|
||||
approvalRemark?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 考核计划选项
|
||||
*/
|
||||
export interface AssessmentScheduleOption {
|
||||
/** 主键ID */
|
||||
id: string | number;
|
||||
/** 考核计划名称 */
|
||||
scheduleName: string;
|
||||
/** 考核计划说明 */
|
||||
scheduleDescription: string;
|
||||
/** 开始时间 */
|
||||
startTime: string;
|
||||
/** 结束时间 */
|
||||
endTime: string;
|
||||
/** 状态 */
|
||||
status: string;
|
||||
/** 状态名称 */
|
||||
statusName: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 可申请的考核计划选项(后端返回格式)
|
||||
*/
|
||||
export interface AvailableScheduleOption {
|
||||
/** 考核计划ID */
|
||||
scheduleId: string | number;
|
||||
/** 考核计划名称 */
|
||||
scheduleName: string;
|
||||
/** 状态 */
|
||||
status: string;
|
||||
/** 时间信息(临时存储在teacherApprovalRemark字段) */
|
||||
teacherApprovalRemark?: string;
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
import request from '@/utils/request';
|
||||
import { XskhAssessmentApprovalQuery, XskhAssessmentApprovalBo, XskhAssessmentApprovalVo } from './types';
|
||||
|
||||
// 查询学生考核审核列表
|
||||
export function listAssessmentApproval(query: XskhAssessmentApprovalQuery) {
|
||||
return request({
|
||||
url: '/assessment/approval/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
// 查询学生考核审核详细
|
||||
export function getAssessmentApproval(id: string | number) {
|
||||
return request({
|
||||
url: '/assessment/approval/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
// 新增学生考核审核
|
||||
export function addAssessmentApproval(data: XskhAssessmentApprovalBo) {
|
||||
return request({
|
||||
url: '/assessment/approval',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
// 修改学生考核审核
|
||||
export function updateAssessmentApproval(data: XskhAssessmentApprovalBo) {
|
||||
return request({
|
||||
url: '/assessment/approval',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
// 删除学生考核审核
|
||||
export function delAssessmentApproval(id: string | number | Array<string | number>) {
|
||||
return request({
|
||||
url: '/assessment/approval/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
// 审核考核申请
|
||||
export function approveAssessmentApplication(data: XskhAssessmentApprovalBo) {
|
||||
return request({
|
||||
url: '/assessment/approval/approve',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
// 获取班主任班级下的考核申请列表
|
||||
export function getTeacherClassApplications(scheduleId: string | number, query: XskhAssessmentApprovalQuery) {
|
||||
return request({
|
||||
url: '/assessment/approval/teacherClass',
|
||||
method: 'get',
|
||||
params: {
|
||||
...query,
|
||||
scheduleId: scheduleId
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 获取考核计划列表(进行中和已结束)
|
||||
export function getAvailableAssessmentSchedules() {
|
||||
return request({
|
||||
url: '/assessment/approval/available',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,411 @@
|
||||
import { BaseEntity } from '@/api/types';
|
||||
|
||||
/**
|
||||
* 学生考核审核查询对象
|
||||
*/
|
||||
export interface XskhAssessmentApprovalQuery extends BaseEntity {
|
||||
/** 考核计划名称 */
|
||||
scheduleName?: string;
|
||||
/** 状态(2-已提交 3-班主任审核 6-已完成) */
|
||||
status?: string;
|
||||
/** 学号 */
|
||||
studentNo?: string;
|
||||
/** 学生姓名 */
|
||||
studentName?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核审核业务对象
|
||||
*/
|
||||
export interface XskhAssessmentApprovalBo extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 学生ID */
|
||||
studentId?: string | number;
|
||||
/** 学生姓名 */
|
||||
studentName?: string;
|
||||
/** 学号 */
|
||||
studentNo?: string;
|
||||
/** 学院名称 */
|
||||
collegeName?: string;
|
||||
/** 专业名称 */
|
||||
majorName?: string;
|
||||
/** 班级名称 */
|
||||
className?: string;
|
||||
/** 考核计划ID */
|
||||
scheduleId?: string | number;
|
||||
/** 考核计划名称 */
|
||||
scheduleName?: string;
|
||||
/** 自评得分 */
|
||||
selfScore?: number;
|
||||
/** 班主任评分 */
|
||||
teacherScore?: number;
|
||||
/** 总得分 */
|
||||
totalScore?: number;
|
||||
/** 状态(2-已提交 3-班主任审核 6-已完成) */
|
||||
status?: string;
|
||||
/** 自评备注 */
|
||||
selfRemark?: string;
|
||||
/** 班主任审核备注 */
|
||||
teacherApprovalRemark?: string;
|
||||
/** 创建者 */
|
||||
createBy?: string | number;
|
||||
/** 创建时间 */
|
||||
createTime?: string;
|
||||
/** 更新者 */
|
||||
updateBy?: string | number;
|
||||
/** 更新时间 */
|
||||
updateTime?: string;
|
||||
/** 删除标志(0-未删除 1-已删除) */
|
||||
deleted?: string;
|
||||
/** 租户ID */
|
||||
tenantId?: string | number;
|
||||
/** 自评得分列表 */
|
||||
selfScoreList?: XskhAssessmentSelfScoreBo[];
|
||||
/** 附加分申请列表 */
|
||||
bonusApprovalList?: XskhAssessmentBonusApprovalBo[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核审核视图对象
|
||||
*/
|
||||
export interface XskhAssessmentApprovalVo extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 学生ID */
|
||||
studentId?: string | number;
|
||||
/** 学生姓名 */
|
||||
studentName?: string;
|
||||
/** 学号 */
|
||||
studentNo?: string;
|
||||
/** 学院名称 */
|
||||
collegeName?: string;
|
||||
/** 专业名称 */
|
||||
majorName?: string;
|
||||
/** 班级名称 */
|
||||
className?: string;
|
||||
/** 考核计划ID */
|
||||
scheduleId?: string | number;
|
||||
/** 考核计划名称 */
|
||||
scheduleName?: string;
|
||||
/** 自评得分 */
|
||||
selfScore?: number;
|
||||
/** 班主任评分 */
|
||||
teacherScore?: number;
|
||||
/** 总得分 */
|
||||
totalScore?: number;
|
||||
/** 状态(2-已提交 3-班主任审核 6-已完成) */
|
||||
status?: string;
|
||||
/** 状态名称 */
|
||||
statusName?: string;
|
||||
/** 自评备注 */
|
||||
selfRemark?: string;
|
||||
/** 班主任审核备注 */
|
||||
teacherApprovalRemark?: string;
|
||||
/** 创建者 */
|
||||
createBy?: string | number;
|
||||
/** 创建时间 */
|
||||
createTime?: string;
|
||||
/** 更新者 */
|
||||
updateBy?: string | number;
|
||||
/** 更新时间 */
|
||||
updateTime?: string;
|
||||
/** 自评得分列表 */
|
||||
selfScoreList?: XskhAssessmentSelfScoreVo[];
|
||||
/** 附加分申请列表 */
|
||||
bonusApprovalList?: XskhAssessmentBonusApprovalVo[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核申请表单对象
|
||||
*/
|
||||
export interface XskhAssessmentApprovalForm extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 学生ID */
|
||||
studentId?: string | number;
|
||||
/** 学生姓名 */
|
||||
studentName?: string;
|
||||
/** 学号 */
|
||||
studentNo?: string;
|
||||
/** 学院名称 */
|
||||
collegeName?: string;
|
||||
/** 专业名称 */
|
||||
majorName?: string;
|
||||
/** 班级名称 */
|
||||
className?: string;
|
||||
/** 考核计划ID */
|
||||
scheduleId?: string | number;
|
||||
/** 考核计划名称 */
|
||||
scheduleName?: string;
|
||||
/** 开始时间 */
|
||||
startTime?: string;
|
||||
/** 结束时间 */
|
||||
endTime?: string;
|
||||
/** 自评得分 */
|
||||
selfScore?: number;
|
||||
/** 班主任评分 */
|
||||
teacherScore?: number;
|
||||
/** 总得分 */
|
||||
totalScore?: number;
|
||||
/** 状态(1-草稿 2-已提交 3-班主任审核 4-学院审核 5-学校审核 6-已完成) */
|
||||
status?: string;
|
||||
/** 自评备注 */
|
||||
selfRemark?: string;
|
||||
/** 班主任审核备注 */
|
||||
teacherApprovalRemark?: string;
|
||||
/** 自评得分列表 */
|
||||
selfScoreList?: XskhAssessmentSelfScoreForm[];
|
||||
/** 附加分申请列表 */
|
||||
bonusApprovalList?: XskhAssessmentBonusApprovalForm[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核自评得分业务对象
|
||||
*/
|
||||
export interface XskhAssessmentSelfScoreBo extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 考核申请ID */
|
||||
applicationId?: string | number;
|
||||
/** 考核指标ID */
|
||||
indicatorId?: string | number;
|
||||
/** 指标名称 */
|
||||
indicatorName?: string;
|
||||
/** 指标编码 */
|
||||
indicatorCode?: string;
|
||||
/** 指标说明 */
|
||||
description?: string;
|
||||
/** 指标默认最高分值 */
|
||||
indicatorMaxScore?: number;
|
||||
/** 方案中该指标最高分值 */
|
||||
maxScore?: number;
|
||||
/** 排序号 */
|
||||
sortOrder?: number;
|
||||
/** 自评得分 */
|
||||
selfScore?: number;
|
||||
/** 自评备注 */
|
||||
selfRemark?: string;
|
||||
/** 班主任评分 */
|
||||
teacherScore?: number;
|
||||
/** 班主任备注 */
|
||||
teacherRemark?: string;
|
||||
/** 创建者 */
|
||||
createBy?: string | number;
|
||||
/** 创建时间 */
|
||||
createTime?: string;
|
||||
/** 更新者 */
|
||||
updateBy?: string | number;
|
||||
/** 更新时间 */
|
||||
updateTime?: string;
|
||||
/** 删除标志(0-未删除 1-已删除) */
|
||||
deleted?: string;
|
||||
/** 租户ID */
|
||||
tenantId?: string | number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核自评得分视图对象
|
||||
*/
|
||||
export interface XskhAssessmentSelfScoreVo extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 考核申请ID */
|
||||
applicationId?: string | number;
|
||||
/** 考核指标ID */
|
||||
indicatorId?: string | number;
|
||||
/** 指标名称 */
|
||||
indicatorName?: string;
|
||||
/** 指标编码 */
|
||||
indicatorCode?: string;
|
||||
/** 指标说明 */
|
||||
description?: string;
|
||||
/** 指标默认最高分值 */
|
||||
indicatorMaxScore?: number;
|
||||
/** 方案中该指标最高分值 */
|
||||
maxScore?: number;
|
||||
/** 排序号 */
|
||||
sortOrder?: number;
|
||||
/** 自评得分 */
|
||||
selfScore?: number;
|
||||
/** 自评备注 */
|
||||
selfRemark?: string;
|
||||
/** 班主任评分 */
|
||||
teacherScore?: number;
|
||||
/** 班主任备注 */
|
||||
teacherRemark?: string;
|
||||
/** 创建者 */
|
||||
createBy?: string | number;
|
||||
/** 创建时间 */
|
||||
createTime?: string;
|
||||
/** 更新者 */
|
||||
updateBy?: string | number;
|
||||
/** 更新时间 */
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核自评得分表单对象
|
||||
*/
|
||||
export interface XskhAssessmentSelfScoreForm extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 考核申请ID */
|
||||
applicationId?: string | number;
|
||||
/** 考核指标ID */
|
||||
indicatorId?: string | number;
|
||||
/** 指标名称 */
|
||||
indicatorName?: string;
|
||||
/** 指标编码 */
|
||||
indicatorCode?: string;
|
||||
/** 指标说明 */
|
||||
description?: string;
|
||||
/** 指标默认最高分值 */
|
||||
indicatorMaxScore?: number;
|
||||
/** 方案中该指标最高分值 */
|
||||
maxScore?: number;
|
||||
/** 排序号 */
|
||||
sortOrder?: number;
|
||||
/** 自评得分 */
|
||||
selfScore?: number;
|
||||
/** 自评备注 */
|
||||
selfRemark?: string;
|
||||
/** 班主任评分 */
|
||||
teacherScore?: number;
|
||||
/** 班主任备注 */
|
||||
teacherRemark?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生附加分申请业务对象
|
||||
*/
|
||||
export interface XskhAssessmentBonusApprovalBo extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 考核申请ID */
|
||||
applicationId?: string | number;
|
||||
/** 附加分项目名称 */
|
||||
bonusName?: string;
|
||||
/** 附加分内容 */
|
||||
bonusContent?: string;
|
||||
/** 附加分值 */
|
||||
bonusScore?: number;
|
||||
/** 附件 */
|
||||
evidenceFile?: string;
|
||||
/** 审核状态(0-待审核 1-已审核) */
|
||||
status?: string;
|
||||
/** 审核得分 */
|
||||
approvalScore?: number;
|
||||
/** 审核人 */
|
||||
approvalBy?: string | number;
|
||||
/** 审核人姓名 */
|
||||
approvalByName?: string;
|
||||
/** 审核时间 */
|
||||
approvalTime?: string;
|
||||
/** 审核备注 */
|
||||
approvalRemark?: string;
|
||||
/** 创建者 */
|
||||
createBy?: string | number;
|
||||
/** 创建时间 */
|
||||
createTime?: string;
|
||||
/** 更新者 */
|
||||
updateBy?: string | number;
|
||||
/** 更新时间 */
|
||||
updateTime?: string;
|
||||
/** 删除标志(0-未删除 1-已删除) */
|
||||
deleted?: string;
|
||||
/** 租户ID */
|
||||
tenantId?: string | number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生附加分申请视图对象
|
||||
*/
|
||||
export interface XskhAssessmentBonusApprovalVo extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 考核申请ID */
|
||||
applicationId?: string | number;
|
||||
/** 附加分项目名称 */
|
||||
bonusName?: string;
|
||||
/** 附加分内容 */
|
||||
bonusContent?: string;
|
||||
/** 附加分值 */
|
||||
bonusScore?: number;
|
||||
/** 附件 */
|
||||
evidenceFile?: string;
|
||||
/** 审核状态(0-待审核 1-已审核) */
|
||||
status?: string;
|
||||
/** 审核状态名称 */
|
||||
statusName?: string;
|
||||
/** 审核得分 */
|
||||
approvalScore?: number;
|
||||
/** 审核人 */
|
||||
approvalBy?: string | number;
|
||||
/** 审核人姓名 */
|
||||
approvalByName?: string;
|
||||
/** 审核时间 */
|
||||
approvalTime?: string;
|
||||
/** 审核备注 */
|
||||
approvalRemark?: string;
|
||||
/** 创建者 */
|
||||
createBy?: string | number;
|
||||
/** 创建时间 */
|
||||
createTime?: string;
|
||||
/** 更新者 */
|
||||
updateBy?: string | number;
|
||||
/** 更新时间 */
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生附加分申请表单对象
|
||||
*/
|
||||
export interface XskhAssessmentBonusApprovalForm extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 考核申请ID */
|
||||
applicationId?: string | number;
|
||||
/** 附加分项目名称 */
|
||||
bonusName?: string;
|
||||
/** 附加分内容 */
|
||||
bonusContent?: string;
|
||||
/** 附加分值 */
|
||||
bonusScore?: number;
|
||||
/** 附件 */
|
||||
evidenceFile?: string;
|
||||
/** 审核状态(0-待审核 1-已审核) */
|
||||
status?: string;
|
||||
/** 审核得分 */
|
||||
approvalScore?: number;
|
||||
/** 审核人 */
|
||||
approvalBy?: string | number;
|
||||
/** 审核人姓名 */
|
||||
approvalByName?: string;
|
||||
/** 审核时间 */
|
||||
approvalTime?: string;
|
||||
/** 审核备注 */
|
||||
approvalRemark?: string;
|
||||
/** 文件列表(前端使用) */
|
||||
fileList?: any[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 考核计划选项
|
||||
*/
|
||||
export interface AssessmentScheduleOption {
|
||||
/** 主键ID */
|
||||
id: string | number;
|
||||
/** 考核计划名称 */
|
||||
scheduleName: string;
|
||||
/** 考核计划说明 */
|
||||
scheduleDescription: string;
|
||||
/** 开始时间 */
|
||||
startTime: string;
|
||||
/** 结束时间 */
|
||||
endTime: string;
|
||||
/** 状态 */
|
||||
status: string;
|
||||
/** 状态名称 */
|
||||
statusName: string;
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { TableDataInfo, R } from '@/api/types';
|
||||
import { XskhAssessmentIndicatorVo, XskhAssessmentIndicatorBo, XskhAssessmentIndicatorQuery, XskhAssessmentIndicatorForm } from './types';
|
||||
|
||||
/**
|
||||
* 查询学生考核指标体系列表
|
||||
* @param query
|
||||
* @returns
|
||||
*/
|
||||
export function listAssessmentIndicator(query: XskhAssessmentIndicatorQuery): AxiosPromise<TableDataInfo<XskhAssessmentIndicatorVo>> {
|
||||
return request({
|
||||
url: '/assessment/indicator/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询学生考核指标体系详细
|
||||
* @param id
|
||||
* @returns
|
||||
*/
|
||||
export function getAssessmentIndicator(id: string | number): AxiosPromise<R<XskhAssessmentIndicatorVo>> {
|
||||
return request({
|
||||
url: '/assessment/indicator/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增学生考核指标体系
|
||||
* @param data
|
||||
* @returns
|
||||
*/
|
||||
export function addAssessmentIndicator(data: XskhAssessmentIndicatorForm): AxiosPromise<R<any>> {
|
||||
return request({
|
||||
url: '/assessment/indicator',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改学生考核指标体系
|
||||
* @param data
|
||||
* @returns
|
||||
*/
|
||||
export function updateAssessmentIndicator(data: XskhAssessmentIndicatorForm): AxiosPromise<R<any>> {
|
||||
return request({
|
||||
url: '/assessment/indicator',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除学生考核指标体系
|
||||
* @param ids
|
||||
* @returns
|
||||
*/
|
||||
export function delAssessmentIndicator(ids: string | string[] | number | number[]): AxiosPromise<R<any>> {
|
||||
return request({
|
||||
url: '/assessment/indicator/' + ids,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取启用的学生考核指标体系列表(用于下拉框)
|
||||
* @returns
|
||||
*/
|
||||
export function getEnabledAssessmentIndicators(): AxiosPromise<R<XskhAssessmentIndicatorVo[]>> {
|
||||
return request({
|
||||
url: '/assessment/indicator/enabled',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
import { BaseEntity } from '@/api/types';
|
||||
|
||||
/**
|
||||
* 学生考核指标体系查询对象
|
||||
*/
|
||||
export interface XskhAssessmentIndicatorQuery extends BaseEntity {
|
||||
/** 指标编码 */
|
||||
indicatorCode?: string;
|
||||
/** 指标名称 */
|
||||
indicatorName?: string;
|
||||
/** 状态(0-启用 1-禁用) */
|
||||
status?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核指标体系业务对象
|
||||
*/
|
||||
export interface XskhAssessmentIndicatorBo extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 指标编码 */
|
||||
indicatorCode?: string;
|
||||
/** 指标名称 */
|
||||
indicatorName?: string;
|
||||
/** 指标说明 */
|
||||
description?: string;
|
||||
/** 指标类型ID */
|
||||
indicatorTypeId?: string | number;
|
||||
/** 指标类型名称 */
|
||||
indicatorTypeName?: string;
|
||||
/** 最高分值 */
|
||||
maxScore?: number;
|
||||
/** 状态(0-启用 1-禁用) */
|
||||
status?: string;
|
||||
/** 排序号 */
|
||||
sortOrder?: number;
|
||||
/** 关联的违纪处分类型ID列表 */
|
||||
disciplineTypeIds?: string[];
|
||||
/** 关联的奖励类型ID列表 */
|
||||
rewardTypeIds?: string[];
|
||||
/** 创建者 */
|
||||
createBy?: string | number;
|
||||
/** 创建时间 */
|
||||
createTime?: string;
|
||||
/** 更新者 */
|
||||
updateBy?: string | number;
|
||||
/** 更新时间 */
|
||||
updateTime?: string;
|
||||
/** 删除标志(0-未删除 1-已删除) */
|
||||
deleted?: string;
|
||||
/** 租户ID */
|
||||
tenantId?: string | number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核指标体系视图对象
|
||||
*/
|
||||
export interface XskhAssessmentIndicatorVo extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 指标编码 */
|
||||
indicatorCode?: string;
|
||||
/** 指标名称 */
|
||||
indicatorName?: string;
|
||||
/** 指标说明 */
|
||||
description?: string;
|
||||
/** 指标类型ID */
|
||||
indicatorTypeId?: string | number;
|
||||
/** 指标类型名称 */
|
||||
indicatorTypeName?: string;
|
||||
/** 最高分值 */
|
||||
maxScore?: number;
|
||||
/** 状态(0-启用 1-禁用) */
|
||||
status?: string;
|
||||
/** 状态名称 */
|
||||
statusName?: string;
|
||||
/** 排序号 */
|
||||
sortOrder?: number;
|
||||
/** 关联的违纪处分类型ID列表 */
|
||||
disciplineTypeIds?: string[];
|
||||
/** 关联的奖励类型ID列表 */
|
||||
rewardTypeIds?: string[];
|
||||
/** 创建者 */
|
||||
createBy?: string | number;
|
||||
/** 创建时间 */
|
||||
createTime?: string;
|
||||
/** 更新者 */
|
||||
updateBy?: string | number;
|
||||
/** 更新时间 */
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核指标体系表单对象
|
||||
*/
|
||||
export interface XskhAssessmentIndicatorForm extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 指标编码 */
|
||||
indicatorCode?: string;
|
||||
/** 指标名称 */
|
||||
indicatorName?: string;
|
||||
/** 指标说明 */
|
||||
description?: string;
|
||||
/** 指标类型ID */
|
||||
indicatorTypeId?: string | number;
|
||||
/** 最高分值 */
|
||||
maxScore?: number;
|
||||
/** 状态(0-启用 1-禁用) */
|
||||
status?: string;
|
||||
/** 排序号 */
|
||||
sortOrder?: number;
|
||||
/** 关联的违纪处分类型ID列表 */
|
||||
disciplineTypeIds?: string[];
|
||||
/** 关联的奖励类型ID列表 */
|
||||
rewardTypeIds?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 违纪处分类型选项
|
||||
*/
|
||||
export interface DisciplineTypeOption {
|
||||
/** 主键ID */
|
||||
id: string | number;
|
||||
/** 类型编码 */
|
||||
typeCode: string;
|
||||
/** 类型名称 */
|
||||
typeName: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 奖励类型选项
|
||||
*/
|
||||
export interface RewardTypeOption {
|
||||
/** 主键ID */
|
||||
id: string | number;
|
||||
/** 类型编码 */
|
||||
typeCode: string;
|
||||
/** 类型名称 */
|
||||
typeName: string;
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { TableDataInfo, R } from '@/api/types';
|
||||
import { XskhAssessmentIndicatorTypeVo, XskhAssessmentIndicatorTypeBo, XskhAssessmentIndicatorTypeQuery, XskhAssessmentIndicatorTypeForm } from './types';
|
||||
|
||||
/**
|
||||
* 查询学生考核指标类型列表
|
||||
* @param query
|
||||
* @returns
|
||||
*/
|
||||
export function listAssessmentIndicatorType(query: XskhAssessmentIndicatorTypeQuery): AxiosPromise<TableDataInfo<XskhAssessmentIndicatorTypeVo>> {
|
||||
return request({
|
||||
url: '/assessment/indicatorType/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询学生考核指标类型详细
|
||||
* @param id
|
||||
* @returns
|
||||
*/
|
||||
export function getAssessmentIndicatorType(id: string | number): AxiosPromise<R<XskhAssessmentIndicatorTypeVo>> {
|
||||
return request({
|
||||
url: '/assessment/indicatorType/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增学生考核指标类型
|
||||
* @param data
|
||||
* @returns
|
||||
*/
|
||||
export function addAssessmentIndicatorType(data: XskhAssessmentIndicatorTypeForm): AxiosPromise<R<any>> {
|
||||
return request({
|
||||
url: '/assessment/indicatorType',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改学生考核指标类型
|
||||
* @param data
|
||||
* @returns
|
||||
*/
|
||||
export function updateAssessmentIndicatorType(data: XskhAssessmentIndicatorTypeForm): AxiosPromise<R<any>> {
|
||||
return request({
|
||||
url: '/assessment/indicatorType',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除学生考核指标类型
|
||||
* @param ids
|
||||
* @returns
|
||||
*/
|
||||
export function delAssessmentIndicatorType(ids: string | string[] | number | number[]): AxiosPromise<R<any>> {
|
||||
return request({
|
||||
url: '/assessment/indicatorType/' + ids,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取启用的学生考核指标类型列表(用于下拉框)
|
||||
* @returns
|
||||
*/
|
||||
export function getEnabledAssessmentIndicatorTypes(): AxiosPromise<R<XskhAssessmentIndicatorTypeVo[]>> {
|
||||
return request({
|
||||
url: '/assessment/indicatorType/enabled',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
import { BaseEntity } from '@/api/types';
|
||||
|
||||
/**
|
||||
* 学生考核指标类型查询对象
|
||||
*/
|
||||
export interface XskhAssessmentIndicatorTypeQuery extends BaseEntity {
|
||||
/** 类型编码 */
|
||||
typeCode?: string;
|
||||
/** 类型名称 */
|
||||
typeName?: string;
|
||||
/** 状态(0-启用 1-禁用) */
|
||||
status?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核指标类型业务对象
|
||||
*/
|
||||
export interface XskhAssessmentIndicatorTypeBo extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 类型编码 */
|
||||
typeCode?: string;
|
||||
/** 类型名称 */
|
||||
typeName?: string;
|
||||
/** 类型说明 */
|
||||
description?: string;
|
||||
/** 状态(0-启用 1-禁用) */
|
||||
status?: string;
|
||||
/** 排序号 */
|
||||
sortOrder?: number;
|
||||
/** 创建者 */
|
||||
createBy?: string | number;
|
||||
/** 创建时间 */
|
||||
createTime?: string;
|
||||
/** 更新者 */
|
||||
updateBy?: string | number;
|
||||
/** 更新时间 */
|
||||
updateTime?: string;
|
||||
/** 删除标志(0-未删除 1-已删除) */
|
||||
deleted?: string;
|
||||
/** 租户ID */
|
||||
tenantId?: string | number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核指标类型视图对象
|
||||
*/
|
||||
export interface XskhAssessmentIndicatorTypeVo extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 类型编码 */
|
||||
typeCode?: string;
|
||||
/** 类型名称 */
|
||||
typeName?: string;
|
||||
/** 类型说明 */
|
||||
description?: string;
|
||||
/** 状态(0-启用 1-禁用) */
|
||||
status?: string;
|
||||
/** 状态名称 */
|
||||
statusName?: string;
|
||||
/** 排序号 */
|
||||
sortOrder?: number;
|
||||
/** 创建者 */
|
||||
createBy?: string | number;
|
||||
/** 创建时间 */
|
||||
createTime?: string;
|
||||
/** 更新者 */
|
||||
updateBy?: string | number;
|
||||
/** 更新时间 */
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核指标类型表单对象
|
||||
*/
|
||||
export interface XskhAssessmentIndicatorTypeForm extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 类型编码 */
|
||||
typeCode?: string;
|
||||
/** 类型名称 */
|
||||
typeName?: string;
|
||||
/** 类型说明 */
|
||||
description?: string;
|
||||
/** 状态(0-启用 1-禁用) */
|
||||
status?: string;
|
||||
/** 排序号 */
|
||||
sortOrder?: number;
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { TableDataInfo, R } from '@/api/types';
|
||||
import { XskhAssessmentPlanVo, XskhAssessmentPlanBo, XskhAssessmentPlanQuery, XskhAssessmentPlanForm } from './types';
|
||||
|
||||
/**
|
||||
* 查询学生考核方案列表
|
||||
* @param query
|
||||
* @returns
|
||||
*/
|
||||
export function listAssessmentPlan(query: XskhAssessmentPlanQuery): AxiosPromise<TableDataInfo<XskhAssessmentPlanVo>> {
|
||||
return request({
|
||||
url: '/assessment/plan/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询学生考核方案详细
|
||||
* @param id
|
||||
* @returns
|
||||
*/
|
||||
export function getAssessmentPlan(id: string | number): AxiosPromise<R<XskhAssessmentPlanVo>> {
|
||||
return request({
|
||||
url: '/assessment/plan/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增学生考核方案
|
||||
* @param data
|
||||
* @returns
|
||||
*/
|
||||
export function addAssessmentPlan(data: XskhAssessmentPlanForm): AxiosPromise<R<any>> {
|
||||
return request({
|
||||
url: '/assessment/plan',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改学生考核方案
|
||||
* @param data
|
||||
* @returns
|
||||
*/
|
||||
export function updateAssessmentPlan(data: XskhAssessmentPlanForm): AxiosPromise<R<any>> {
|
||||
return request({
|
||||
url: '/assessment/plan',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除学生考核方案
|
||||
* @param ids
|
||||
* @returns
|
||||
*/
|
||||
export function delAssessmentPlan(ids: string | string[] | number | number[]): AxiosPromise<R<any>> {
|
||||
return request({
|
||||
url: '/assessment/plan/' + ids,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取启用的学生考核方案列表(用于下拉框)
|
||||
* @returns
|
||||
*/
|
||||
export function getEnabledAssessmentPlans(): AxiosPromise<R<XskhAssessmentPlanVo[]>> {
|
||||
return request({
|
||||
url: '/assessment/plan/enabled',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
import { BaseEntity } from '@/api/types';
|
||||
|
||||
/**
|
||||
* 学生考核方案查询对象
|
||||
*/
|
||||
export interface XskhAssessmentPlanQuery extends BaseEntity {
|
||||
/** 方案编号 */
|
||||
planCode?: string;
|
||||
/** 方案名称 */
|
||||
planName?: string;
|
||||
/** 状态(0-启用 1-禁用) */
|
||||
status?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核方案业务对象
|
||||
*/
|
||||
export interface XskhAssessmentPlanBo extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 方案编号 */
|
||||
planCode?: string;
|
||||
/** 方案名称 */
|
||||
planName?: string;
|
||||
/** 方案说明 */
|
||||
description?: string;
|
||||
/** 状态(0-启用 1-禁用) */
|
||||
status?: string;
|
||||
/** 创建者 */
|
||||
createBy?: string | number;
|
||||
/** 创建时间 */
|
||||
createTime?: string;
|
||||
/** 更新者 */
|
||||
updateBy?: string | number;
|
||||
/** 更新时间 */
|
||||
updateTime?: string;
|
||||
/** 删除标志(0-未删除 1-已删除) */
|
||||
deleted?: string;
|
||||
/** 租户ID */
|
||||
tenantId?: string | number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核方案视图对象
|
||||
*/
|
||||
export interface XskhAssessmentPlanVo extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 方案编号 */
|
||||
planCode?: string;
|
||||
/** 方案名称 */
|
||||
planName?: string;
|
||||
/** 方案说明 */
|
||||
description?: string;
|
||||
/** 状态(0-启用 1-禁用) */
|
||||
status?: string;
|
||||
/** 状态名称 */
|
||||
statusName?: string;
|
||||
/** 创建者 */
|
||||
createBy?: string | number;
|
||||
/** 创建时间 */
|
||||
createTime?: string;
|
||||
/** 更新者 */
|
||||
updateBy?: string | number;
|
||||
/** 更新时间 */
|
||||
updateTime?: string;
|
||||
/** 关联的指标列表 */
|
||||
indicatorList?: XskhAssessmentPlanIndicatorVo[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核方案表单对象
|
||||
*/
|
||||
export interface XskhAssessmentPlanForm extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 方案编号 */
|
||||
planCode?: string;
|
||||
/** 方案名称 */
|
||||
planName?: string;
|
||||
/** 方案说明 */
|
||||
description?: string;
|
||||
/** 状态(0-启用 1-禁用) */
|
||||
status?: string;
|
||||
/** 关联的指标列表 */
|
||||
indicatorList?: XskhAssessmentPlanIndicatorVo[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 考核方案关联指标对象
|
||||
*/
|
||||
export interface XskhAssessmentPlanIndicatorVo {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 考核方案ID */
|
||||
planId?: string | number;
|
||||
/** 考核指标ID */
|
||||
indicatorId?: string | number;
|
||||
/** 指标名称 */
|
||||
indicatorName?: string;
|
||||
/** 指标编码 */
|
||||
indicatorCode?: string;
|
||||
/** 指标说明 */
|
||||
indicatorDescription?: string;
|
||||
/** 指标默认最高分值 */
|
||||
indicatorMaxScore?: number;
|
||||
/** 该方案中该指标最高分值 */
|
||||
maxScore?: number;
|
||||
/** 排序号 */
|
||||
sortOrder?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 考核方案关联指标表单对象
|
||||
*/
|
||||
export interface XskhAssessmentPlanIndicatorForm {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 考核方案ID */
|
||||
planId?: string | number;
|
||||
/** 考核指标ID */
|
||||
indicatorId?: string | number;
|
||||
/** 该方案中该指标最高分值 */
|
||||
planMaxScore?: number;
|
||||
/** 排序号 */
|
||||
sortOrder?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 考核指标选项
|
||||
*/
|
||||
export interface AssessmentIndicatorOption {
|
||||
/** 主键ID */
|
||||
id: string | number;
|
||||
/** 指标编码 */
|
||||
indicatorCode: string;
|
||||
/** 指标名称 */
|
||||
indicatorName: string;
|
||||
/** 指标说明 */
|
||||
indicatorDescription: string;
|
||||
/** 最高分值 */
|
||||
maxScore: number;
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { TableDataInfo, R } from '@/api/types';
|
||||
import { XskhAssessmentScheduleVo, XskhAssessmentScheduleBo, XskhAssessmentScheduleQuery, XskhAssessmentScheduleForm } from './types';
|
||||
|
||||
/**
|
||||
* 查询学生考核计划列表
|
||||
* @param query
|
||||
* @returns
|
||||
*/
|
||||
export function listAssessmentSchedule(query: XskhAssessmentScheduleQuery): AxiosPromise<TableDataInfo<XskhAssessmentScheduleVo>> {
|
||||
return request({
|
||||
url: '/assessment/schedule/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据状态列表查询学生考核计划列表
|
||||
* @param query
|
||||
* @returns
|
||||
*/
|
||||
export function listAssessmentScheduleByStatus(query: XskhAssessmentScheduleQuery): AxiosPromise<TableDataInfo<XskhAssessmentScheduleVo>> {
|
||||
return request({
|
||||
url: '/assessment/schedule/listByStatus',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询学生考核计划详细
|
||||
* @param id
|
||||
* @returns
|
||||
*/
|
||||
export function getAssessmentSchedule(id: string | number): AxiosPromise<R<XskhAssessmentScheduleVo>> {
|
||||
return request({
|
||||
url: '/assessment/schedule/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增学生考核计划
|
||||
* @param data
|
||||
* @returns
|
||||
*/
|
||||
export function addAssessmentSchedule(data: XskhAssessmentScheduleForm): AxiosPromise<R<any>> {
|
||||
return request({
|
||||
url: '/assessment/schedule',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改学生考核计划
|
||||
* @param data
|
||||
* @returns
|
||||
*/
|
||||
export function updateAssessmentSchedule(data: XskhAssessmentScheduleForm): AxiosPromise<R<any>> {
|
||||
return request({
|
||||
url: '/assessment/schedule',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除学生考核计划
|
||||
* @param ids
|
||||
* @returns
|
||||
*/
|
||||
export function delAssessmentSchedule(ids: string | string[] | number | number[]): AxiosPromise<R<any>> {
|
||||
return request({
|
||||
url: '/assessment/schedule/' + ids,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 上线考核计划
|
||||
* @param id
|
||||
* @returns
|
||||
*/
|
||||
export function onlineAssessmentSchedule(id: string | number): AxiosPromise<R<any>> {
|
||||
return request({
|
||||
url: '/assessment/schedule/online/' + id,
|
||||
method: 'put'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 下线考核计划
|
||||
* @param id
|
||||
* @returns
|
||||
*/
|
||||
export function offlineAssessmentSchedule(id: string | number): AxiosPromise<R<any>> {
|
||||
return request({
|
||||
url: '/assessment/schedule/offline/' + id,
|
||||
method: 'put'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 完成考核计划
|
||||
* @param id
|
||||
* @returns
|
||||
*/
|
||||
export function completeAssessmentSchedule(id: string | number): AxiosPromise<R<any>> {
|
||||
return request({
|
||||
url: '/assessment/schedule/complete/' + id,
|
||||
method: 'put'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取启用的学生考核方案列表(用于下拉框)
|
||||
* @returns
|
||||
*/
|
||||
export function getEnabledAssessmentPlans(): AxiosPromise<R<any[]>> {
|
||||
return request({
|
||||
url: '/assessment/plan/enabled',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
import { BaseEntity } from '@/api/types';
|
||||
|
||||
/**
|
||||
* 学生考核计划查询对象
|
||||
*/
|
||||
export interface XskhAssessmentScheduleQuery extends BaseEntity {
|
||||
/** 考核计划名称 */
|
||||
scheduleName?: string;
|
||||
/** 学年 */
|
||||
academicYear?: string;
|
||||
/** 学期 */
|
||||
semester?: string;
|
||||
/** 状态(1-未开始 2-进行中 3-已结束) */
|
||||
status?: string;
|
||||
/** 状态列表(1-未开始 2-进行中 3-已结束) */
|
||||
statusList?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核计划业务对象
|
||||
*/
|
||||
export interface XskhAssessmentScheduleBo extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 考核计划名称 */
|
||||
scheduleName?: string;
|
||||
/** 考核计划说明 */
|
||||
description?: string;
|
||||
/** 考核方案ID */
|
||||
planId?: string | number;
|
||||
/** 考核方案名称 */
|
||||
planName?: string;
|
||||
/** 学年 */
|
||||
academicYear?: string;
|
||||
/** 学期(1-第一学期 2-第二学期) */
|
||||
semester?: string;
|
||||
/** 开始时间 */
|
||||
startTime?: string;
|
||||
/** 结束时间 */
|
||||
endTime?: string;
|
||||
/** 数据统计开始时间 */
|
||||
dataStartTime?: string;
|
||||
/** 数据统计结束时间 */
|
||||
dataEndTime?: string;
|
||||
/** 状态(1-未开始 2-进行中 3-已结束) */
|
||||
status?: string;
|
||||
/** 创建者 */
|
||||
createBy?: string | number;
|
||||
/** 创建时间 */
|
||||
createTime?: string;
|
||||
/** 更新者 */
|
||||
updateBy?: string | number;
|
||||
/** 更新时间 */
|
||||
updateTime?: string;
|
||||
/** 删除标志(0-未删除 1-已删除) */
|
||||
deleted?: string;
|
||||
/** 租户ID */
|
||||
tenantId?: string | number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核计划视图对象
|
||||
*/
|
||||
export interface XskhAssessmentScheduleVo extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 考核计划名称 */
|
||||
scheduleName?: string;
|
||||
/** 考核计划说明 */
|
||||
description?: string;
|
||||
/** 考核方案ID */
|
||||
planId?: string | number;
|
||||
/** 考核方案名称 */
|
||||
planName?: string;
|
||||
/** 学年 */
|
||||
academicYear?: string;
|
||||
/** 学期(1-第一学期 2-第二学期) */
|
||||
semester?: string;
|
||||
/** 学期名称 */
|
||||
semesterName?: string;
|
||||
/** 开始时间 */
|
||||
startTime?: string;
|
||||
/** 结束时间 */
|
||||
endTime?: string;
|
||||
/** 数据统计开始时间 */
|
||||
dataStartTime?: string;
|
||||
/** 数据统计结束时间 */
|
||||
dataEndTime?: string;
|
||||
/** 状态(1-未开始 2-进行中 3-已结束) */
|
||||
status?: string;
|
||||
/** 状态名称 */
|
||||
statusName?: string;
|
||||
/** 创建者 */
|
||||
createBy?: string | number;
|
||||
/** 创建时间 */
|
||||
createTime?: string;
|
||||
/** 更新者 */
|
||||
updateBy?: string | number;
|
||||
/** 更新时间 */
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生考核计划表单对象
|
||||
*/
|
||||
export interface XskhAssessmentScheduleForm extends BaseEntity {
|
||||
/** 主键ID */
|
||||
id?: string | number;
|
||||
/** 考核计划名称 */
|
||||
scheduleName?: string;
|
||||
/** 考核计划说明 */
|
||||
description?: string;
|
||||
/** 考核方案ID */
|
||||
planId?: string | number;
|
||||
/** 考核方案名称 */
|
||||
planName?: string;
|
||||
/** 学年 */
|
||||
academicYear?: string;
|
||||
/** 学期(1-第一学期 2-第二学期) */
|
||||
semester?: string;
|
||||
/** 开始时间 */
|
||||
startTime?: string;
|
||||
/** 结束时间 */
|
||||
endTime?: string;
|
||||
/** 数据统计开始时间 */
|
||||
dataStartTime?: string;
|
||||
/** 数据统计结束时间 */
|
||||
dataEndTime?: string;
|
||||
/** 状态(1-未开始 2-进行中 3-已结束) */
|
||||
status?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 考核方案选项
|
||||
*/
|
||||
export interface AssessmentPlanOption {
|
||||
/** 主键ID */
|
||||
id: string | number;
|
||||
/** 方案编号 */
|
||||
planCode: string;
|
||||
/** 方案名称 */
|
||||
planName: string;
|
||||
/** 方案说明 */
|
||||
planDescription: string;
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { TableDataInfo, R } from '@/api/types';
|
||||
import { XskhRewardTypeVo, XskhRewardTypeBo, XskhRewardTypeQuery } from './types';
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user