From 92a43507a8b94818af000df71508154cf9940d9c Mon Sep 17 00:00:00 2001 From: ndbs Date: Fri, 23 Sep 2022 12:16:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E7=B1=8D=E7=AE=A1=E7=90=86-=E5=8A=A0?= =?UTF-8?q?=E5=85=A5=E5=B9=B4=E7=BA=A7=E8=81=94=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/StuInfoBasic/Index.cshtml | 8 ++++---- .../Views/StuInfoBasic/Index.js | 15 ++++++++++----- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.cshtml index ee33a818c..c8f6ed840 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.cshtml @@ -19,13 +19,13 @@
-
班级
-
-
-
年级
+
+
班级
+
+
姓名
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.js index e9422510d..c5fa514c3 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.js @@ -41,7 +41,7 @@ var bootstrap = function ($, learun) { param: { strWhere: "1=1 AND CheckMark=1" }, select: function (item) { var Grades = $("#Grade").lrselectGet(); - if (Grades) { + if (Grades != null && Grades != "" && Grades != "undefined") { if (item) { $('#ClassNo').lrselectRefresh({ allowSearch: true, @@ -78,12 +78,14 @@ var bootstrap = function ($, learun) { text: "text", select: function (item) { var MajorNos = $("#MajorNo").lrselectGet(); - if (MajorNos) { + if (MajorNos != null && MajorNos != "" && MajorNos != "undefined") { if (item) { $('#ClassNo').lrselectRefresh({ allowSearch: true, url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', - param: { strWhere: "majorno='" + item.MajorNos + "' AND CheckMark=1 AND Grade='" + item + "' order by classno desc" } + param: { + strWhere: "majorno='" + MajorNos + "' AND CheckMark=1 AND Grade='" + item.text + "' order by classno desc" + } }); } else { $('#ClassNo').lrselectRefresh({ @@ -97,7 +99,9 @@ var bootstrap = function ($, learun) { $('#ClassNo').lrselectRefresh({ allowSearch: true, url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', - param: { strWhere: " CheckMark=1 AND Grade='" + Grades + "' order by classno desc" } + param: { + strWhere: "CheckMark=1 AND Grade='" + item.text + "' order by classno desc" + } }); } else { $('#ClassNo').lrselectRefresh({ @@ -106,7 +110,8 @@ var bootstrap = function ($, learun) { param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } }); } - } + } + } }); $('#ClassNo').lrselect({