diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeachingPlan/IndexManage.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeachingPlan/IndexManage.js index b18b65fa6..e6436c59d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeachingPlan/IndexManage.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/TeachingPlan/IndexManage.js @@ -22,17 +22,22 @@ var bootstrap = function ($, learun) { }); //查看 $('#lr_look').on('click', function () { - learun.layerForm({ - id: 'form', - title: '查看', - url: top.$.rootUrl + '/EducationalAdministration/TeachingPlan/FormManageView', - width: 600, - height: 400, - btn: null, - callBack: function (id) { - //return top[id].acceptClick(refreshGirdData); - } - }); + var keyValue = $('#gridtable').jfGridValue('Id'); + if (learun.checkrow(keyValue)) { + learun.layerForm({ + id: 'form', + title: '查看', + url: top.$.rootUrl + + '/EducationalAdministration/TeachingPlan/FormManageView?keyValue=' + + keyValue, + width: 600, + height: 400, + btn: null, + callBack: function (id) { + //return top[id].acceptClick(refreshGirdData); + } + }); + } }); // 编辑 $('#lr_edit').on('click', function () {