From 88eade1289e8fb8ffc21f4c78561aca19b29d618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E4=B8=B9ab?= <1421553879@qq.com> Date: Tue, 18 Apr 2023 16:10:30 +0800 Subject: [PATCH] 1 --- .../jlw/resourcesApplicationCourse/index.js | 28 ++++++++++++++++++- .../static/js/jlw/schoolClass/index.js | 2 +- .../jlw/resourcesApplicationCourse/index.html | 26 ++++++++++++----- 3 files changed, 47 insertions(+), 9 deletions(-) diff --git a/web/src/main/resources/static/js/jlw/resourcesApplicationCourse/index.js b/web/src/main/resources/static/js/jlw/resourcesApplicationCourse/index.js index 2c216f40..17518b5f 100644 --- a/web/src/main/resources/static/js/jlw/resourcesApplicationCourse/index.js +++ b/web/src/main/resources/static/js/jlw/resourcesApplicationCourse/index.js @@ -183,7 +183,7 @@ layui.define(['form', 'laydate', 'table'], function (exports) { } //绑定课程名称选择 - form.on('select(select_courseLabelType)', function (obj) { + /*form.on('select(select_courseLabelType)', function (obj) { if(!$.isEmpty(obj.value)){ var ret = Common.getAjax("/jlw/courseLabel/getValues.json",{courseLabelType:obj.value,courseLabelStatus:1}); if(ret.code == 0){ @@ -200,8 +200,34 @@ layui.define(['form', 'laydate', 'table'], function (exports) { $(this).parents("td").siblings('td').eq(1).find('select').empty(); form.render(); } + });*/ + form.on('select(select_courseLabelType)', function (obj) { + if(!$.isEmpty(obj.value)){ + var htm = ''; + if(obj.value == '应用课程类'){ + htm+=''; + }else if(obj.value == "考证课程类"){ + htm+=''; + }else if(obj.value == "理论课程类"){ + htm+=''; + } + + $(this).parents("td").siblings('td').eq(1).find('select').empty(); + $(this).parents("td").siblings('td').eq(1).find('select').append(htm); + updateBindingBtnStatus(this); + form.render(); + }else { + var htm =' \n' + + ' \n' + + ' \n' + + ' ' + $(this).parents("td").siblings('td').eq(1).find('select').empty(); + $(this).parents("td").siblings('td').eq(1).find('select').append(htm); + form.render(); + } }); + // 下拉框change事件 form.on('select(select_courseLabelId)', function (obj) { table.cache['resourcesApplicationCourseTable'][$(this).parents("tr").data("index")].courseLabelId = obj.value; diff --git a/web/src/main/resources/static/js/jlw/schoolClass/index.js b/web/src/main/resources/static/js/jlw/schoolClass/index.js index 5f327dba..3dc34ea4 100644 --- a/web/src/main/resources/static/js/jlw/schoolClass/index.js +++ b/web/src/main/resources/static/js/jlw/schoolClass/index.js @@ -45,7 +45,7 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) { }, { field : 'classSn', - title : '班级编号',align: "center",hide:isSignRole == 2?true:false + title : '班级编号',align: "center",/*hide:isSignRole == 2?true:false*/ }, { diff --git a/web/src/main/resources/templates/jlw/resourcesApplicationCourse/index.html b/web/src/main/resources/templates/jlw/resourcesApplicationCourse/index.html index 9fb0483e..35c0e3ce 100644 --- a/web/src/main/resources/templates/jlw/resourcesApplicationCourse/index.html +++ b/web/src/main/resources/templates/jlw/resourcesApplicationCourse/index.html @@ -24,13 +24,8 @@ - + - + + +