var bootstrap = function ($, learun) { "use strict"; var folderId = "0"; var page = { init: function () { // 查询 $('#btn_Search').on('click', function () { var keyword = $('#txt_Keyword').val(); page.search({ keyword: keyword }); }); $('#lr_auth').on('click', function () { var keyValue = $('#gridtable').jfGridValue('F_Id'); var name = $('#gridtable').jfGridValue('F_Name'); var type = $('#gridtable').jfGridValue('Type'); if (learun.checkrow(keyValue)) { var isFolder = '0'; if (type == '2') { isFolder = '1' } learun.layerForm({ id: 'FileAuthFrom', title: '授权【' + name + '】', url: top.$.rootUrl + '/LR_SystemModule/Files/FileAuthFrom?fileInfoId=' + keyValue + "&isFolder=" + isFolder, width: 800, height: 500, maxmin: true, btn: null }); } }); $('#lr_main_auth').on('click', function () { learun.layerForm({ id: 'FileAuthFrom', title: '授权主目录', url: top.$.rootUrl + '/LR_SystemModule/Files/FileAuthFrom?fileInfoId=0&isFolder=1', width: 800, height: 500, maxmin: true, btn: null, end: function () { } }); }); $('#pathList').on('click', '.path-item', function () { var $this = $(this); $this.nextAll().remove(); folderId = $this.attr('data-fileid'); page.openFolder(); }); $('#gridtable').jfGrid({ url: top.$.rootUrl + '/LR_SystemModule/Files/GetAllPublishPageList', headData: [ { label: '文件名', name: 'F_Name', width: 400, align: 'left', formatter: function (cellvalue, row) { return "