From 01561bba686a8c9183938e74458ec8c035bba029 Mon Sep 17 00:00:00 2001 From: dao Date: Wed, 5 Jun 2024 11:21:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=99=E5=AD=A6=E8=B0=83=E5=BA=A6=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=A4=9A=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/ArrangeLessonTermAttemper/Index.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ArrangeLessonTermAttemper/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ArrangeLessonTermAttemper/Index.js index 1e12860ea..420f8e8c2 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ArrangeLessonTermAttemper/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ArrangeLessonTermAttemper/Index.js @@ -119,12 +119,17 @@ var bootstrap = function ($, learun) { // 提交 $('#lr_submit').on('click', function () { var keyValue = $('#gridtable').jfGridValue('Id'); - selectedRow = $('#gridtable').jfGridGet('rowdata'); + //selectedRow = $('#gridtable').jfGridGet('rowdata'); if (learun.checkrow(keyValue)) { - if (selectedRow.Status !== 0) { - learun.alert.warning("当前课程异动记录已提交!"); - return false; + var stat = $('#gridtable').jfGridValue('Status'); + if (stat.indexOf('1') != -1) { + learun.alert.warning("选中记录中包含已提交项目!"); + return; } + //if (selectedRow.Status !== 0) { + // learun.alert.warning("当前课程异动记录已提交!"); + // return false; + //} learun.layerConfirm('是否确认提交该项!', function (res) { if (res) { processId = learun.newGuid(); @@ -527,7 +532,8 @@ var bootstrap = function ($, learun) { mainId: 'Id', isPage: true, sord: 'desc', - sidx: 'CreateTime' + sidx: 'CreateTime', + isMultiselect: true }); page.search(); },