更改了一下课程状态接口

This commit is contained in:
lvzhihao 2025-08-09 15:29:15 +08:00
parent 5bfea2b020
commit 7caffa67cc
11 changed files with 15 additions and 20 deletions

View File

@ -51,8 +51,7 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
public class CourseController extends JeecgController<Course, ICourseService> {
@Autowired
private ICourseService courseService;
/**
* 分页列表查询
*

View File

@ -33,7 +33,6 @@ import lombok.experimental.Accessors;
public class Course implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description = "主键")
@ -114,7 +113,8 @@ public class Course implements Serializable {
@Schema(description = "最大报名人数")
private java.lang.Integer maxEnroll;
/**状态*/
@Excel(name = "状态", width = 15)
@Excel(name = "状态", width = 15, dicCode = "course_status")
@Dict(dicCode = "course_status")
@Schema(description = "状态")
private java.lang.Integer status;
/**常见问题*/

View File

@ -14,5 +14,4 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/
public interface CourseMapper extends BaseMapper<Course> {
}

View File

@ -2,4 +2,4 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.gen.course.mapper.CourseMapper">
</mapper>
</mapper>

View File

@ -11,5 +11,4 @@ import com.baomidou.mybatisplus.extension.service.IService;
*/
public interface ICourseService extends IService<Course> {
}

View File

@ -16,5 +16,4 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@Service
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> implements ICourseService {
}

View File

@ -3,7 +3,6 @@ import { useMessage } from "/@/hooks/web/useMessage";
const { createConfirm } = useMessage();
enum Api {
list = '/gen/course/course/list',
save='/gen/course/course/add',

View File

@ -3,7 +3,6 @@ import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//
export const columns: BasicColumn[] = [
{
@ -95,7 +94,7 @@ export const columns: BasicColumn[] = [
{
title: '状态',
align:"center",
dataIndex: 'status'
dataIndex: 'status_dictText'
},
{
title: '常见问题',
@ -219,7 +218,11 @@ export const formSchema: FormSchema[] = [
{
label: '状态',
field: 'status',
component: 'InputNumber',
component: 'JDictSelectTag',
componentProps:{
dictCode:"course_status",
type: "radio"
},
},
{
label: '常见问题',
@ -254,7 +257,7 @@ export const superQuerySchema = {
endTime: {title: '结课时间',order: 14,view: 'datetime', type: 'string',},
enrollCount: {title: '已报名人数',order: 15,view: 'number', type: 'number',},
maxEnroll: {title: '最大报名人数',order: 16,view: 'number', type: 'number',},
status: {title: '状态',order: 17,view: 'number', type: 'number',},
status: {title: '状态',order: 17,view: 'number', type: 'number',dictCode: 'course_status',},
question: {title: '常见问题',order: 18,view: 'umeditor', type: 'string',},
};
@ -265,4 +268,4 @@ export const superQuerySchema = {
export function getBpmFormSchema(_formData): FormSchema[]{
// formSchema
return formSchema;
}
}

View File

@ -1,5 +1,4 @@
<template>
<div>
<!--引用表格-->
<BasicTable @register="registerTable" :rowSelection="rowSelection">
@ -221,4 +220,4 @@
:deep(.ant-picker),:deep(.ant-input-number){
width: 100%;
}
</style>
</style>

View File

@ -7,7 +7,6 @@
</div>
</template>
<script lang="ts">
import {BasicForm, useForm} from '/@/components/Form/index';
import {computed, defineComponent} from 'vue';
@ -68,4 +67,4 @@
}
}
});
</script>
</script>

View File

@ -4,7 +4,6 @@
</BasicModal>
</template>
<script lang="ts" setup>
import {ref, computed, unref, reactive} from 'vue';
import {BasicModal, useModalInner} from '/@/components/Modal';
@ -97,4 +96,4 @@
:deep(.ant-calendar-picker) {
width: 100%;
}
</style>
</style>