提交课程相关接口
This commit is contained in:
parent
60c7ff577d
commit
0427eebee7
@ -51,7 +51,8 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|||||||
public class CourseController extends JeecgController<Course, ICourseService> {
|
public class CourseController extends JeecgController<Course, ICourseService> {
|
||||||
@Autowired
|
@Autowired
|
||||||
private ICourseService courseService;
|
private ICourseService courseService;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页列表查询
|
* 分页列表查询
|
||||||
*
|
*
|
||||||
|
@ -33,6 +33,7 @@ import lombok.experimental.Accessors;
|
|||||||
public class Course implements Serializable {
|
public class Course implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
|
||||||
/**主键*/
|
/**主键*/
|
||||||
@TableId(type = IdType.ASSIGN_ID)
|
@TableId(type = IdType.ASSIGN_ID)
|
||||||
@Schema(description = "主键")
|
@Schema(description = "主键")
|
||||||
|
@ -14,4 +14,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|||||||
*/
|
*/
|
||||||
public interface CourseMapper extends BaseMapper<Course> {
|
public interface CourseMapper extends BaseMapper<Course> {
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,4 @@
|
|||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!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 namespace="org.jeecg.modules.gen.course.mapper.CourseMapper">
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
@ -11,4 +11,5 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
|||||||
*/
|
*/
|
||||||
public interface ICourseService extends IService<Course> {
|
public interface ICourseService extends IService<Course> {
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -16,4 +16,5 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|||||||
@Service
|
@Service
|
||||||
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> implements ICourseService {
|
public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> implements ICourseService {
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@ import { useMessage } from "/@/hooks/web/useMessage";
|
|||||||
|
|
||||||
const { createConfirm } = useMessage();
|
const { createConfirm } = useMessage();
|
||||||
|
|
||||||
|
|
||||||
enum Api {
|
enum Api {
|
||||||
list = '/gen/course/course/list',
|
list = '/gen/course/course/list',
|
||||||
save='/gen/course/course/add',
|
save='/gen/course/course/add',
|
||||||
|
@ -3,6 +3,7 @@ import {FormSchema} from '/@/components/Table';
|
|||||||
import { rules} from '/@/utils/helper/validator';
|
import { rules} from '/@/utils/helper/validator';
|
||||||
import { render } from '/@/utils/common/renderUtils';
|
import { render } from '/@/utils/common/renderUtils';
|
||||||
import { getWeekMonthQuarterYear } from '/@/utils';
|
import { getWeekMonthQuarterYear } from '/@/utils';
|
||||||
|
|
||||||
//列表数据
|
//列表数据
|
||||||
export const columns: BasicColumn[] = [
|
export const columns: BasicColumn[] = [
|
||||||
{
|
{
|
||||||
@ -264,4 +265,4 @@ export const superQuerySchema = {
|
|||||||
export function getBpmFormSchema(_formData): FormSchema[]{
|
export function getBpmFormSchema(_formData): FormSchema[]{
|
||||||
// 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
|
// 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
|
||||||
return formSchema;
|
return formSchema;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<!--引用表格-->
|
<!--引用表格-->
|
||||||
<BasicTable @register="registerTable" :rowSelection="rowSelection">
|
<BasicTable @register="registerTable" :rowSelection="rowSelection">
|
||||||
@ -220,4 +221,4 @@
|
|||||||
:deep(.ant-picker),:deep(.ant-input-number){
|
:deep(.ant-picker),:deep(.ant-input-number){
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import {BasicForm, useForm} from '/@/components/Form/index';
|
import {BasicForm, useForm} from '/@/components/Form/index';
|
||||||
import {computed, defineComponent} from 'vue';
|
import {computed, defineComponent} from 'vue';
|
||||||
@ -67,4 +68,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
</BasicModal>
|
</BasicModal>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import {ref, computed, unref, reactive} from 'vue';
|
import {ref, computed, unref, reactive} from 'vue';
|
||||||
import {BasicModal, useModalInner} from '/@/components/Modal';
|
import {BasicModal, useModalInner} from '/@/components/Modal';
|
||||||
@ -96,4 +97,4 @@
|
|||||||
:deep(.ant-calendar-picker) {
|
:deep(.ant-calendar-picker) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user