layui.config({ base: basePath, version: skyeyeVersion }).extend({ window: 'js/winui.window' }).define(['window', 'table', 'jquery', 'winui'], function (exports) { winui.renderColor(); layui.use(['form'], function (form) { var index = parent.layer.getFrameIndex(window.name); var $ = layui.$, form = layui.form; matchingLanguage(); form.render(); form.on('submit(formAddBean)', function (data) { if (winui.verifyForm(data.elem)) { var params = { name: $("#pageName").val(), filePath: $("#filePath").val(), fileName: $("#fileName").val(), rowId: parent.proId }; AjaxPostUtil.request({url: sysMainMation.rmprogramBasePath + "rmxcx030", params: params, type: 'json', callback: function (json) { parent.layer.close(index); parent.refreshCode = '0'; }}); } return false; }); $("body").on("click", "#cancle", function() { parent.layer.close(index); }); }); });