From 1bd93f502deda990a19f763a893f307b495e7300 Mon Sep 17 00:00:00 2001 From: wyw <571921741@qq.com> Date: Thu, 9 Apr 2026 13:56:30 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=9F=B9=E8=AE=AD=E7=AD=BE=E5=88=B0=20?= =?UTF-8?q?=E5=A6=82=E6=9E=9C=E6=98=AF=E5=BE=85=E5=8A=9E=EF=BC=8C=E8=AF=95?= =?UTF-8?q?=E5=8D=B7=E6=9F=A5=E7=9C=8B=E4=B8=8D=E6=98=BE=E7=A4=BA=20?= =?UTF-8?q?=E8=80=83=E8=AF=95=E6=97=B6=20=E5=A4=84=E7=90=86=20=E8=AF=BE?= =?UTF-8?q?=E4=BB=B6=E9=99=84=E4=BB=B6=20=E6=9F=A5=E7=9C=8B=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CustomPages/SC/SC022Import.js | 7 +++++-- src/components/CustomPages/SE/SE018EditPage.js | 17 +++++++++-------- src/components/CustomPages/SE/SE018PaperPage.js | 12 +++++++----- 3 files changed, 21 insertions(+), 15 deletions(-) diff --git a/src/components/CustomPages/SC/SC022Import.js b/src/components/CustomPages/SC/SC022Import.js index 4f31a11..707ffcc 100644 --- a/src/components/CustomPages/SC/SC022Import.js +++ b/src/components/CustomPages/SC/SC022Import.js @@ -139,17 +139,20 @@ class SC022Import extends React.Component { + + + { isMsgShow ? ( isOk ? - + {Msg} : - + {Msg} diff --git a/src/components/CustomPages/SE/SE018EditPage.js b/src/components/CustomPages/SE/SE018EditPage.js index 06101d3..7b41595 100644 --- a/src/components/CustomPages/SE/SE018EditPage.js +++ b/src/components/CustomPages/SE/SE018EditPage.js @@ -279,7 +279,7 @@ class SE018EditPage extends React.Component { 培训老师 {data && data.Nav_Notify ? data.Nav_Notify.TRAIN_TEACHER : null} 培训形式 - {data&& data.Nav_Notify && data.Nav_Notify.TRAINTYPE && enums.TrainType.enums[data.Nav_Notify.TRAINTYPE]} + {data && data.Nav_Notify && data.Nav_Notify.TRAINTYPE && enums.TrainType.enums[data.Nav_Notify.TRAINTYPE]} 考核方式 {/* {data && data.Nav_Notify && data.Nav_Notify.Nav_TrainCheckType ? data.Nav_Notify.Nav_TrainCheckType.NAME : null} */} {data && data.Nav_Notify && data.Nav_Notify.CHECKTYPE && enums.PlanCheckType.enums[data.Nav_Notify.CHECKTYPE]} @@ -364,7 +364,7 @@ class SE018EditPage extends React.Component { 姓名 岗位 {this.state.isExam && 分数} - 查看试卷 + {!signable && 查看试卷} 电子签名 { @@ -381,12 +381,13 @@ class SE018EditPage extends React.Component { {/* if (data.Nav_Notify.CHECKTYPE == 51 || data.Nav_Notify.CHECKTYPE == 56 || data.Nav_Notify.CHECKTYPE == 81) { */} {/* 线上考核 51 看试卷 56 81 看附件 */} { - this.state.isShow && data.Nav_Notify.CHECKTYPE ? ( - data.Nav_Notify.CHECKTYPE == 51 ?
this.showDetailModal(it.RECORD_ID, it.USER_ID)}>
- : {showFiles(it?.Nav_Files, config.picServerHost, this, false)} - ) - :
this.showDetailModal(it.RECORD_ID, it.USER_ID)}>
- } + !signable && ( + this.state.isShow && data.Nav_Notify.CHECKTYPE ? ( + data.Nav_Notify.CHECKTYPE == 51 ?
this.showDetailModal(it.RECORD_ID, it.USER_ID)}>
+ : {showFiles(it?.Nav_Files, config.picServerHost, this, false)} + ) + :
this.showDetailModal(it.RECORD_ID, it.USER_ID)}>
+ )} { showUserSign(it.Nav_User, config.picServerHost) diff --git a/src/components/CustomPages/SE/SE018PaperPage.js b/src/components/CustomPages/SE/SE018PaperPage.js index 5a57569..3da5afa 100644 --- a/src/components/CustomPages/SE/SE018PaperPage.js +++ b/src/components/CustomPages/SE/SE018PaperPage.js @@ -333,15 +333,15 @@ class SE018PaperPage extends React.Component { } } - if (this.state.filepath.indexOf('/VIDEO/') > -1) { + if (this.state.filepath && this.state.filepath.length > 0 && this.state.filepath.indexOf('/VIDEO/') > -1) { this.state.isViedo = true this.state.filepath = configc.videoServerHost + this.state.filepath this.state.filepathf = [] if (ISEND && VIEWSEC == 0) { ISEND = false } - } else if (this.state.filepath.indexOf('.mp4') > -1 || this.state.filepath - .indexOf('.avi') > -1) { + } else if (this.state.filepath && this.state.filepath.length > 0 && (this.state.filepath.indexOf('.mp4') > -1 || this.state.filepath + .indexOf('.avi') > -1)) { //暂时不应该进来 this.state.isViedo = true if (ISEND) { @@ -354,7 +354,9 @@ class SE018PaperPage extends React.Component { this.state.isViedo = false // this.state.isVideoEnd = true this.state.filepath = this.state.filepath - this.state.filepathf = getFileShow(this.state.filepath) + if (this.state.filepath && this.state.filepath.length > 0) { + this.state.filepathf = getFileShow(this.state.filepath) + } } this.setState({ indexCour: this.state.indexCour, @@ -734,7 +736,7 @@ class SE018PaperPage extends React.Component { : null } { - isCourEdit && !isViedo ? + isCourEdit && !isViedo && filepathf && filepathf.length > 0 ? 课件附件 { From b401e5a937fad6eaa31aeaa16725ab8d19f84227 Mon Sep 17 00:00:00 2001 From: chenshaowei Date: Thu, 9 Apr 2026 14:38:25 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20index=E4=B8=8D?= =?UTF-8?q?=E7=BC=93=E5=AD=98=EF=BC=8C=E8=A7=A3=E5=86=B3=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=90=8E=E5=AE=A2=E6=88=B7=E7=AB=AF=E7=BC=93=E5=AD=98=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E9=A1=B5=E9=9D=A2=E4=B8=80=E7=9B=B4=E7=99=BD=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/web.config | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 public/web.config diff --git a/public/web.config b/public/web.config new file mode 100644 index 0000000..f2fd51b --- /dev/null +++ b/public/web.config @@ -0,0 +1,12 @@ + + + + + + + + + + + +