sealseservicemodeadd.js 901 字节
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

layui.config({
	base: basePath, 
	version: skyeyeVersion
}).extend({
    window: 'js/winui.window'
}).define(['window', 'jquery', 'winui'], function (exports) {
	winui.renderColor();
	layui.use(['form'], function (form) {
		var index = parent.layer.getFrameIndex(window.name);
	    var $ = layui.$;
	    
	    matchingLanguage();
 		form.render();
 	    form.on('submit(formAddBean)', function (data) {
 	        if (winui.verifyForm(data.elem)) {
 	        	var params = {
 	        		typeName: $("#typeName").val()
 	        	};
W
weizhiqiang 已提交
20
 	        	AjaxPostUtil.request({url: flowableBasePath + "sealseservicemode002", params: params, type: 'json', callback: function (json) {
21 22
					parent.layer.close(index);
					parent.refreshCode = '0';
doc_wei's avatar
doc_wei 已提交
23 24 25 26 27
	 	   		}});
 	        }
 	        return false;
 	    });
 	    
doc_wei's avatar
doc_wei 已提交
28
	    $("body").on("click", "#cancle", function() {
doc_wei's avatar
doc_wei 已提交
29 30 31 32
	    	parent.layer.close(index);
	    });
	});
});