From c0217b394a742fe6d382b86d1b033eaff156ccee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E4=B8=B9ab?= <1421553879@qq.com> Date: Tue, 1 Aug 2023 13:31:40 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/static/js/jlw/handsOnSimulationTasks/add.js | 3 ++- .../js/jlw/teacherOpenCourseHandsOnSimulationTasks/add.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/main/resources/static/js/jlw/handsOnSimulationTasks/add.js b/web/src/main/resources/static/js/jlw/handsOnSimulationTasks/add.js index 794a1d8e..2bc395bf 100644 --- a/web/src/main/resources/static/js/jlw/handsOnSimulationTasks/add.js +++ b/web/src/main/resources/static/js/jlw/handsOnSimulationTasks/add.js @@ -690,7 +690,7 @@ layui.define([ 'form','laytpl', 'laydate', 'table','element','handsOnSimulationT 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"); //获取选中行数据 @@ -711,6 +711,7 @@ layui.define([ 'form','laytpl', 'laydate', 'table','element','handsOnSimulationT //资源库表格 function loadResourcesInfo(resourcesInfoType,resourcesInfoTypePlural) { $("#edit_dialog input[name='resourcesInfoName']").val(""); + console.log("进入加载资源") resourcesInfoTable = table.render({ elem: '#resourcesInfoTable', height: Lib.getTableHeight(), diff --git a/web/src/main/resources/static/js/jlw/teacherOpenCourseHandsOnSimulationTasks/add.js b/web/src/main/resources/static/js/jlw/teacherOpenCourseHandsOnSimulationTasks/add.js index 6cbdc95e..61cc7656 100644 --- a/web/src/main/resources/static/js/jlw/teacherOpenCourseHandsOnSimulationTasks/add.js +++ b/web/src/main/resources/static/js/jlw/teacherOpenCourseHandsOnSimulationTasks/add.js @@ -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"); //获取选中行数据 From f6486e936dead63bec459730567b1292eda7143b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E4=B8=B9ab?= <1421553879@qq.com> Date: Tue, 1 Aug 2023 14:39:43 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/jlw/teacherOpenCourseHandsOnSimulationTasks/add.js | 4 ++-- .../jlw/teacherOpenCourseHandsOnSimulationTasks/add.html | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/web/src/main/resources/static/js/jlw/teacherOpenCourseHandsOnSimulationTasks/add.js b/web/src/main/resources/static/js/jlw/teacherOpenCourseHandsOnSimulationTasks/add.js index 61cc7656..fcee6757 100644 --- a/web/src/main/resources/static/js/jlw/teacherOpenCourseHandsOnSimulationTasks/add.js +++ b/web/src/main/resources/static/js/jlw/teacherOpenCourseHandsOnSimulationTasks/add.js @@ -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: [[ // 表头 diff --git a/web/src/main/resources/templates/jlw/teacherOpenCourseHandsOnSimulationTasks/add.html b/web/src/main/resources/templates/jlw/teacherOpenCourseHandsOnSimulationTasks/add.html index d587401c..c57de55a 100644 --- a/web/src/main/resources/templates/jlw/teacherOpenCourseHandsOnSimulationTasks/add.html +++ b/web/src/main/resources/templates/jlw/teacherOpenCourseHandsOnSimulationTasks/add.html @@ -699,11 +699,8 @@