diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index 8b7eb02d6..a164828ef 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -30,8 +30,8 @@ export function initAxiosInterceptors(props) { var proxy = "http://localhost:3000" // proxy = "http://testbdweb.trustie.net" // proxy = "http://testbdweb.educoder.net" - proxy = "https://testeduplus2.educoder.net" - //proxy="http://47.96.87.25:48080" + //proxy = "https://testeduplus2.educoder.net" + proxy="http://47.96.87.25:48080" // 在这里使用requestMap控制,避免用户通过双击等操作发出重复的请求; // 如果需要支持重复的请求,考虑config里面自定义一个allowRepeat参考来控制 diff --git a/public/react/src/modules/courses/common/button/CheckAllGroup.js b/public/react/src/modules/courses/common/button/CheckAllGroup.js index b8a548447..b19b684f7 100644 --- a/public/react/src/modules/courses/common/button/CheckAllGroup.js +++ b/public/react/src/modules/courses/common/button/CheckAllGroup.js @@ -41,13 +41,20 @@ class CheckAllGroup extends Component{ const { checkAll, checkedValues } = this.state; return (
- { - unit_p_tip && unit_p_tip != "" ? { unit_p_tip }:"" - } -
-+ { + unit_p_tip && unit_p_tip != "" ? { unit_p_tip }:"" + } +
+{ unit_e_tip && unit_e_tip != "" ? { unit_e_tip }:"" diff --git a/public/react/src/modules/courses/poll/PollDetailTabForthRules.js b/public/react/src/modules/courses/poll/PollDetailTabForthRules.js index 4193cdc62..2f3621844 100644 --- a/public/react/src/modules/courses/poll/PollDetailTabForthRules.js +++ b/public/react/src/modules/courses/poll/PollDetailTabForthRules.js @@ -390,20 +390,24 @@ class PollDetailTabForthRules extends Component{
{ rule.publish_flag && rule.publish_flag!=""?{rule.publish_flag}:"" @@ -411,20 +415,24 @@ class PollDetailTabForthRules extends Component{
{ rule.end_flag && rule.end_flag!=""?{rule.end_flag}:"" diff --git a/public/react/src/modules/courses/poll/PollDetailTabThird.js b/public/react/src/modules/courses/poll/PollDetailTabThird.js index 5d9a01fb8..c3994c7c0 100644 --- a/public/react/src/modules/courses/poll/PollDetailTabThird.js +++ b/public/react/src/modules/courses/poll/PollDetailTabThird.js @@ -70,9 +70,9 @@ class PollDetailTabThird extends Component{
{item.question.question_number}、{map[item.question.question_type]}
- { item.question.is_necessary==1 ? 必答:"" }
+ { item.question.is_necessary==1 ? 必答:选答 }
{ item.question.question_type == 2 ?
-
+
{
item.question.min_choices == item.question.max_choices ? "可选"+item.question.max_choices+"项" :
"可选"+item.question.min_choices+"-"+item.question.max_choices+"项"
diff --git a/public/react/src/modules/courses/poll/PollInfo.js b/public/react/src/modules/courses/poll/PollInfo.js
index 7177cb6b9..8256e3710 100644
--- a/public/react/src/modules/courses/poll/PollInfo.js
+++ b/public/react/src/modules/courses/poll/PollInfo.js
@@ -185,9 +185,11 @@ class PollInfo extends Component{
flag=answers.indexOf(a_id) > -1?true:false;
answers= type == 1 ? answers[0] : answers;
}else{
- flag=answers==a_id?true:false;
+ flag = answers==a_id?true:false;
+ }
+ if(answers && (answers.length>0 || answers !="")){
+ this.postAnswer(q_id,answers,flag ? inputs.text : "",key);
}
- this.postAnswer(q_id,answers,flag ? inputs.text : "",key);
}
//提交主观题
@@ -379,13 +381,21 @@ class PollInfo extends Component{
{