@ -696,7 +696,7 @@ layui.define([ 'form', 'laydate', 'table','teacherOpenCourseHandsOnSimulationTas
}
}
//资源库表格
//资源库表格
function loadResourcesInfo ( resourcesInfoType ) {
function loadResourcesInfo ( resourcesInfoType ,resourcesInfoTypePlural ) {
$ ( "#edit_dialog input[name='resourcesInfoName']" ) . val ( "" ) ;
$ ( "#edit_dialog input[name='resourcesInfoName']" ) . val ( "" ) ;
resourcesInfoTable = table . render ( {
resourcesInfoTable = table . render ( {
elem : '#resourcesInfoTable' ,
elem : '#resourcesInfoTable' ,
@ -706,7 +706,7 @@ layui.define([ 'form', 'laydate', 'table','teacherOpenCourseHandsOnSimulationTas
even : true ,
even : true ,
//url: Common.ctxPath + '/jlw/resourcesInfo/list.json' // 数据接口
//url: Common.ctxPath + '/jlw/resourcesInfo/list.json' // 数据接口
url : Common . ctxPath + '/jlw/resourcesInfo/resourcesList.json' // 数据接口
url : Common . ctxPath + '/jlw/resourcesInfo/resourcesList.json' // 数据接口
, where : getParamRe ( resourcesInfoType )
, where : getParamRe ( resourcesInfoType ,resourcesInfoTypePlural )
, page : Lib . tablePage // 开启分页
, page : Lib . tablePage // 开启分页
, limit : 10 ,
, limit : 10 ,
cols : [ [ // 表头
cols : [ [ // 表头