From 904dbf67d0d497c3c1e54c4e6b78ee37b7122690 Mon Sep 17 00:00:00 2001 From: liangkun Date: Fri, 9 Apr 2021 14:48:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E6=8E=A7=E8=B0=83=E6=95=B4=E5=A4=9A?= =?UTF-8?q?=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MP_ManagementPlan/IndexManagement.js | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/IndexManagement.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/IndexManagement.js index 02082afe6..1233b592c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/IndexManagement.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/MP_ManagementPlan/IndexManagement.js @@ -51,7 +51,7 @@ var bootstrap = function ($, learun) { if (val) { var departmentIds = val.id; $('#MPReceiveUser').lrselectRefresh({ - url: top.$.rootUrl +'/LR_OrganizationModule/User/GetListByDepartmentIds?departmentId=' +departmentIds + url: top.$.rootUrl + '/LR_OrganizationModule/User/GetListByDepartmentIds?departmentId=' + departmentIds }); } } @@ -79,6 +79,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: '编辑', @@ -95,6 +99,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: '提交材料', @@ -127,6 +135,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: '访问情况统计', @@ -192,7 +204,7 @@ var bootstrap = function ($, learun) { // } //}, { - label: "月份",name: "MPMonth",width: 100,align: "left" + label: "月份", name: "MPMonth", width: 100, align: "left" }, { label: "部门", name: "MPDepartment", width: 250, align: "left", @@ -278,7 +290,8 @@ var bootstrap = function ($, learun) { ], mainId: 'MPId', sidx: 'cast(MPMonth as int) asc', - isPage: true + isPage: true, + isMultiselect: true }) page.search(); }, @@ -293,7 +306,7 @@ var bootstrap = function ($, learun) { } if (!param.MPMonth) { var jsdate = new Date(); - param.MPMonth = jsdate.getMonth()+1; + param.MPMonth = jsdate.getMonth() + 1; } $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); },