87395cdb by yangjianbin

init

1 parent e2a6673f
...@@ -142,7 +142,8 @@ ...@@ -142,7 +142,8 @@
142 type: method, 142 type: method,
143 url: apiBaseUrl + url, 143 url: apiBaseUrl + url,
144 cache: false, 144 cache: false,
145 data:JSON.stringify(data), 145 // data:JSON.stringify(data),
146 data:data,
146 dataType:'json', 147 dataType:'json',
147 contentType: "application/json; charset=UTF-8", 148 contentType: "application/json; charset=UTF-8",
148 success:function(data){ 149 success:function(data){
......
...@@ -532,7 +532,7 @@ ...@@ -532,7 +532,7 @@
532 } 532 }
533 reader.readAsDataURL(file[0]); 533 reader.readAsDataURL(file[0]);
534 } else { 534 } else {
535 alert(file[0].name + " is not a valid image file."); 535 alert(file[0].name + " is not a valid image file.");;
536 dvPreview.html(""); 536 dvPreview.html("");
537 return false; 537 return false;
538 } 538 }
...@@ -546,7 +546,8 @@ ...@@ -546,7 +546,8 @@
546 var data = $("form").serializeJson(); 546 var data = $("form").serializeJson();
547 data = json(data); 547 data = json(data);
548 data.clientContactInputVOS = Object.values(data.clientContactInputVOS); 548 data.clientContactInputVOS = Object.values(data.clientContactInputVOS);
549 549 var dwellDetail = $('[name=clientInfoInputVO\\.dwellState]:checked').parent().find('input[type=text]').val();
550 data.clientInfoInputVO.dwellDetail = dwellDetail;
550 ajax('client/collection', 'post', data, '操作成功', function () { 551 ajax('client/collection', 'post', data, '操作成功', function () {
551 window.parent.reload(); 552 window.parent.reload();
552 layer_close(); 553 layer_close();
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!