...
|
...
|
@@ -196,10 +196,18 @@ let question = { |
|
|
}
|
|
|
},
|
|
|
saveAnswers: function(info) {
|
|
|
if (!info || !info.length) {
|
|
|
var that = this;
|
|
|
|
|
|
if (this.saving || !info || !info.length) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
this.saving = true;
|
|
|
|
|
|
setTimeout(function() {
|
|
|
that.saving = false;
|
|
|
}, 5000);
|
|
|
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: '/3party/questionnaire/submit',
|
...
|
...
|
@@ -211,6 +219,8 @@ let question = { |
|
|
frontAnswers: JSON.stringify(info)
|
|
|
}
|
|
|
}).then(function(data) {
|
|
|
that.saving = false;
|
|
|
|
|
|
if (data.code === 200) {
|
|
|
tipDg.show('调查问卷已成功提交,感谢您的帮助!');
|
|
|
|
...
|
...
|
|