1 self.initialFormSubmit = function (param, callBack) {
2 layui.use(["form"], function () {
3 layui.form.on("submit(submitEdit)", function (data) {
4 $.ajax({
5 "contentType": "application/json",
6 "dataType": "json",
7 "type": "post",
8 "url": urlConfig().submitPeopleData,
9 "data": JSON.stringify(param),
10 "success": function (response) {
11 if (response.ResponseCode === "200") {
12 layer.msg(response.Message);
13 callBack();
14 } else {
15 layer.alert(response.Message);
16 }
17 }
18 });
19 return false;
20 });
21 });
22 }