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: reqBasePath + "rmxcx030", params: params, type: 'json', callback: function (json) { if (json.returnCode == 0) { parent.layer.close(index); parent.refreshCode = '0'; } else { winui.window.msg(json.returnMessage, {icon: 2, time: 2000}); } }}); } return false; }); $("body").on("click", "#cancle", function() { parent.layer.close(index); }); }); });