init
Showing
1 changed file
with
6 additions
and
6 deletions
| ... | @@ -97,7 +97,7 @@ | ... | @@ -97,7 +97,7 @@ |
| 97 | // children:data['children'] | 97 | // children:data['children'] |
| 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', |
| ... | @@ -107,7 +107,7 @@ | ... | @@ -107,7 +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 | // console.log(data); |
| 111 | if (data.msg) { | 111 | if (data.msg) { |
| 112 | layer.alert(data.msg); | 112 | layer.alert(data.msg); |
| 113 | } else if (data.code != 0) { | 113 | } else if (data.code != 0) { |
| ... | @@ -116,10 +116,10 @@ | ... | @@ -116,10 +116,10 @@ |
| 116 | layer.msg('操作成功'); | 116 | layer.msg('操作成功'); |
| 117 | } | 117 | } |
| 118 | if (data.code) { | 118 | if (data.code) { |
| 119 | // setTimeout(function () { | 119 | setTimeout(function () { |
| 120 | // window.parent.reload(); | 120 | window.parent.reload(); |
| 121 | // layer_close(); | 121 | layer_close(); |
| 122 | // }, 500); | 122 | }, 500); |
| 123 | } | 123 | } |
| 124 | }, | 124 | }, |
| 125 | error: function () { | 125 | error: function () { | ... | ... |
-
Please register or sign in to post a comment