处理课程绑定

beetlsql3-dev
yangdj 2 years ago
parent 8c8d269d92
commit 677c4cdf64

@ -96,6 +96,9 @@ layui.define(['form', 'laydate', 'table', 'dropdown', 'util'], function (exports
align: "center", align: "center",
templet: function (d) { templet: function (d) {
var htm = ''; var htm = '';
if(d.sourceType == 1){
htm = '<a class="layui-table-link" lay-event="see">查看</a>';
}else {
// htm += '<a class="layui-table-link" lay-event="binding">绑定</a>'; // htm += '<a class="layui-table-link" lay-event="binding">绑定</a>';
if (d.courseLabelType == "应用课程类" && $.isEmpty(d.resourcesApplicationIds)) { if (d.courseLabelType == "应用课程类" && $.isEmpty(d.resourcesApplicationIds)) {
htm += '<input type="checkbox" name="" lay-filter="binding" title="绑定">'; htm += '<input type="checkbox" name="" lay-filter="binding" title="绑定">';
@ -103,6 +106,7 @@ layui.define(['form', 'laydate', 'table', 'dropdown', 'util'], function (exports
htm += '<input type="checkbox" name="" lay-filter="binding" checked title="绑定">'; htm += '<input type="checkbox" name="" lay-filter="binding" checked title="绑定">';
} }
htm += '<a class="layui-table-link" style="padding-left: 15px" lay-event="edit">编辑</a>'; htm += '<a class="layui-table-link" style="padding-left: 15px" lay-event="edit">编辑</a>';
}
return htm; return htm;
} }
} }
@ -233,6 +237,9 @@ layui.define(['form', 'laydate', 'table', 'dropdown', 'util'], function (exports
}); });
updateBindingBtnStatus(this); updateBindingBtnStatus(this);
form.render(); form.render();
}else if (obj.event === "see") {
var url = "/jlw/teacherOpenCourseMergeCourseInfo/courseConfigureNew.do?teacherOpenCourseld="+data.courseInfoId;
Common.openDlg(url,"");
} }
}) })
}; };

@ -35,13 +35,18 @@
<!--课程类别--> <!--课程类别-->
<script type="text/html" id="select_courseLabelTypeSelect"> <script type="text/html" id="select_courseLabelTypeSelect">
{{#if(d.sourceType == 1){}}
-
{{#}else{}}
<select lay-filter="select_courseLabelType" name="courseLabelType"> <select lay-filter="select_courseLabelType" name="courseLabelType">
<option value="">请选择</option> <option value="">请选择{{d.courseLabelType}}</option>
{{# layui.each(window.disLabelTypeSelectList, function(index, item){ }} {{# layui.each(window.disLabelTypeSelectList, function(index, item){ }}
<option value="{{item}}" {{ item== d.courseLabelType ? <option value="{{item}}" {{ item== d.courseLabelType ?
'selected' : '' }}>{{item}}</option> 'selected' : '' }}>{{item}}</option>
{{# }); }} {{# }); }}
</select> </select>
{{#}}}
</script> </script>
<!--绑定模块--> <!--绑定模块-->
@ -54,6 +59,9 @@
</select> </select>
</script>--> </script>-->
<script type="text/html" id="select_courseLabelIdSelect"> <script type="text/html" id="select_courseLabelIdSelect">
{{#if(d.sourceType == 1){}}
-
{{#}else{}}
{{# if(d.courseLabelType == '理论课程类'){ }} {{# if(d.courseLabelType == '理论课程类'){ }}
<input lay-event="labelSelect" name="courseLabelId" placeholder="请选择" class="layui-input" <input lay-event="labelSelect" name="courseLabelId" placeholder="请选择" class="layui-input"
value="课程中心 / {{d.courseLabelName}}"/> value="课程中心 / {{d.courseLabelName}}"/>
@ -67,6 +75,7 @@
{{# } }} {{# } }}
</select> </select>
{{# } }} {{# } }}
{{#}}}
</script> </script>
<!--绑定应用--> <!--绑定应用-->

Loading…
Cancel
Save