diff --git a/src/components/CustomPages/SE/SE018PaperPage.js b/src/components/CustomPages/SE/SE018PaperPage.js index 68bba33..555312d 100644 --- a/src/components/CustomPages/SE/SE018PaperPage.js +++ b/src/components/CustomPages/SE/SE018PaperPage.js @@ -48,6 +48,7 @@ class SE018PaperPage extends React.Component { perPaper: [], //每次的答题 wyw 20260306 listPath: [], indexCour: -1, //课件, + STATUS_RECORD: 1,//培训记录状态 2 审阅中 、3 归档 可查看答案是否正确 fileData: [], fileForm: { title: "", @@ -183,6 +184,7 @@ class SE018PaperPage extends React.Component { isCourEdit = true //考试 有 课件 this.state.listPath = ret.listPath } + let STATUS_RECORD = ret.STATUS_RECORD if (ret.listPath.length > 1) { this.state.btnText = '下一题' } @@ -215,6 +217,7 @@ class SE018PaperPage extends React.Component { isCourEdit: isCourEdit, listPath: this.state.listPath, btnText: this.state.btnText, + STATUS_RECORD: STATUS_RECORD }) if (isCourEdit == true) { this.onSave() @@ -477,7 +480,7 @@ class SE018PaperPage extends React.Component { } } render() { - const { record, perPaper, SelUsrID, UserList, notify, btnText, filepath, isViedo, isCourEdit, isVideoEnd, filepathf } = this.state; + const { record, perPaper, SelUsrID, UserList, notify, btnText, filepath, isViedo, isCourEdit, isVideoEnd, filepathf, STATUS_RECORD } = this.state; const SelUsr = SelUsrID && UserList.find(it => it.ID === SelUsrID); return
@@ -611,11 +614,11 @@ class SE018PaperPage extends React.Component { { it.Nav_Test.TYPE === 0 ? - + 1) ? styles.answer : null}> this.doOptionChange(it, idx, 1, evt)} >正确 : - + 1) ? styles.answer : null}> { it.Nav_Test.TYPE === 1 ? this.doOptionChange(it, idx, 1, evt)} >A.{it.Nav_Test.OPTION_A} @@ -628,11 +631,11 @@ class SE018PaperPage extends React.Component { { it.Nav_Test.TYPE === 0 ? - + 1) ? styles.answer : null}> this.doOptionChange(it, idx, 2, evt)} >错误 : - + 1) ? styles.answer : null}> { it.Nav_Test.TYPE === 1 ? this.doOptionChange(it, idx, 2, evt)} >B.{it.Nav_Test.OPTION_B} @@ -645,7 +648,7 @@ class SE018PaperPage extends React.Component { { it.Nav_Test.TYPE !== 0 && - + 1) ? styles.answer : null}> { it.Nav_Test.TYPE === 1 ? this.doOptionChange(it, idx, 4, evt)} >C.{it.Nav_Test.OPTION_C} @@ -658,7 +661,7 @@ class SE018PaperPage extends React.Component { { it.Nav_Test.TYPE !== 0 && it.Nav_Test.OPTION_D != "" && it.Nav_Test.OPTION_D != undefined && - + 1) ? styles.answer : null}> { it.Nav_Test.TYPE === 1 ? this.doOptionChange(it, idx, 8, evt)} >D.{it.Nav_Test.OPTION_D} @@ -671,7 +674,7 @@ class SE018PaperPage extends React.Component { { it.Nav_Test.TYPE !== 0 && it.Nav_Test.OPTION_E != "" && it.Nav_Test.OPTION_E != undefined && - + 1) ? styles.answer : null}> { it.Nav_Test.TYPE === 1 ? this.doOptionChange(it, idx, 16, evt)} >E.{it.Nav_Test.OPTION_E}