diff --git a/public/react/src/modules/tpm/TPMUpdatepropaede/TPMUpdatepropaede.js b/public/react/src/modules/tpm/TPMUpdatepropaede/TPMUpdatepropaede.js index 63872b133..d79c4885e 100644 --- a/public/react/src/modules/tpm/TPMUpdatepropaede/TPMUpdatepropaede.js +++ b/public/react/src/modules/tpm/TPMUpdatepropaede/TPMUpdatepropaede.js @@ -51,6 +51,7 @@ export default class TPMUpdatepropaede extends Component { updatepropaedeuticsvalue=()=>{ let id = this.props.match.params.shixunId; + let {shixunId} = this.state; let url="/shixuns/"+id+"/update_propaedeutics.json"; const update_propaedeuticsvalue = this.neweditanswerRef.current.getValue().trim(); axios.post(url,{ @@ -60,7 +61,10 @@ export default class TPMUpdatepropaede extends Component { if (response.data.status === 403||response.data.status === 401||response.data.status === 500) { }else{ - this.props.showSnackbar(response.data.message); + this.props.showNotification(response.data.message); + if(response.data.status===1){ + this.props.history.replace("/shixuns/"+shixunId+"/propaedeutics"); + } } }).catch((error) => { console.log(error) @@ -73,9 +77,9 @@ export default class TPMUpdatepropaede extends Component {
-
+
背景知识 - 返回 + 返回
@@ -87,8 +91,8 @@ export default class TPMUpdatepropaede extends Component {
保存 - 取消 + 取消
diff --git a/public/react/src/modules/tpm/component/TPMRightSection.js b/public/react/src/modules/tpm/component/TPMRightSection.js index f363631ba..1d2a93796 100644 --- a/public/react/src/modules/tpm/component/TPMRightSection.js +++ b/public/react/src/modules/tpm/component/TPMRightSection.js @@ -97,9 +97,9 @@ class TPMRightSection extends Component {
- {TPMRightSectionData&&TPMRightSectionData.complete_count!=null?
+ {TPMRightSectionData&&TPMRightSectionData.complete_count!=null?
- 技能标签 + 学习统计 已完成 {TPMRightSectionData&&TPMRightSectionData.complete_count} 个 / 共 {TPMRightSectionData&&TPMRightSectionData.challenge_count} 关 diff --git a/public/react/src/modules/tpm/component/TPMright.css b/public/react/src/modules/tpm/component/TPMright.css index a2dda9c7f..a75160bf5 100644 --- a/public/react/src/modules/tpm/component/TPMright.css +++ b/public/react/src/modules/tpm/component/TPMright.css @@ -122,4 +122,8 @@ .rightjinengs{ height: 35px; margin-top: 20px; +} + +.borderbottomf4{ + border-bottom:1px solid #F4F4F4; } \ No newline at end of file diff --git a/public/react/src/modules/tpm/shixunchild/Propaedeutics/Propaedeu_tics.js b/public/react/src/modules/tpm/shixunchild/Propaedeutics/Propaedeu_tics.js index f40e9fa63..c28833d96 100644 --- a/public/react/src/modules/tpm/shixunchild/Propaedeutics/Propaedeu_tics.js +++ b/public/react/src/modules/tpm/shixunchild/Propaedeutics/Propaedeu_tics.js @@ -79,15 +79,27 @@ class Propaedeutics extends Component {

- - + + {/**/} + 编辑 +

+ + { loadingContent ? : -
+
{PropaedeuticsListcontent===undefined?"":

diff --git a/public/react/src/modules/tpm/shixunchild/Repository/RepositoryAddFile.js b/public/react/src/modules/tpm/shixunchild/Repository/RepositoryAddFile.js index 9ca535bb4..e074908e3 100644 --- a/public/react/src/modules/tpm/shixunchild/Repository/RepositoryAddFile.js +++ b/public/react/src/modules/tpm/shixunchild/Repository/RepositoryAddFile.js @@ -135,6 +135,9 @@ class RepositoryAddFile extends Component { .breadcrumb .ant-breadcrumb-separator{ margin:0px 2px; } + .backgroudwhite{ + display:none; + } /*.filecode .CodeMirror.cm-s-railscasts{ border:1px solid #E5E5E5; }