702752a8 by wang

init

1 parent 6ec509c9
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
98 // departmentId:data['children'] 98 // departmentId:data['children']
99 // }; 99 // };
100 console.log(JSON.stringify(newData)); 100 console.log(JSON.stringify(newData));
101 return false; 101 // return false;
102 $.ajax({ 102 $.ajax({
103 type: 'post', 103 type: 'post',
104 url: apiBaseUrl + targetUrl, 104 url: apiBaseUrl + targetUrl,
...@@ -107,6 +107,7 @@ ...@@ -107,6 +107,7 @@
107 dataType: 'json', 107 dataType: 'json',
108 contentType: "application/json; charset=UTF-8", 108 contentType: "application/json; charset=UTF-8",
109 success: function (data) { 109 success: function (data) {
110 console.log(data);
110 if (data.msg) { 111 if (data.msg) {
111 layer.alert(data.msg); 112 layer.alert(data.msg);
112 } else if (data.code != 0) { 113 } else if (data.code != 0) {
...@@ -115,10 +116,10 @@ ...@@ -115,10 +116,10 @@
115 layer.msg('操作成功'); 116 layer.msg('操作成功');
116 } 117 }
117 if (data.code) { 118 if (data.code) {
118 setTimeout(function () { 119 // setTimeout(function () {
119 window.parent.reload(); 120 // window.parent.reload();
120 layer_close(); 121 // layer_close();
121 }, 500); 122 // }, 500);
122 } 123 }
123 }, 124 },
124 error: function () { 125 error: function () {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!