院校权限修改bug

beetlsql3-dev
姚丹ab 2 years ago
parent 00dbebf5e6
commit b16e0201c1

@ -52,7 +52,7 @@
</div> </div>
</div> </div>
<div class="layui-row"> <div class="layui-row">
<table class="layui-table"> <table class="layui-table" id="syTable">
<colgroup> <colgroup>
<col width="80"> <col width="80">
<col width="300"> <col width="300">
@ -78,7 +78,7 @@
{{# layui.each(d.list, function(index, item){ }} {{# layui.each(d.list, function(index, item){ }}
<tr index="{{index}}"> <tr index="{{index}}">
<td><input type="checkbox" name="xt_id" {{item.useType !=null && item.useType !=0?'checked':''}} <td><input type="checkbox" name="xt_id" {{item.useType !=null && item.useType !=0?'checked':''}}
lay-skin="primary" lay-filter="select_xt"></td> lay-skin="primary" lay-filter="select_xt" value="{{item.typeId}}"></td>
<td>{{item.applicationName}}</td> <td>{{item.applicationName}}</td>
<td> <td>
<select name="useType" lay-filter="select_useType_1"> <select name="useType" lay-filter="select_useType_1">
@ -276,8 +276,11 @@
//加载课程数据 //加载课程数据
function loadkcInfo() { function loadkcInfo() {
var ret = Common.getAjax("/jlw/universitiesCollegesJurisdictionCurriculumResources/getAllByQuery.json", { var typeIds = '';
universitiesCollegesId: $("select[name='universitiesCollegesId']").val() || onUniversitiesCollegesId $("input[name='xt_id']:checked").each(function (obj) {typeIds += obj+',';});
var ret = Common.getAjax("/jlw/resourcesApplicationCourse/getAllByApplicationIds.json", {
universitiesCollegesId: $("select[name='universitiesCollegesId']").val() || onUniversitiesCollegesId,
applicationIds:typeIds.substring(0,typeIds.length-1)
});//获取课程系统 });//获取课程系统
kcList = ret.data; kcList = ret.data;
loadujr(kcList); loadujr(kcList);
@ -316,6 +319,9 @@
} else { } else {
$("input[name='allSelect_1']").prop("checked", false); $("input[name='allSelect_1']").prop("checked", false);
} }
loadkcInfo();
form.render(); form.render();
}); });
@ -419,6 +425,10 @@
}); });
} }
//选择授权院校
form.on('select(select_universitiesColleges)', function (obj) {
loadkcInfo();
});
//切换使用级别 //切换使用级别
form.on('select(select_useType_1)', function (obj) { form.on('select(select_useType_1)', function (obj) {

Loading…
Cancel
Save