更改了一下课程状态接口

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

@ -52,7 +52,6 @@ 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

@ -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',},
};

View File

@ -1,5 +1,4 @@
<template>
<div>
<!--引用表格-->
<BasicTable @register="registerTable" :rowSelection="rowSelection">

View File

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

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';