From 41f42bc49da980d7cf4e5005eb65d4e4ae667a69 Mon Sep 17 00:00:00 2001 From: zhangli <1109134334@qq.com> Date: Thu, 9 Jun 2022 14:17:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E6=8E=92=E8=80=83=E8=AF=95=20=20?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=96=B0=E5=A2=9E=E7=8F=AD=E7=BA=A7=E4=B8=8D?= =?UTF-8?q?=E5=85=81=E8=AE=B8=E7=9B=B4=E6=8E=A5=E6=96=B0=E5=A2=9E=E8=80=83?= =?UTF-8?q?=E5=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/Exam_ExamPlanLesson/Index.js | 31 +++++++++++++------ 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/Index.js index 79cddea67..883428f9e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/Index.js @@ -129,16 +129,27 @@ var bootstrap = function ($, learun) { if (ELCheckMark == 1) { return learun.alert.warning("该项已审核!"); } - learun.layerForm({ - id: 'formteacherRoom', - title: '新增考场', - url: top.$.rootUrl + '/EducationalAdministration/Exam_ExamPlanLesson/FormRoomTeacher?EPLId=' + EPLId + '&EPId=' + EPId, - width: 850, - height: 500, - callBack: function (id) { - return top[id].acceptClick(refreshGirdData); - } - }); + var param ={}; + param.EPId = EPId; + param.EPLId = EPLId; + //判断是否已新增班级 + var data= learun.httpGet(top.$.rootUrl + '/EducationalAdministration/Exam_ExamPlanLesson/GetListForClass?queryJson='+JSON.stringify(param)); + + if (data.data.length > 0) { + learun.layerForm({ + id: 'formteacherRoom', + title: '新增考场', + url: top.$.rootUrl + '/EducationalAdministration/Exam_ExamPlanLesson/FormRoomTeacher?EPLId=' + EPLId + '&EPId=' + EPId, + width: 850, + height: 500, + callBack: function (id) { + return top[id].acceptClick(refreshGirdData); + } + }); + } else { + return learun.alert.warning("请先添加班级!"); + } + } else { return learun.alert.warning("请选择考试课程!"); }