feat: 🎸 课程章节后台管理页面改弹出框选课

This commit is contained in:
GoCo 2025-08-16 14:18:07 +08:00
parent 595bd526d4
commit de06ae4b92
6 changed files with 19 additions and 7 deletions

View File

@ -41,7 +41,7 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
/** /**
* @Description: 课程章节 * @Description: 课程章节
* @Author: jeecg-boot * @Author: jeecg-boot
* @Date: 2025-08-09 * @Date: 2025-08-16
* @Version: V1.0 * @Version: V1.0
*/ */
@Tag(name="课程章节") @Tag(name="课程章节")

View File

@ -22,7 +22,7 @@ import lombok.experimental.Accessors;
/** /**
* @Description: 课程章节 * @Description: 课程章节
* @Author: jeecg-boot * @Author: jeecg-boot
* @Date: 2025-08-09 * @Date: 2025-08-16
* @Version: V1.0 * @Version: V1.0
*/ */
@Data @Data

View File

@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/** /**
* @Description: 课程章节 * @Description: 课程章节
* @Author: jeecg-boot * @Author: jeecg-boot
* @Date: 2025-08-09 * @Date: 2025-08-16
* @Version: V1.0 * @Version: V1.0
*/ */
public interface CourseSectionMapper extends BaseMapper<CourseSection> { public interface CourseSectionMapper extends BaseMapper<CourseSection> {

View File

@ -6,7 +6,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
/** /**
* @Description: 课程章节 * @Description: 课程章节
* @Author: jeecg-boot * @Author: jeecg-boot
* @Date: 2025-08-09 * @Date: 2025-08-16
* @Version: V1.0 * @Version: V1.0
*/ */
public interface ICourseSectionService extends IService<CourseSection> { public interface ICourseSectionService extends IService<CourseSection> {

View File

@ -10,7 +10,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/** /**
* @Description: 课程章节 * @Description: 课程章节
* @Author: jeecg-boot * @Author: jeecg-boot
* @Date: 2025-08-09 * @Date: 2025-08-16
* @Version: V1.0 * @Version: V1.0
*/ */
@Service @Service

View File

@ -44,7 +44,19 @@ export const formSchema: FormSchema[] = [
{ {
label: '课程id', label: '课程id',
field: 'courseId', field: 'courseId',
component: 'Input', component: 'JPopup',
componentProps: ({ formActionType }) => {
const {setFieldsValue} = formActionType;
return{
setFieldsValue:setFieldsValue,
code:"course_list",
fieldConfig: [
{ source: 'name', target: 'courseId' },
],
multi:false
}
},
}, },
{ {
label: '章节名', label: '章节名',
@ -89,7 +101,7 @@ export const formSchema: FormSchema[] = [
// //
export const superQuerySchema = { export const superQuerySchema = {
courseId: {title: '课程id',order: 0,view: 'text', type: 'string',}, courseId: {title: '课程id',order: 0,view: 'popup', type: 'string',code: 'course_list', orgFields: 'name', destFields: 'courseId', popupMulti: false,},
name: {title: '章节名',order: 1,view: 'text', type: 'string',}, name: {title: '章节名',order: 1,view: 'text', type: 'string',},
type: {title: '章节类型',order: 2,view: 'number', type: 'number',dictCode: 'course_section_type',}, type: {title: '章节类型',order: 2,view: 'number', type: 'number',dictCode: 'course_section_type',},
sortOrder: {title: '排序号',order: 3,view: 'number', type: 'number',}, sortOrder: {title: '排序号',order: 3,view: 'number', type: 'number',},