WebRoot/res/js/courseList.js

(开头部分) 10KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

layui.use(['form','layer','table','laytpl','upload'],function(){
    var form = layui.form,
        layer = parent.layer === undefined ? layui.layer : top.layer,
        $ = layui.jquery,
        upload = layui.upload,
        table = layui.table;
    var opTable = 0;//记录目前是哪个数据table显示
    
    //courseList列表
    var tableIns = null;
    loadCourse();
    function loadCourse() {
      tableIns = table.render({
        elem: '#courseList',
        url : '../course/list.html',
        request: {
        	pageName: 'curr' //页码的参数名称
        	,limitName: 'nums' //每页数据量的参数名
        },
        where: {
            searchKey: $(".searchVal").val()  //搜索的关键字
        },
        cellMinWidth : 95,
        page : true,
        height : "full-125",
        limits : [10,15,20,25],
        limit : 10,
        loading : true,
        id : "courseListTable",
        cols : [[
            {type: "checkbox", fixed:"left", width:50},
            {field: 'id', title: '课程编号', sort:true, minWidth:80, align:"left"},
            {field: 'courseName', title: '课程名',minWidth:120, align:'left'},
            {field: 'teacherName', title: '任课教师',minWidth:120, align:'left'},
            {field: 'startDate', title: '开始时间', minWidth:100, align:'center'},
            {field: 'endDate', title: '结束时间', minWidth:100, align:'center'},
            {field: 'classHour', title: '课时', minWidth:100, align:'center'},
            {field: 'testMode', title: '考核方式', minWidth:100, align:'center'},
            {field: 'studentNum', title: '最大人数', minWidth:100, align:'center'},
            {field: "choiceNum", title: "已选(人)", minWidth:100, align:"center"},
            {title: '操作', width:160, templet:'#courseListBar',fixed:"right",align:"center"}
        ]]
      });
    }
    
    //baseCourseList列表
    var baseCourseTableIns = null;
    function loadBaseCourseList() {
      baseCourseTableIns= table.render({
        elem: '#courseList',
        url : '../basecourse/list.html',
        request: {
        	pageName: 'curr' //页码的参数名称
        	,limitName: 'nums' //每页数据量的参数名
        },
        where: {
            searchKey: $(".searchVal").val()  //搜索的关键字
        },
        cellMinWidth : 95,
        page : true,
后面还有 237 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。