From e382863dea6516332e891b466d2cc80ae904c1a4 Mon Sep 17 00:00:00 2001 From: zhangli <1109134334@qq.com> Date: Wed, 22 Jun 2022 18:04:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=8E=92=E8=80=83=E8=AE=B0?= =?UTF-8?q?=E5=BD=95-=E8=80=81=E5=B8=88=E6=97=B6=E9=97=B4=E7=AE=A1?= =?UTF-8?q?=E7=90=86=20=E7=9B=91=E8=80=83=E8=80=81=E5=B8=88=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=9B=9E=E5=A1=AB=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/Exam_ExamTeacherTime/Form.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamTeacherTime/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamTeacherTime/Form.js index c8218b365..8606a47ff 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamTeacherTime/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamTeacherTime/Form.js @@ -23,11 +23,14 @@ var bootstrap = function ($, learun) { text: 'text', select: function (item) { if (!!item) { - $('#EmpNo').lrselectRefresh({ - url: top.$.rootUrl + '/EducationalAdministration/Exam_InvigilateTeacher/GetList?AcademicYearNo=' + $('#AcademicYearNo').lrselectGet() + '&Semester=' + $('#Semester').lrselectGet(), - value: 'EmpNo', - text: 'EmpName' - }); + var Semester = $('#Semester').lrselectGet(); + if (!!Semester) { + $('#EmpNo').lrselectRefresh({ + url: top.$.rootUrl + '/EducationalAdministration/Exam_InvigilateTeacher/GetList?AcademicYearNo=' + $('#AcademicYearNo').lrselectGet() + '&Semester=' + Semester, + value: 'EmpNo', + text: 'EmpName' + }); + } } } }); @@ -51,6 +54,8 @@ var bootstrap = function ($, learun) { $('#EmpNo').lrselect({ type: 'multiple', allowSearch: true, + value: 'EmpNo', + text: 'EmpName' }); }, initData: function () { @@ -63,9 +68,6 @@ var bootstrap = function ($, learun) { else { $('[data-table="' + id + '"]').lrSetFormData(data[id]); } - //if (!!data[id] && !!data[id].EmpNo) { - // $('#EmpNo').lrselectSet(data[id].EmpNo); - //} } }); }