diff --git a/public/react/src/modules/courses/shixunHomework/shixunreport/ConclusionEvaluation.js b/public/react/src/modules/courses/shixunHomework/shixunreport/ConclusionEvaluation.js
index 3ae69dfaa..d5c8aa57f 100644
--- a/public/react/src/modules/courses/shixunHomework/shixunreport/ConclusionEvaluation.js
+++ b/public/react/src/modules/courses/shixunHomework/shixunreport/ConclusionEvaluation.js
@@ -81,7 +81,7 @@ class ConclusionEvaluation extends Component {
),
}, {
- title: '耗时',
+ title: '实战耗时',
key: 'elapsed',
dataIndex: 'elapsed',
diff --git a/public/react/src/modules/courses/shixunHomework/shixunreport/OfficialAcademicTranscript.js b/public/react/src/modules/courses/shixunHomework/shixunreport/OfficialAcademicTranscript.js
index 2195228e1..2a79ce829 100644
--- a/public/react/src/modules/courses/shixunHomework/shixunreport/OfficialAcademicTranscript.js
+++ b/public/react/src/modules/courses/shixunHomework/shixunreport/OfficialAcademicTranscript.js
@@ -150,7 +150,7 @@ class OfficialAcademicTranscript extends Component {
),
}, {
- title: '耗时',
+ title: '实战耗时',
key: 'elapsedtime',
dataIndex: 'elapsedtime',
From e9ec302cfd05050259e412ce29bac1eac7229728 Mon Sep 17 00:00:00 2001
From: jingquan huang
Date: Fri, 6 Sep 2019 10:35:42 +0800
Subject: [PATCH 4/6] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E7=9A=84=E6=8E=92?=
=?UTF-8?q?=E5=BA=8F=E4=B8=8D=E5=8A=A0=E7=AE=A1=E7=90=86=E5=91=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/controllers/home_controller.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb
index 37cfed3fb..665eaa294 100644
--- a/app/controllers/home_controller.rb
+++ b/app/controllers/home_controller.rb
@@ -29,7 +29,7 @@ class HomeController < ApplicationController
@subjects = Subject.where(homepage_show: 1).includes(:shixuns, :repertoire).limit(8)
@tea_users = User.where(homepage_teacher: 1).includes(:user_extension).limit(10).order("experience desc")
- @stu_users = User.includes(:user_extension).where(user_extensions: {identity: 1}).limit(10).order("experience desc")
+ @stu_users = User.where(is_test: 0).includes(:user_extension).where(user_extensions: {identity: 1}).limit(10).order("experience desc")
end
def search
From bfcb26af6712ca7ffce4bc855e916fa6e5a99ebc Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Fri, 6 Sep 2019 11:00:01 +0800
Subject: [PATCH 5/6] =?UTF-8?q?=E8=AF=95=E5=8D=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../exercise/Testpapersettinghomepage.js | 30 ++++++++++---------
1 file changed, 16 insertions(+), 14 deletions(-)
diff --git a/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js b/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js
index 2c56b8b58..5775bd240 100644
--- a/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js
+++ b/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js
@@ -200,19 +200,20 @@ class Testpapersettinghomepage extends Component{
})
}
}else {
- this.setState({ donwloading: true })
- downloadFile({
- url: urll,
- successCallback: (url) => {
- this.setState({ donwloading: false })
- console.log('successCallback')
- },
- failCallback: (responseHtml, url) => {
- this.setState({ donwloading: false })
- console.log('failCallback')
- }
- })
- this.props.showNotification(`正在下载中`);
+ this.props.slowDownload(urll)
+ // this.setState({ donwloading: true })
+ // downloadFile({
+ // url: urll,
+ // successCallback: (url) => {
+ // this.setState({ donwloading: false })
+ // console.log('successCallback')
+ // },
+ // failCallback: (responseHtml, url) => {
+ // this.setState({ donwloading: false })
+ // console.log('failCallback')
+ // }
+ // })
+ // this.props.showNotification(`正在下载中`);
// window.open("/api"+url+`?${queryString.stringify(params)}`+ '&export=true', '_blank');
}
@@ -380,7 +381,8 @@ class Testpapersettinghomepage extends Component{
导出
:""}
From 71ba4136232f910e2642bd97a558b510c07ec7d0 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Fri, 6 Sep 2019 11:21:47 +0800
Subject: [PATCH 6/6] disableVideoContextMenu = () => {
---
public/react/src/App.js | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/public/react/src/App.js b/public/react/src/App.js
index 7cd219dba..520855519 100644
--- a/public/react/src/App.js
+++ b/public/react/src/App.js
@@ -334,8 +334,17 @@ class App extends Component {
})
}
}
+ disableVideoContextMenu = () => {
+ window.$( "body" ).on( "mousedown", "video", function() {
+ if(event.which === 3) {
+ window.$('video').bind('contextmenu',function () { return false; });
+ } else {
+ window.$('video').unbind('contextmenu');
+ }
+ });
+ }
componentDidMount() {
-
+ this.disableVideoContextMenu();
// force an update if the URL changes
history.listen(() => {