tableData,noticeData 是两个长二维数组
javascript
$.ajax({
url: "/admin/samproofing/confirmPieces",
type: "POST",
data: {
"ym": ym1,
"papertype":paper_type,
"person_data": that.tableData,
"notice_data": that.noticeData,
"_token":'{{csrf_token()}}'
},
dataType:'json',
success: function (res) {
if(res.code==1){
//that.tableData = res.data;
//打样通知单data
// that.noticeData = res.data;
}
}
});
改成下面这样就不会了!
javascript
$.ajax({
url: "/admin/samproofing/confirmPieces",
type: "POST",
data: {
"ym": ym1,
"papertype":paper_type,
"person_data": JSON.stringify(that.tableData),
"notice_data": JSON.stringify(that.noticeData),
"_token":'{{csrf_token()}}'
},
dataType:'json',
success: function (res) {
if(res.code==1){
//that.tableData = res.data;
//打样通知单data
// that.noticeData = res.data;
}
}
});