|
|
|
@ -391,17 +391,6 @@ layui.define(['form', 'laydate', 'table', 'xmSelect', 'teacherOpenCourseSchedule
|
|
|
|
|
$("#teacherOpenCourseName").val(data.teacherOpenCourseTitle);
|
|
|
|
|
$("#teacherId option[value='" + data.teacherId + "']").attr("selected","selected");
|
|
|
|
|
var xmSeValue = data.schoolClassIds;
|
|
|
|
|
var xmSeInitValue = [];
|
|
|
|
|
if (!$.isEmpty(xmSeValue)) {
|
|
|
|
|
if (xmSeValue.toString().indexOf(",") >= 0) {
|
|
|
|
|
xmSeValue.split(',').forEach(function (value) {
|
|
|
|
|
xmSeInitValue.push(parseInt(value))
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
xmSeInitValue.push(xmSeValue)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
demo1.setValue(xmSeValue.split(","))//xmselect多选下拉 取值 回显
|
|
|
|
|
|
|
|
|
|
form.render();
|
|
|
|
|