@ -677,7 +677,7 @@ layui.define([ 'form', 'laydate', 'table','teacherOpenCourseHandsOnSimulationTas
loadResourcesInfo ( resourcesInfoType , resourcesInfoTypePlural ) ;
$ ( ".search" ) . unbind ( ) ;
$ ( ".search" ) . click ( function ( ) { searchList ( resourcesInfoType , resourcesInfoTypePlural ) ; } ) ; //搜索
table . reload ( 'resourcesInfoTable' ) ; //刷新table
//table.reload('resourcesInfoTable'); //刷新table
} , yes : function ( index ) {
var checkStatus = table . checkStatus ( "resourcesInfoTable" ) ; //获取选中行状态
var dataNew = checkStatus . data , ids = Common . concatBatchId ( dataNew , "resourcesInfoId" ) ; //获取选中行数据
@ -696,7 +696,7 @@ layui.define([ 'form', 'laydate', 'table','teacherOpenCourseHandsOnSimulationTas
}
//资源库表格
function loadResourcesInfo ( resourcesInfoType ) {
function loadResourcesInfo ( resourcesInfoType ,resourcesInfoTypePlural ) {
$ ( "#edit_dialog input[name='resourcesInfoName']" ) . val ( "" ) ;
resourcesInfoTable = table . render ( {
elem : '#resourcesInfoTable' ,
@ -706,7 +706,7 @@ layui.define([ 'form', 'laydate', 'table','teacherOpenCourseHandsOnSimulationTas
even : true ,
//url: Common.ctxPath + '/jlw/resourcesInfo/list.json' // 数据接口
url : Common . ctxPath + '/jlw/resourcesInfo/resourcesList.json' // 数据接口
, where : getParamRe ( resourcesInfoType )
, where : getParamRe ( resourcesInfoType ,resourcesInfoTypePlural )
, page : Lib . tablePage // 开启分页
, limit : 10 ,
cols : [ [ // 表头