Commit 8659e452 authored by youjie's avatar youjie

no message

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