Commit a4516c55 authored by zhengke's avatar zhengke

no message

parent 7fb8d857
...@@ -130,7 +130,6 @@ ...@@ -130,7 +130,6 @@
} }
function saveGuestSurvey() { function saveGuestSurvey() {
getTextarea() getTextarea()
$('#submitB').attr('disabled', true)
var postMsg = []; var postMsg = [];
if (dataList && dataList.length > 0) { if (dataList && dataList.length > 0) {
dataList.forEach(item => { dataList.forEach(item => {
...@@ -159,6 +158,10 @@ ...@@ -159,6 +158,10 @@
var newMsg = { var newMsg = {
busDetailsList: postMsg busDetailsList: postMsg
} }
postMsg.forEach(x=>{
if(x.SurveyType==2) console.log(x.ScoreNum,'----')
})
$('#submitB').attr('disabled', true)
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: `${getApiUrl().urlPost}`, url: `${getApiUrl().urlPost}`,
......
...@@ -131,7 +131,6 @@ ...@@ -131,7 +131,6 @@
} }
function saveGuestSurvey() { function saveGuestSurvey() {
getTextarea() getTextarea()
$('#submitB').attr('disabled', true)
var postMsg = []; var postMsg = [];
if (dataList && dataList.length > 0) { if (dataList && dataList.length > 0) {
dataList.forEach(item => { dataList.forEach(item => {
...@@ -156,9 +155,15 @@ ...@@ -156,9 +155,15 @@
}) })
item.ScoreNum = 0; item.ScoreNum = 0;
} }
if(item.SurveyType==2) console.log(item,'-------111')
postMsg.push(item); postMsg.push(item);
}) })
} }
postMsg.forEach(x=>{
if(x.SurveyType==2) console.log(x,'-------')
})
return
$('#submitB').attr('disabled', true)
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: `${getApiUrl().urlPost}`, url: `${getApiUrl().urlPost}`,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment