b2f6440c by wang

init

1 parent b0608ab7
...@@ -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 () {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!