lee 8 年之前
父节点
当前提交
c833724ab5
共有 1 个文件被更改,包括 22 次插入5 次删除
  1. 22 5
      src/main/webapp/develop/lib/gooflow/js/GooFlow.js

+ 22 - 5
src/main/webapp/develop/lib/gooflow/js/GooFlow.js

@ -102,6 +102,7 @@ function GooFlow(bgDiv, property) {
	var URL = "http://localhost:8080",
		getAllEndpointsURL = URL + "/esb/process/getAllEndpoints",
		getAllProcessorsURL = URL + "/esb/process/getAllProcessors";
		dataPost = URL + "/esb/process/json";
	/*
	 * Todo: 初始化布局 【初始化】
@ -1930,14 +1931,31 @@ GooFlow.prototype = {
		})
		if (noError) {
			saveConfirm();
			saveConfirm(data);
		} else {
			$.ligerDialog.alert('<p style="padding: 10px;">您还有未编排完成的对象,无法保存。</p>')
		}
		function saveConfirm() {
			var callback = function () {
		/*
		 * Todo: 保存发送请求
		 * Author: LE
		 * Date: 2017/2/22
		 * time: 18:59
		 * */
		function saveConfirm(data) {
			var callback = function (yes,data) {
				if (yes){
					$.ajax({
						type: "POST",
						url: dataPost,
						data: "name=John&location=Boston",
						success: function(msg){
							alert( "Data Saved: " + msg );
						}
					});
				}
			}
			$.ligerDialog.confirm2 = function (content, title, callback) {
@ -1980,8 +1998,7 @@ GooFlow.prototype = {
			$('.l-dialog-content').css({"padding": "0 40px 20px 40px"});
		}
		console.log(this.$nodeData);
		console.log(data);
	}
}