b4fb1994 by wang

init

1 parent 794970e5
...@@ -81,7 +81,8 @@ ...@@ -81,7 +81,8 @@
81 var targetUrl = $("#add").attr("action"); 81 var targetUrl = $("#add").attr("action");
82 var data = $("#add").serializeJson(); 82 var data = $("#add").serializeJson();
83 var newData = {}; 83 var newData = {};
84 newData['HrVO'] = { 84 newData['hrInputVO'] = {
85 // newData['HrVO'] = {
85 name:data['name'], 86 name:data['name'],
86 username:data['username'], 87 username:data['username'],
87 telephone:data['phone'], 88 telephone:data['phone'],
...@@ -97,8 +98,8 @@ ...@@ -97,8 +98,8 @@
97 // children:data['children'] 98 // children:data['children']
98 // departmentId:data['children'] 99 // departmentId:data['children']
99 // }; 100 // };
100 console.log(JSON.stringify(newData)); 101 // console.log(JSON.stringify(newData));
101 return false; 102 // return false;
102 $.ajax({ 103 $.ajax({
103 type: 'post', 104 type: 'post',
104 url: apiBaseUrl + targetUrl, 105 url: apiBaseUrl + targetUrl,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!