addpagebeanitem.js 1.0 KB
Newer Older
doc_wei's avatar
doc_wei 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
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
	        	};
	        	
24
	        	AjaxPostUtil.request({url: sysMainMation.rmprogramBasePath + "rmxcx030", params: params, type: 'json', callback: function (json) {
25 26
					parent.layer.close(index);
					parent.refreshCode = '0';
doc_wei's avatar
doc_wei 已提交
27 28 29 30 31
	 	   		}});
	        }
	        return false;
	    });
	    
doc_wei's avatar
doc_wei 已提交
32
	    $("body").on("click", "#cancle", function() {
doc_wei's avatar
doc_wei 已提交
33 34 35 36
	    	parent.layer.close(index);
	    });
	});
});