From d233c95ed245321fa70448742a419204c6683a04 Mon Sep 17 00:00:00 2001 From: edy Date: Mon, 5 Jul 2021 10:49:51 +0800 Subject: [PATCH] --- .../Views/FillinFrom/Form.cshtml | 2 +- .../Views/FillinFrom/Form.js | 14 ++++------ .../Views/FillinFrom/FormPeople.cshtml | 5 ++-- .../Views/FillinFrom/FormPeople.js | 28 ++++++++++++++----- .../Views/FillinFrom/Index.js | 2 +- 5 files changed, 32 insertions(+), 19 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.cshtml index eab6e7b89..8bc6dc9d0 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.cshtml @@ -23,7 +23,7 @@
填报周期*
-
+
填报时间
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.js index f8db8f5de..69a85e4ad 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Form.js @@ -38,23 +38,21 @@ var bootstrap = function ($, learun) { select: function (item) { var Cycles = $("#FillingCycle").lrselectGet(); if (Cycles == 3) { + $('#TimeHide').show(); $('#FillingTime1').show(); $('#FillingTime2').hide(); $('#FillingTime1').lrDataItemSelect({ code: 'CycleTime' }); } else if (Cycles == 2) { + $('#TimeHide').show(); $('#FillingTime1').hide(); - //$('#FillingTime1').lrDataItemSelect({ code: 'undefined' }); $('#FillingTime2').show(); - //$('#FillingTime2').lrDataItemSelect({ - // type: 'multiple', - // code: 'CycleTime' - //}); } else if (Cycles == 1) { - $('#FillingTime1').show(); - $('#FillingTime2').hide(); - $('#FillingTime1').lrDataItemSelect({ code: 'undefined' }); + //$('#FillingTime1').hide(); + //$('#FillingTime2').hide(); + //$('#FillingTime1').lrDataItemSelect({ code: 'undefined' }); + $('#TimeHide').hide(); } } }); diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormPeople.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormPeople.cshtml index 5af2b7d4f..545866036 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormPeople.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormPeople.cshtml @@ -23,9 +23,10 @@
填报周期*
-
+
填报时间
-
+
+
填  报  人*
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormPeople.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormPeople.js index 35bd75372..3f6672d27 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormPeople.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/FormPeople.js @@ -55,16 +55,30 @@ var bootstrap = function ($, learun) { code: 'ThisCycle', select: function (item) { var Cycles = $("#FillingCycle").lrselectGet(); - if (Cycles != null && Cycles != "" && Cycles != undefined && Cycles == 3) { - $('#FillingTime').lrDataItemSelect({ code: 'CycleTime' }); - } else if (Cycles != null && Cycles != "" && Cycles != undefined && Cycles == 2) { - $('#FillingTime').lrDataItemSelect({ code: 'undefined' }); - } - else { - $('#FillingTime').lrDataItemSelect({ code: 'undefined' }); + if (Cycles == 3) { + $('#TimeHide').show(); + $('#FillingTime1').show(); + $('#FillingTime2').hide(); + $('#FillingTime1').lrDataItemSelect({ + code: 'CycleTime' + }); + } else if (Cycles == 2) { + $('#TimeHide').show(); + $('#FillingTime1').hide(); + $('#FillingTime2').show(); + } else if (Cycles == 1) { + $('#TimeHide').hide(); + //$('#FillingTime1').hide(); + //$('#FillingTime2').hide(); } } }); + $('#FillingTime1').lrselect(); + $('#FillingTime2').lrDataItemSelect({ + type: 'multiple', + code: 'CycleTime' + }); + $('#FillingTime2').hide(); }, initData: function () { if (!!keyValue) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.js index abcce917e..472e27ac6 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/FillinFrom/Index.js @@ -49,7 +49,7 @@ var bootstrap = function ($, learun) { return false; } if (IsFlag == 1) { - learun.alert.warning("当前项已作废,不能提交!"); + learun.alert.warning("当前项已隐藏,不能提交!"); return false; } }