Commit 8659e452 authored by youjie's avatar youjie

no message

parent 1acc26b9
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
checkbox.forEach(checkbox => { checkbox.forEach(checkbox => {
checkbox.addEventListener('click', function() { checkbox.addEventListener('click', function() {
if (checkbox.checked) x.IsCheckS.push(checkbox.value) if (checkbox.checked) x.IsCheckS.push(checkbox.value)
if (!checkbox.checked) x.IsCheckS = y.IsCheckS.filter(z => { if (!checkbox.checked) x.IsCheckS = x.IsCheckS.filter(z => {
return z != checkbox.value return z != checkbox.value
}) })
}); });
...@@ -155,6 +155,7 @@ ...@@ -155,6 +155,7 @@
function saveGuestSurvey() { function saveGuestSurvey() {
document.getElementById("submitB").classList.add("active") document.getElementById("submitB").classList.add("active")
getTextarea() getTextarea()
getRadio()
var postMsg = []; var postMsg = [];
if (dataList && dataList.length > 0) { if (dataList && dataList.length > 0) {
dataList.forEach(item => { dataList.forEach(item => {
...@@ -195,14 +196,12 @@ ...@@ -195,14 +196,12 @@
} }
for(let i=0;i<dataList.length;i++){ for(let i=0;i<dataList.length;i++){
if(dataList[i].SurveyType==2||dataList[i].SurveyType==3){ if(dataList[i].SurveyType==2||dataList[i].SurveyType==3){
for(let j=0;j<dataList[i].SurveyOptionsList.length;j++){ let filter = dataList[i].SurveyOptionsList.filter(x=> {return x.IsCheck=='0'})
let filter = dataList[i].SurveyOptionsList[j].filter(x=>x.IsCheck!='1') console.log(filter,'----------')
console.log(filter,'----------') if(filter.length==0){
if(filter.length==0){ layer.msg("请选择"+dataList[i].Title)
layer.msg("请选择"+dataList[i].Title) return
return }
}
}
} }
} }
$('#submitB').attr('disabled', true) $('#submitB').attr('disabled', true)
......
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