|
|
@@ -162,42 +162,42 @@ const getFormFiledValues = () => {
|
|
|
|
|
|
// 单选数量
|
|
|
if (form.count_select_single.length !== 0) {
|
|
|
- if (form.count_select_single / 1 > 0) {
|
|
|
+ if (form.count_select_single / 1 >= 0) {
|
|
|
obj.single_choice = form.count_select_single / 1;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 填空数量
|
|
|
if (form.count_fill_blank.length !== 0) {
|
|
|
- if (form.count_fill_blank / 1 > 0) {
|
|
|
+ if (form.count_fill_blank / 1 >= 0) {
|
|
|
obj.gap_filling = form.count_fill_blank / 1;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 判断题数量
|
|
|
if (form.count_judge.length !== 0) {
|
|
|
- if (form.count_judge / 1 > 0) {
|
|
|
+ if (form.count_judge / 1 >= 0) {
|
|
|
obj.true_or_false = form.count_judge / 1;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 多选数量
|
|
|
if (form.count_select_muilty.length !== 0) {
|
|
|
- if (form.count_select_muilty / 1 > 0) {
|
|
|
+ if (form.count_select_muilty / 1 >= 0) {
|
|
|
obj.multiple_choice = form.count_select_muilty / 1;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 简答数量
|
|
|
if (form.count_ask.length !== 0) {
|
|
|
- if (form.count_ask / 1 > 0) {
|
|
|
+ if (form.count_ask / 1 >= 0) {
|
|
|
obj.easy_question = form.count_ask / 1;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 案例题数量
|
|
|
if (form.count_example_case.length !== 0) {
|
|
|
- if (form.count_example_case / 1 > 0) {
|
|
|
+ if (form.count_example_case / 1 >= 0) {
|
|
|
obj.case_questions = form.count_example_case / 1;
|
|
|
}
|
|
|
}
|