diff --git a/public/react/config/webpack.config.dev.js b/public/react/config/webpack.config.dev.js index dfd54f38b..ceddbd81b 100644 --- a/public/react/config/webpack.config.dev.js +++ b/public/react/config/webpack.config.dev.js @@ -114,21 +114,21 @@ module.exports = { // First, run the linter. // It's important to do this before Babel processes the JS. // 上线然后要注释回来 - { - test: /\.(js|jsx|mjs)$/, - enforce: 'pre', - use: [ - { - options: { - formatter: eslintFormatter, - eslintPath: require.resolve('eslint'), - - }, - loader: require.resolve('eslint-loader'), - }, - ], - include: paths.appSrc, - }, + // { + // test: /\.(js|jsx|mjs)$/, + // enforce: 'pre', + // use: [ + // { + // options: { + // formatter: eslintFormatter, + // eslintPath: require.resolve('eslint'), + // + // }, + // loader: require.resolve('eslint-loader'), + // }, + // ], + // include: paths.appSrc, + // }, { // "oneOf" will traverse all following loaders until one will // match the requirements. When no loader matches it will fall diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index 8b7eb02d6..bae157ef7 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{
{
diff --git a/public/react/src/modules/courses/shixunHomework/TraineetraininginformationModal.js b/public/react/src/modules/courses/shixunHomework/TraineetraininginformationModal.js
index 10db61e1b..a0486095e 100644
--- a/public/react/src/modules/courses/shixunHomework/TraineetraininginformationModal.js
+++ b/public/react/src/modules/courses/shixunHomework/TraineetraininginformationModal.js
@@ -80,6 +80,8 @@ class TraineetraininginformationModal extends Component {
}
render() {
var columns;
+ console.log(83);
+ console.log(this.props.boolgalist);
if(this.props.boolgalist&&this.props.boolgalist === true) {
columns = [
{
diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js
index 294339b54..f43991599 100644
--- a/public/react/src/modules/tpm/NewHeader.js
+++ b/public/react/src/modules/tpm/NewHeader.js
@@ -625,7 +625,7 @@ submittojoinclass=(value)=>{
{/* />*/}
{/* :""*/}
{/*}*/}
-
简介
-
@@ -262,7 +262,7 @@ class Challenges extends Component {
全部任务
- {this.props.identity < 4 && ChallengesDataList&&ChallengesDataList.shixun_status=== 0 ?
+ {this.props.identity < 5 && ChallengesDataList&&ChallengesDataList.shixun_status=== 0 ?
: ""
}
- {this.props.identity < 4 && ChallengesDataList&&ChallengesDataList.shixun_status=== 0 ?
+ {this.props.identity < 5 && ChallengesDataList&&ChallengesDataList.shixun_status=== 0 ?
第{key+1}关
- {this.props.identity<4?
+ {this.props.identity<5?
item.st === 1 ?
this.startshixunCombat(this.props.identity, item.challenge_id, "/editquestion")}
className="font-16 color05101a">{item.name}
@@ -359,7 +359,7 @@ class Challenges extends Component {
{item.delete_url != undefined &&
- this.showCollaboratorsvisible("cooperation")}
- className="edu-default-btn edu-greenback-btn fr mr20 height40"
- data-remote="true">
- + 添加合作者
-
- this.showCollaboratorsvisible("admin")}
- style={{display:this.props.identity===1?"block":"none"}}
- data-remote="true"
- className="edu-default-btn edu-greenback-btn fr mr20 height40">更换管理员
-
- 姓名
- 职位
- 单位
-
- {item.user.name}
-
- {item.user.shixun_manager === true ? "(管理员)" : ""}
- {item.user.identity}{item.user.school_name}
- 发布 {item.user.user_shixuns_count}
- {/*粉丝 */}
- {/*{item.user.fans_count}*/}
- {/**/}
- {item.user.brief_introduction}
您将不再拥有管理员的权限,但您仍是合作团队的一员
-
-
-
- {Searchadmin.length === 0 ?
-
+ this.showCollaboratorsvisible("cooperation")} + className="edu-default-btn edu-greenback-btn fr mr20 height40" + data-remote="true"> + + 添加合作者 + + this.showCollaboratorsvisible("admin")} + style={{display:this.props.identity===1?"block":"none"}} + data-remote="true" + className="edu-default-btn edu-greenback-btn fr mr20 height40">更换管理员 +
+ ++ 姓名 + 职位 + 单位 +
++ {item.user.name} + + {item.user.shixun_manager === true ? "(管理员)" : ""} +
+ +{item.user.identity}{item.user.school_name}
+ ++ 发布 {item.user.user_shixuns_count} + {/*粉丝 */} + {/*{item.user.fans_count}*/} + {/**/} +
+ +{item.user.brief_introduction}
+ + +- - {PropaedeuticsListcontent === undefined ||PropaedeuticsListcontent === ""? -
暂无数据哦~
-+ + {PropaedeuticsListcontent === undefined ||PropaedeuticsListcontent === ""? +
暂无数据哦~
+请上传当前实训中各个关卡涉及的所有文件
- 包括任务文件、执行文件,以及其他的必须文件
- 提交代码的方法:
- 1、在电脑上安装Git tortoise客户端,
- 或者其它熟悉的Git客户端
- 2、在Git客户端上向左侧的地址提交代码
- 注意:
- 请在Git客户端要求填写时,按照如下说明填写:
- * 用户名:使用您在本平台绑定的邮箱
- * 口令:使用您在本平台的登录口令
-
暂无数据哦~
-请上传当前实训中各个关卡涉及的所有文件
+ 包括任务文件、执行文件,以及其他的必须文件
+ 提交代码的方法:
+ 1、在电脑上安装Git tortoise客户端,
+ 或者其它熟悉的Git客户端
+ 2、在Git客户端上向左侧的地址提交代码
+ 注意:
+ 请在Git客户端要求填写时,按照如下说明填写:
+ * 用户名:使用您在本平台绑定的邮箱
+ * 口令:使用您在本平台的登录口令
+
暂无数据哦~
+