From 81d38a670c5b0ce1c989cfd4f15668ea842797f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Thu, 27 Jun 2019 09:20:18 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/config/webpack.config.dev.js | 30 +++++++++---------- public/react/src/AppConfig.js | 4 +-- .../graduation/tasks/GraduationTasksnew.js | 28 ++++++++--------- .../modules/courses/graduation/tasks/index.js | 6 ++-- public/react/src/modules/tpm/TPMBanner.js | 10 +++---- 5 files changed, 40 insertions(+), 38 deletions(-) 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..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/graduation/tasks/GraduationTasksnew.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js index d1a5ae1d7..ae7d0aad8 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js @@ -278,20 +278,20 @@ class GraduationTasksnew extends Component { {/*内容*/} diff --git a/public/react/src/modules/courses/graduation/tasks/index.js b/public/react/src/modules/courses/graduation/tasks/index.js index 10d71afe4..ae7494d9a 100644 --- a/public/react/src/modules/courses/graduation/tasks/index.js +++ b/public/react/src/modules/courses/graduation/tasks/index.js @@ -209,12 +209,14 @@ class GraduationTasks extends Component{ if (response.data.status == 0) { // {"status":1,"message":"删除成功"} this.fetchAll(search,page,order) + this.props.showNotification(response.data.message); + this.cancelmodel() this.setState({ - Modalstype:true, + Modalstype:false, Modalstopval:response.data.message, ModalsBottomval:"", ModalSave:this.cancelmodel, - Loadtype:true, + Loadtype:false, checkBoxValues:[], checkAllValue:false }) diff --git a/public/react/src/modules/tpm/TPMBanner.js b/public/react/src/modules/tpm/TPMBanner.js index 64c2b39dd..1a5ec22b4 100644 --- a/public/react/src/modules/tpm/TPMBanner.js +++ b/public/react/src/modules/tpm/TPMBanner.js @@ -731,7 +731,7 @@ class TPMBanner extends Component { {/*>{shixunsDetails.task_operation===undefined?"":shixunsDetails.task_operation[0]}:""*/} {/*}*/} - {shixunsDetails.shixun_status === 0 && this.props.identity < 4 ? + {shixunsDetails.shixun_status === 0 && this.props.identity < 5 ? 申请发布 : "" } @@ -796,7 +796,7 @@ class TPMBanner extends Component { - {shixunsDetails.shixun_status === 1 && this.props.identity < 4 ? + {shixunsDetails.shixun_status === 1 && this.props.identity < 5 ? 撤销发布 : "" } @@ -877,16 +877,16 @@ class TPMBanner extends Component {
简介
-
@@ -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客户端要求填写时,按照如下说明填写:
+ * 用户名:使用您在本平台绑定的邮箱
+ * 口令:使用您在本平台的登录口令
+
暂无数据哦~
+