修改bug

beetlsql3-dev
姚丹ab 2 years ago
parent 60da7844ec
commit c0217b394a

@ -690,7 +690,7 @@ layui.define([ 'form','laytpl', 'laydate', 'table','element','handsOnSimulationT
loadResourcesInfo(resourcesInfoType,resourcesInfoTypePlural); loadResourcesInfo(resourcesInfoType,resourcesInfoTypePlural);
$(".search").unbind(); $(".search").unbind();
$(".search").click(function () {searchList(resourcesInfoType,resourcesInfoTypePlural);}); //搜索 $(".search").click(function () {searchList(resourcesInfoType,resourcesInfoTypePlural);}); //搜索
table.reload('resourcesInfoTable');//刷新table //table.reload('resourcesInfoTable');//刷新table
}, yes: function (index) { }, yes: function (index) {
var checkStatus = table.checkStatus("resourcesInfoTable"); //获取选中行状态 var checkStatus = table.checkStatus("resourcesInfoTable"); //获取选中行状态
var dataNew = checkStatus.data, ids = Common.concatBatchId(dataNew, "resourcesInfoId"); //获取选中行数据 var dataNew = checkStatus.data, ids = Common.concatBatchId(dataNew, "resourcesInfoId"); //获取选中行数据
@ -711,6 +711,7 @@ layui.define([ 'form','laytpl', 'laydate', 'table','element','handsOnSimulationT
//资源库表格 //资源库表格
function loadResourcesInfo(resourcesInfoType,resourcesInfoTypePlural) { function loadResourcesInfo(resourcesInfoType,resourcesInfoTypePlural) {
$("#edit_dialog input[name='resourcesInfoName']").val(""); $("#edit_dialog input[name='resourcesInfoName']").val("");
console.log("进入加载资源")
resourcesInfoTable = table.render({ resourcesInfoTable = table.render({
elem: '#resourcesInfoTable', elem: '#resourcesInfoTable',
height: Lib.getTableHeight(), height: Lib.getTableHeight(),

@ -677,7 +677,7 @@ layui.define([ 'form', 'laydate', 'table','teacherOpenCourseHandsOnSimulationTas
loadResourcesInfo(resourcesInfoType,resourcesInfoTypePlural); loadResourcesInfo(resourcesInfoType,resourcesInfoTypePlural);
$(".search").unbind(); $(".search").unbind();
$(".search").click(function () {searchList(resourcesInfoType,resourcesInfoTypePlural);}); //搜索 $(".search").click(function () {searchList(resourcesInfoType,resourcesInfoTypePlural);}); //搜索
table.reload('resourcesInfoTable');//刷新table //table.reload('resourcesInfoTable');//刷新table
}, yes: function (index) { }, yes: function (index) {
var checkStatus = table.checkStatus("resourcesInfoTable"); //获取选中行状态 var checkStatus = table.checkStatus("resourcesInfoTable"); //获取选中行状态
var dataNew = checkStatus.data, ids = Common.concatBatchId(dataNew, "resourcesInfoId"); //获取选中行数据 var dataNew = checkStatus.data, ids = Common.concatBatchId(dataNew, "resourcesInfoId"); //获取选中行数据

Loading…
Cancel
Save