diff --git a/public/react/src/context/TPIContextProvider.js b/public/react/src/context/TPIContextProvider.js
index 7653bc2a6..4874906d8 100644
--- a/public/react/src/context/TPIContextProvider.js
+++ b/public/react/src/context/TPIContextProvider.js
@@ -903,10 +903,10 @@ pop_box_new(htmlvalue, 480, 182);
:
-
diff --git a/public/react/src/modules/courses/boards/AddDirModal.js b/public/react/src/modules/courses/boards/AddDirModal.js
index 89ff6dfeb..ddc430c1e 100644
--- a/public/react/src/modules/courses/boards/AddDirModal.js
+++ b/public/react/src/modules/courses/boards/AddDirModal.js
@@ -22,6 +22,15 @@ class AddDirModal extends Component{
let coursesId = this.props.match.params.coursesId;
const url = `/courses/${coursesId}/boards.json`
let { inputValue } = this.state;
+ if (!inputValue) {
+ this.setState({ errorMsg: '名称不能为空'})
+ return;
+ }
+ if (inputValue.length > 20) {
+ this.setState({ errorMsg: '名称不能超过20个字'})
+ return;
+ }
+ this.setState({ errorMsg: ''})
axios.post(url,{
name: inputValue
@@ -36,10 +45,10 @@ class AddDirModal extends Component{
})
}
onCancel = () => {
- this.setState({ visible: false, inputValue: '' })
+ this.setState({ visible: false, inputValue: '', errorMsg: '' })
}
render(){
- let { inputValue, visible } = this.state;
+ let { inputValue, visible, errorMsg } = this.state;
const { title } = this.props;
return(
+
+ {errorMsg && {errorMsg}}
{/* {this.state.NavmodalValuetype===true?
{this.state.NavmodalValues}
diff --git a/public/react/src/modules/courses/graduation/tasks/Graduationtaskitem.js b/public/react/src/modules/courses/graduation/tasks/Graduationtaskitem.js
index aff66494b..662369dd3 100644
--- a/public/react/src/modules/courses/graduation/tasks/Graduationtaskitem.js
+++ b/public/react/src/modules/courses/graduation/tasks/Graduationtaskitem.js
@@ -36,7 +36,7 @@ class Graduationtaskitem extends Component{
{item.time}
{/* 分数 */}
- {item.score >= 0 && {item.score}分}
+ {item.score != null && item.score >= 0 && {item.score}分}
{ !item.is_invalid && item.delete &&
-
+
禁止代码复制粘贴
diff --git a/public/react/src/modules/page/component/monaco/TPIMonaco.js b/public/react/src/modules/page/component/monaco/TPIMonaco.js
index d6c0ba5cc..2ebdb5eab 100644
--- a/public/react/src/modules/page/component/monaco/TPIMonaco.js
+++ b/public/react/src/modules/page/component/monaco/TPIMonaco.js
@@ -311,6 +311,7 @@ class TPIMonaco extends Component {
// 禁用复制
window.editor_monaco.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyCode.KEY_C, () => null);
+ window.editor_monaco.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyCode.KEY_V, () => null);
}
diff --git a/public/react/src/modules/page/main/ChooseEvaluateView.js b/public/react/src/modules/page/main/ChooseEvaluateView.js
index 7d140a753..754869521 100644
--- a/public/react/src/modules/page/main/ChooseEvaluateView.js
+++ b/public/react/src/modules/page/main/ChooseEvaluateView.js
@@ -35,6 +35,7 @@ class ChooseEvaluateView extends Component {
testSetsComponentArray.push(
this.props.onTestSetHeaderClick(index) }
style={{cursor:'pointer'}} key={index+'-0'}>
+
题目 {index + 1}
@@ -46,6 +47,7 @@ class ChooseEvaluateView extends Component {
item.result === false
? 'fa-exclamation-circle -text-danger'
: 'fa-check-circle color-light-green font-16') } fr mt8 ml5 `}>
+
)
diff --git a/public/react/src/modules/page/main/CodeEvaluateView.css b/public/react/src/modules/page/main/CodeEvaluateView.css
index 7901ef29e..99b08a496 100644
--- a/public/react/src/modules/page/main/CodeEvaluateView.css
+++ b/public/react/src/modules/page/main/CodeEvaluateView.css
@@ -6,7 +6,8 @@
}
#game_test_set_results .-task-ces-top {
background: #1F2F3B;
- padding: 9px 20px;
+ padding: 9px 20px;
+ height: 38px;
}
@@ -110,8 +111,5 @@
padding-top: 8px;
}
#evaluating_contents .-text-danger{
- /* padding-bottom: 6px; */
- }
- #evaluating_contents p.evaluateResult {
- margin-bottom: 10px;
+ padding-bottom: 6px;
}
\ No newline at end of file
diff --git a/public/react/src/modules/page/main/CodeEvaluateView.js b/public/react/src/modules/page/main/CodeEvaluateView.js
index d402e6bce..a738d03fb 100644
--- a/public/react/src/modules/page/main/CodeEvaluateView.js
+++ b/public/react/src/modules/page/main/CodeEvaluateView.js
@@ -233,7 +233,7 @@ class CodeEvaluateView extends Component {
) :
-
+
{ !allowed_unlock ? '隐藏测试集,暂不支持解锁和查看。' : '此为隐藏测试项。'}
{ (power === 0 && allowed_unlock == true) ? showDialog({ contentText, callback: testSetUnlock , moreButtonsRender})}
diff --git a/public/react/src/modules/page/taskList/TaskList.js b/public/react/src/modules/page/taskList/TaskList.js
index 73d23ef41..d3efba167 100644
--- a/public/react/src/modules/page/taskList/TaskList.js
+++ b/public/react/src/modules/page/taskList/TaskList.js
@@ -23,7 +23,7 @@ class TaskList extends Component {
challenge.subject = challenge.name
const showExp = (challenge.experience > 0 && challenge.status === 2) ? '+' + challenge.experience : challenge.experience
- // const showGold = (challenge.gold > 0 && challenge.status === 2) ? '+' + challenge.gold : challenge.gold
+ const showGold = (challenge.gold > 0 && challenge.status === 2) ? '+' + challenge.gold : challenge.gold
return (
@@ -57,7 +57,7 @@ class TaskList extends Component {
0) ? 'positive ' : 'negative'}`} id="shixun_grade_118">
金币
{/*因为关卡金币和经验值是一样的,所以这里可以直接用经验值*/}
- { showExp }
+ { showGold }