From 10e4e2355d661a80dca49aeb125b8e5602a40a9d Mon Sep 17 00:00:00 2001 From: liangkun Date: Mon, 12 Apr 2021 10:46:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E6=8E=A7=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/MP_QualityObjectives/IndexManagement.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_QualityObjectives/IndexManagement.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_QualityObjectives/IndexManagement.js index 07c128ac2..c7cbf20c5 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_QualityObjectives/IndexManagement.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_QualityObjectives/IndexManagement.js @@ -73,6 +73,10 @@ var bootstrap = function ($, learun) { $('#lr_edit').on('click', function () { var keyValue = $('#gridtable').jfGridValue('MPId'); if (learun.checkrow(keyValue)) { + if (keyValue.indexOf(',') != -1) { + learun.alert.warning("只能选择一条记录进行编辑!"); + return; + } learun.layerForm({ id: 'form', title: '编辑', @@ -102,6 +106,10 @@ var bootstrap = function ($, learun) { $('#lr_uploadView').on('click', function () { var keyValue = $('#gridtable').jfGridValue('MPId'); if (learun.checkrow(keyValue)) { + if (keyValue.indexOf(',') != -1) { + learun.alert.warning("只能选择一条记录进行编辑!"); + return; + } learun.layerFormForPercent({ id: 'form', title: '提交材料', @@ -119,6 +127,10 @@ var bootstrap = function ($, learun) { $("#lr_statistics").on('click', function () { var keyValue = $('#gridtable').jfGridValue('MPId'); if (learun.checkrow(keyValue)) { + if (keyValue.indexOf(',') != -1) { + learun.alert.warning("只能选择一条记录进行编辑!"); + return; + } learun.layerFormForPercent({ id: 'form', title: '访问情况统计', @@ -236,7 +248,8 @@ var bootstrap = function ($, learun) { ], mainId: 'ID', sidx: 'cast(MPMonth as int) asc', - isPage: true + isPage: true, + isMultiselect: true }); page.search(); },