You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
967 B
JavaScript
28 lines
967 B
JavaScript
2 years ago
|
layui.define([ 'form', 'laydate', 'table','teacherOpenCourseHandsOnApi'], function(exports) {
|
||
|
var form = layui.form;
|
||
|
var teacherOpenCourseHandsOnApi = layui.teacherOpenCourseHandsOnApi;
|
||
|
var index = layui.index;
|
||
|
var view = {
|
||
|
init:function(){
|
||
|
Lib.initGenrealForm($("#updateForm"),form);
|
||
|
this.initSubmit();
|
||
|
},
|
||
|
initSubmit:function(){
|
||
|
$("#updateButton").click(function(){
|
||
|
form.on('submit(form)', function(){
|
||
|
teacherOpenCourseHandsOnApi.updateTeacherOpenCourseHandsOn($('#updateForm'),function(){
|
||
|
parent.window.dataReload();
|
||
|
Common.info("更新成功");
|
||
|
Lib.closeFrame();
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
$("#updateButton-cancel").click(function(){
|
||
|
Lib.closeFrame();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
}
|
||
|
exports('edit',view);
|
||
|
|
||
|
});
|