feat: 🎸 课程章节后台管理页面改弹出框选课
This commit is contained in:
parent
595bd526d4
commit
de06ae4b92
@ -41,7 +41,7 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
/**
|
||||
* @Description: 课程章节
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-08-09
|
||||
* @Date: 2025-08-16
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Tag(name="课程章节")
|
||||
|
@ -22,7 +22,7 @@ import lombok.experimental.Accessors;
|
||||
/**
|
||||
* @Description: 课程章节
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-08-09
|
||||
* @Date: 2025-08-16
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
|
@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
/**
|
||||
* @Description: 课程章节
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-08-09
|
||||
* @Date: 2025-08-16
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface CourseSectionMapper extends BaseMapper<CourseSection> {
|
||||
|
@ -6,7 +6,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
||||
/**
|
||||
* @Description: 课程章节
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-08-09
|
||||
* @Date: 2025-08-16
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface ICourseSectionService extends IService<CourseSection> {
|
||||
|
@ -10,7 +10,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
/**
|
||||
* @Description: 课程章节
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-08-09
|
||||
* @Date: 2025-08-16
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
|
@ -44,7 +44,19 @@ export const formSchema: FormSchema[] = [
|
||||
{
|
||||
label: '课程id',
|
||||
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: '章节名',
|
||||
@ -89,7 +101,7 @@ export const formSchema: FormSchema[] = [
|
||||
|
||||
// 高级查询数据
|
||||
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',},
|
||||
type: {title: '章节类型',order: 2,view: 'number', type: 'number',dictCode: 'course_section_type',},
|
||||
sortOrder: {title: '排序号',order: 3,view: 'number', type: 'number',},
|
||||
|
Loading…
x
Reference in New Issue
Block a user