|
|
|
@ -75,9 +75,6 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
|
|
|
|
|
selectList+= htmL + '</optgroup>' + htmO + '</optgroup>' + "</select>";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function selectedHandler(val,val1) {
|
|
|
|
|
return val == val1 ? 'selected = "selected"' : '';
|
|
|
|
|
}
|
|
|
|
|
/*$.each(courseLabelTypes, function (key, value) {
|
|
|
|
|
courseInfoMap[value.courseInfoId] = {courseInfoName: value.courseInfoName, children: value.children};
|
|
|
|
|
$.each(value.children, function (k, v) {
|
|
|
|
@ -101,7 +98,7 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
|
|
|
|
|
height: Lib.getTableHeight(),
|
|
|
|
|
cellMinWidth: 100,
|
|
|
|
|
method: 'post',
|
|
|
|
|
even: true,
|
|
|
|
|
even: true,
|
|
|
|
|
size: "lg",
|
|
|
|
|
url: Common.ctxPath + '/jlw/resourcesInfo/getCurriculumResourceManagementList.json' // 数据接口
|
|
|
|
|
, page: Lib.tablePage // 开启分页
|
|
|
|
@ -456,15 +453,25 @@ layui.define(['form', 'laydate', 'table'], function (exports) {
|
|
|
|
|
var r = $(this).parents("td").find("input").context.innerHTML.replace(/ /g, "");
|
|
|
|
|
$(this).parents("td").find("input").val(r);
|
|
|
|
|
var resourcesInfoId = table.cache['resourcesInfoTable'][$(this).parents("tr").attr("data-index")].resourcesInfoId;
|
|
|
|
|
/*var sourceType =
|
|
|
|
|
table.cache['resourcesInfoTable'][$(this).parents("tr").attr("data-index")];*/
|
|
|
|
|
let sourceType = $(obj.elem).parents("td").prevAll('td').find("option:selected").attr("status");;
|
|
|
|
|
if (!$.isEmpty(resourcesInfoId)) {
|
|
|
|
|
var ret = Common.postAjax("/jlw/resourcesInfo/edit.json", {
|
|
|
|
|
resourcesInfoId: resourcesInfoId,
|
|
|
|
|
courseInfoId: obj.value
|
|
|
|
|
courseInfoId: obj.value,
|
|
|
|
|
sourceType:sourceType
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
layer.msg(ret.code == 0 ? "绑定成功!" : ret.msg, {
|
|
|
|
|
offset: ['50%'],
|
|
|
|
|
icon: ret.code == 0 ? 1 : 2,
|
|
|
|
|
time: 1000 //2秒关闭(如果不配置,默认是3秒)
|
|
|
|
|
}, function () {
|
|
|
|
|
if (ret.code == 0) {
|
|
|
|
|
Lib.tableRefresh();
|
|
|
|
|
layer.close(index);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|