From f7b6a48d17d7f739a796e21b1b01fac7d8db6cba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Thu, 4 Jul 2019 17:06:46 +0800
Subject: [PATCH 01/41] =?UTF-8?q?=20=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/react/config/webpack.config.dev.js | 40 -----------------------
1 file changed, 40 deletions(-)
diff --git a/public/react/config/webpack.config.dev.js b/public/react/config/webpack.config.dev.js
index a203e798d..2a5d1fbf4 100644
--- a/public/react/config/webpack.config.dev.js
+++ b/public/react/config/webpack.config.dev.js
@@ -250,46 +250,6 @@ module.exports = {
// https://github.com/jmblog/how-to-optimize-momentjs-with-webpack
// You can remove this if you don't use Moment.js:
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
- new ParallelUglifyPlugin({
- // 传递给 UglifyJS的参数如下:
- uglifyJS: {
- output: {
- /*
- 是否输出可读性较强的代码,即会保留空格和制表符,默认为输出,为了达到更好的压缩效果,
- 可以设置为false
- */
- beautify: false,
- /*
- 是否保留代码中的注释,默认为保留,为了达到更好的压缩效果,可以设置为false
- */
- comments: false
- },
- compress: {
- /*
- 是否在UglifyJS删除没有用到的代码时输出警告信息,默认为输出,可以设置为false关闭这些作用
- 不大的警告
- */
- warnings: false,
-
- /*
- 是否删除代码中所有的console语句,默认为不删除,开启后,会删除所有的console语句
- */
- drop_console: false,
-
- /*
- 是否内嵌虽然已经定义了,但是只用到一次的变量,比如将 var x = 1; y = x, 转换成 y = 5, 默认为不
- 转换,为了达到更好的压缩效果,可以设置为false
- */
- collapse_vars: false,
-
- /*
- 是否提取出现了多次但是没有定义成变量去引用的静态值,比如将 x = 'xxx'; y = 'xxx' 转换成
- var a = 'xxxx'; x = a; y = a; 默认为不转换,为了达到更好的压缩效果,可以设置为false
- */
- reduce_vars: false
- }
- }
- }),
],
// Some libraries import Node modules but don't use them in the browser.
// Tell Webpack to provide empty mocks for them so importing them works.
From af5587b55151b1ccea3ee9d2e4783463aa1cb091 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Thu, 4 Jul 2019 17:07:49 +0800
Subject: [PATCH 02/41] =?UTF-8?q?=20=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/react/config/webpack.config.dev.js | 1 -
1 file changed, 1 deletion(-)
diff --git a/public/react/config/webpack.config.dev.js b/public/react/config/webpack.config.dev.js
index 2a5d1fbf4..2fc1bbe64 100644
--- a/public/react/config/webpack.config.dev.js
+++ b/public/react/config/webpack.config.dev.js
@@ -9,7 +9,6 @@ const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin');
const eslintFormatter = require('react-dev-utils/eslintFormatter');
const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
-const ParallelUglifyPlugin = require('webpack-parallel-uglify-plugin');
// const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
const getClientEnvironment = require('./env');
const paths = require('./paths');
From d6a7df567da44ce01357a77cefacc5b085c93fcd Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Thu, 4 Jul 2019 17:22:36 +0800
Subject: [PATCH 03/41] =?UTF-8?q?=E6=97=B6=E9=97=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../courses/busyWork/CommonWorkSetting.js | 27 +++++++++++++------
1 file changed, 19 insertions(+), 8 deletions(-)
diff --git a/public/react/src/modules/courses/busyWork/CommonWorkSetting.js b/public/react/src/modules/courses/busyWork/CommonWorkSetting.js
index 3f7e5f3ad..72987d2ca 100644
--- a/public/react/src/modules/courses/busyWork/CommonWorkSetting.js
+++ b/public/react/src/modules/courses/busyWork/CommonWorkSetting.js
@@ -231,7 +231,7 @@ class CommonWorkSetting extends Component{
end_time: endTime.format(dateFormat)
})
}
- if (!this.state.late_time && endTime) {
+ if (this.state.allow_late && !this.state.late_time && endTime) {
this.setState({
late_time: endTime.add(1, 'months').format(dateFormat)
})
@@ -265,9 +265,12 @@ class CommonWorkSetting extends Component{
const currentEndTime = this._getCurrentEndTime()
let evaluation_start, evaluation_end, evaluation_num = 0, absence_penalty = 0;
if (checked) {
- if (currentEndTime) {
- evaluation_start = moment(currentEndTime).add(7, 'days').format(dateFormat)
- evaluation_end = moment(currentEndTime).add(21, 'days').format(dateFormat)
+ if (this.state.allow_late && this.state.late_time) {
+ evaluation_start = moment(this.state.late_time).add(14, 'days').format(dateFormat)
+ evaluation_end = moment(this.state.late_time).add(28, 'days').format(dateFormat)
+ } else if (currentEndTime) {
+ evaluation_start = moment(currentEndTime).add(14, 'days').format(dateFormat)
+ evaluation_end = moment(currentEndTime).add(28, 'days').format(dateFormat)
}
if (!this.state.evaluation_num) {
evaluation_num = 3
@@ -320,11 +323,15 @@ class CommonWorkSetting extends Component{
const { evaluation_end } = this.state;
const anonymous_appeal = e.target.checked
let appeal_time, appeal_penalty = this.state.appeal_penalty
+ const currentEndTime = this._getCurrentEndTime()
+
if (anonymous_appeal) {
appeal_penalty = 2
- if (evaluation_end) {
- appeal_time = moment(evaluation_end).add(7, 'days').format(dateFormat)
- }
+ if (this.state.allow_late && this.state.late_time) {
+ appeal_time = moment(this.state.late_time).add(5 * 7, 'days').format(dateFormat)
+ } else if (currentEndTime) {
+ appeal_time = moment(currentEndTime).add(5 * 7, 'days').format(dateFormat)
+ }
} else {
appeal_time = null;
}
@@ -386,7 +393,7 @@ class CommonWorkSetting extends Component{
answer_public: e.target.checked
})
}
-
+ // 补交设置 允许补交
allow_late_change=(e)=>{
this.setState({
allow_late: e.target.value
@@ -401,6 +408,10 @@ class CommonWorkSetting extends Component{
late_time: moment(handleDateString(currentEndTime)).add(1, 'months').format(dateFormat)
})
}
+ } else {
+ this.setState({
+ late_time: null
+ })
}
}
From bd56fb15fd8029243e8c2dca286320095f7a585e Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Thu, 4 Jul 2019 17:32:04 +0800
Subject: [PATCH 04/41] =?UTF-8?q?=E8=AF=B7=E8=BE=93=E5=85=A5=E4=BD=9C?=
=?UTF-8?q?=E5=93=81=E5=86=85=E5=AE=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/react/src/modules/courses/busyWork/CommonWorkPost.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/modules/courses/busyWork/CommonWorkPost.js b/public/react/src/modules/courses/busyWork/CommonWorkPost.js
index 3f65faafa..2e882e819 100644
--- a/public/react/src/modules/courses/busyWork/CommonWorkPost.js
+++ b/public/react/src/modules/courses/busyWork/CommonWorkPost.js
@@ -664,7 +664,7 @@ render(){
>
{getFieldDecorator('description', {
rules: [{
- required: true, message: '请输入帖子内容',
+ required: true, message: '请输入作品内容',
}, {
max: 5000, message: '最大限制为5000个字符',
}],
From 6eac291a0c381867c048a7b54b09cfb85d492100 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Thu, 4 Jul 2019 17:42:15 +0800
Subject: [PATCH 05/41] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../courses/shixunHomework/Listofworks.js | 39 +++++--------------
.../shixunHomework/Trainingjobsetting.js | 32 ++++-----------
.../shixunHomework/Workquestionandanswer.js | 32 ++++-----------
3 files changed, 25 insertions(+), 78 deletions(-)
diff --git a/public/react/src/modules/courses/shixunHomework/Listofworks.js b/public/react/src/modules/courses/shixunHomework/Listofworks.js
index 9606740dc..a720cffd4 100644
--- a/public/react/src/modules/courses/shixunHomework/Listofworks.js
+++ b/public/react/src/modules/courses/shixunHomework/Listofworks.js
@@ -1350,21 +1350,10 @@ class Listofworks extends Component {
},{responseType: 'blob'}).then((response) => {
console.log("1342");
console.log(response);
- if (response.status == 200) {
-
- var blob = new Blob([response.data])
- var downloadElement = document.createElement('a');
- var href = window.URL.createObjectURL(blob); //创建下载的链接
- let filename = response.headers.get('Content-Disposition');
- if (filename) {
- filename = filename.match(/\"(.*)\"/)[1]; //提取文件名
- downloadElement.href = href;
- downloadElement.download = filename; //下载后文件名
- document.body.appendChild(downloadElement);
- downloadElement.click(); //点击下载
- document.body.removeChild(downloadElement); //下载完成移除元素
- }
- window.URL.revokeObjectURL(href); //释放掉blob对象
+ if(response.status === 200){
+ window.open(url, '_blank');
+ }else{
+
}
}).catch((error) => {
console.log(error)
@@ -1384,21 +1373,11 @@ class Listofworks extends Component {
},{responseType: 'blob'}).then((response) => {
console.log("1306");
console.log(response);
- if (response.status == 200) {
- var blob = new Blob([response.data])
- var downloadElement = document.createElement('a');
- var href = window.URL.createObjectURL(blob); //创建下载的链接
- let filename = response.headers.get('Content-Disposition');
- if (filename) {
- filename = filename.match(/\"(.*)\"/)[1]; //提取文件名
- downloadElement.href = href;
- downloadElement.download = filename; //下载后文件名
- document.body.appendChild(downloadElement);
- downloadElement.click(); //点击下载
- document.body.removeChild(downloadElement); //下载完成移除元素
- }
- window.URL.revokeObjectURL(href); //释放掉blob对象
- }
+ if(response.status === 200){
+ window.open(url, '_blank');
+ }else{
+
+ }
}).catch((error) => {
console.log(error)
});
diff --git a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
index 19343ad79..f67eca6ab 100644
--- a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
+++ b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
@@ -1619,19 +1619,11 @@ class Trainingjobsetting extends Component {
},{responseType: 'blob'}).then((response) => {
console.log("326");
console.log(response);
- var blob = new Blob([response.data])
- var downloadElement = document.createElement('a');
- var href = window.URL.createObjectURL(blob); //创建下载的链接
- let filename = response.headers.get('Content-Disposition');
- if (filename) {
- filename = filename.match(/\"(.*)\"/)[1]; //提取文件名
- downloadElement.href = href;
- downloadElement.download = filename; //下载后文件名
- document.body.appendChild(downloadElement);
- downloadElement.click(); //点击下载
- document.body.removeChild(downloadElement); //下载完成移除元素
+ if(response.status === 200){
+ window.open(url, '_blank');
+ }else{
+
}
- window.URL.revokeObjectURL(href); //释放掉blob对象
}).catch((error) => {
console.log(error)
@@ -1646,19 +1638,11 @@ class Trainingjobsetting extends Component {
axios.get((url),{responseType: 'blob'}).then((response) => {
console.log("339");
console.log(response);
- var blob = new Blob([response.data])
- var downloadElement = document.createElement('a');
- var href = window.URL.createObjectURL(blob); //创建下载的链接
- let filename = response.headers.get('Content-Disposition');
- if (filename) {
- filename = filename.match(/\"(.*)\"/)[1]; //提取文件名
- downloadElement.href = href;
- downloadElement.download = filename; //下载后文件名
- document.body.appendChild(downloadElement);
- downloadElement.click(); //点击下载
- document.body.removeChild(downloadElement); //下载完成移除元素
+ if(response.status === 200){
+ window.open(url, '_blank');
+ }else{
+
}
- window.URL.revokeObjectURL(href); //释放掉blob对象
}).catch((error) => {
console.log(error)
diff --git a/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js b/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
index d341aab6b..ab650aae2 100644
--- a/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
+++ b/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
@@ -330,19 +330,11 @@ class Workquestionandanswer extends Component {
},{responseType: 'blob'}).then((response) => {
console.log("326");
console.log(response);
- var blob = new Blob([response.data])
- var downloadElement = document.createElement('a');
- var href = window.URL.createObjectURL(blob); //创建下载的链接
- let filename = response.headers.get('Content-Disposition');
- if (filename) {
- filename = filename.match(/\"(.*)\"/)[1]; //提取文件名
- downloadElement.href = href;
- downloadElement.download = filename; //下载后文件名
- document.body.appendChild(downloadElement);
- downloadElement.click(); //点击下载
- document.body.removeChild(downloadElement); //下载完成移除元素
+ if(response.status === 200){
+ window.open(url, '_blank');
+ }else{
+
}
- window.URL.revokeObjectURL(href); //释放掉blob对象
}).catch((error) => {
console.log(error)
@@ -357,19 +349,11 @@ class Workquestionandanswer extends Component {
axios.get((url),{responseType: 'blob'}).then((response) => {
console.log("339");
console.log(response);
- var blob = new Blob([response.data])
- var downloadElement = document.createElement('a');
- var href = window.URL.createObjectURL(blob); //创建下载的链接
- let filename = response.headers.get('Content-Disposition');
- if (filename) {
- filename = filename.match(/\"(.*)\"/)[1]; //提取文件名
- downloadElement.href = href;
- downloadElement.download = filename; //下载后文件名
- document.body.appendChild(downloadElement);
- downloadElement.click(); //点击下载
- document.body.removeChild(downloadElement); //下载完成移除元素
+ if(response.status === 200){
+ window.open(url, '_blank');
+ }else{
+
}
- window.URL.revokeObjectURL(href); //释放掉blob对象
}).catch((error) => {
console.log(error)
From 84c51989a1261debdd9db3696c9421c1ea8c4763 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Thu, 4 Jul 2019 17:43:22 +0800
Subject: [PATCH 06/41] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/modules/tpm/challengesnew/css/TPMchallengesnew.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/modules/tpm/challengesnew/css/TPMchallengesnew.css b/public/react/src/modules/tpm/challengesnew/css/TPMchallengesnew.css
index fb23ba4b8..5087e2f0d 100644
--- a/public/react/src/modules/tpm/challengesnew/css/TPMchallengesnew.css
+++ b/public/react/src/modules/tpm/challengesnew/css/TPMchallengesnew.css
@@ -60,7 +60,7 @@ a{
#exercisememoMD .CodeMirror {
margin-top: 31px !important;
- height: 374px !important;
+ height: 658px !important;
/*width: 579px !important;*/
}
From cb96cd2b420366558e864a77dcb48e081897054a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Thu, 4 Jul 2019 17:54:18 +0800
Subject: [PATCH 07/41] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/react/src/modules/user/FindPasswordComponent.js | 2 +-
public/react/src/modules/user/LoginRegisterComponent.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/public/react/src/modules/user/FindPasswordComponent.js b/public/react/src/modules/user/FindPasswordComponent.js
index 2fe5df943..2fed8f3a8 100644
--- a/public/react/src/modules/user/FindPasswordComponent.js
+++ b/public/react/src/modules/user/FindPasswordComponent.js
@@ -402,7 +402,7 @@ class LoginRegisterComponent extends Component {
:
}
diff --git a/public/react/src/modules/user/LoginRegisterComponent.js b/public/react/src/modules/user/LoginRegisterComponent.js
index 12afd7831..c909eb8c1 100644
--- a/public/react/src/modules/user/LoginRegisterComponent.js
+++ b/public/react/src/modules/user/LoginRegisterComponent.js
@@ -713,7 +713,7 @@ class LoginRegisterComponent extends Component {
}
From 01ee77ab6f947e53b6fb16bf90d10151064e4dd4 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Thu, 4 Jul 2019 18:07:49 +0800
Subject: [PATCH 08/41] fetchMoment
---
.../courses/busyWork/CommonWorkSetting.js | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/public/react/src/modules/courses/busyWork/CommonWorkSetting.js b/public/react/src/modules/courses/busyWork/CommonWorkSetting.js
index 72987d2ca..56eabb375 100644
--- a/public/react/src/modules/courses/busyWork/CommonWorkSetting.js
+++ b/public/react/src/modules/courses/busyWork/CommonWorkSetting.js
@@ -49,6 +49,8 @@ class CommonWorkSetting extends Component{
super(props)
this.publishModal = React.createRef();
this.endModal = React.createRef();
+ this.fetchMoment = moment()
+
this.state={
unified_setting: true,
rules: [],
@@ -123,6 +125,7 @@ class CommonWorkSetting extends Component{
} else if (result.data.publish_time && moment(result.data.publish_time) < moment()) {
disable_unified_setting = true
}
+ this.fetchMoment = moment()
this.setState({
// starttimetype:starttype,
// endtimetype:endtype,
@@ -1042,7 +1045,7 @@ class CommonWorkSetting extends Component{
{/*
*/}
-
+
截止时间:
{/*
*/}
-
+
- 允许补交
+ 允许补交
迟交扣分:
@@ -1146,7 +1149,7 @@ class CommonWorkSetting extends Component{
结束时间:
-
+
- 禁止补交
+ 禁止补交
@@ -1194,7 +1197,7 @@ class CommonWorkSetting extends Component{
开启时间:
-
+
*/}
-
+
结束时间:
{/*
*/}
-
+
Date: Thu, 4 Jul 2019 18:09:49 +0800
Subject: [PATCH 09/41] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../courses/shixunHomework/Listofworks.js | 58 +++++++++----------
1 file changed, 26 insertions(+), 32 deletions(-)
diff --git a/public/react/src/modules/courses/shixunHomework/Listofworks.js b/public/react/src/modules/courses/shixunHomework/Listofworks.js
index a720cffd4..b86bcfce5 100644
--- a/public/react/src/modules/courses/shixunHomework/Listofworks.js
+++ b/public/react/src/modules/courses/shixunHomework/Listofworks.js
@@ -1336,48 +1336,42 @@ class Listofworks extends Component {
}
// 导出实习报告批量
- internshipreport = ()=>{
+ internshipreport = (url)=>{
console.log("internshipreport");
- let url = "/zip/shixun_report";
- let homeworkid = this.props.match.params.homeworkid;
- axios.get((url),{
- params: {
- homework_common_id: homeworkid,
- work_status: this.state.course_groupyslstwo,
- course_group: this.state.checkedValuesineinfo,
- search: this.state.searchtext,
- }
- },{responseType: 'blob'}).then((response) => {
- console.log("1342");
- console.log(response);
+ // params: {
+ // homework_common_id: homeworkid,
+ // work_status: this.state.course_groupyslstwo,
+ // course_group: this.state.checkedValuesineinfo,
+ // search: this.state.searchtext,
+ // }
+ // let url = "/zip/shixun_report";
+ // let homeworkid = this.props.match.params.homeworkid;
+ axios.get(url).then((response) => {
if(response.status === 200){
window.open(url, '_blank');
- }else{
}
- }).catch((error) => {
+ }).catch((error) => {
console.log(error)
});
}
// 课堂学生成绩的导出下载
- Classstudentachievement=()=>{
+ Classstudentachievement=(url)=>{
console.log("Classstudentachievement");
- const course_id = this.props.match.params.coursesId;
- let url = "/courses/"+course_id+"/export_member_scores_excel.xlsx";
- axios.get((url),{
- params: {
- group_id: this.state.checkedValuesineinfo,
- search: this.state.searchtext,
- }
- },{responseType: 'blob'}).then((response) => {
- console.log("1306");
- console.log(response);
- if(response.status === 200){
- window.open(url, '_blank');
- }else{
+ // const course_id = this.props.match.params.coursesId;
+ // let url = "/courses/"+course_id+"/export_member_scores_excel.xlsx";
+ // ,{
+ // params: {
+ // group_id: this.state.checkedValuesineinfo,
+ // search: this.state.searchtext,
+ // }
+ // },{responseType: 'blob'})
+ axios.get(url).then((response) => {
+ if(response.status === 200){
+ window.open(url, '_blank');
- }
+ }
}).catch((error) => {
console.log(error)
});
@@ -1531,8 +1525,8 @@ class Listofworks extends Component {
{this.props.isAdmin()?
导出
:""}
{this.props.isAdmin() ?
From 2eebc8ebe12edaf39272f3dede2992e435b4b071 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Thu, 4 Jul 2019 18:11:41 +0800
Subject: [PATCH 10/41] length
---
.../graduation/tasks/GraduationTasksappraiseReplyChild.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseReplyChild.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseReplyChild.js
index 56f633d2a..27739b611 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseReplyChild.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseReplyChild.js
@@ -81,7 +81,7 @@ class GraduationTasksappraiseReplyChild extends Component{
> }
-
+ {!!comment_scores.length &&
+
}
)
}
From 45b6fa412cd67e264c0a8d59c0d2465fd1f07673 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Thu, 4 Jul 2019 18:14:55 +0800
Subject: [PATCH 11/41] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../shixunHomework/ShixunWorkDetails.js | 8 +-
.../Shixunworkdetails/ShixunCustomsPass.js | 520 +++++++++---------
2 files changed, 268 insertions(+), 260 deletions(-)
diff --git a/public/react/src/modules/courses/shixunHomework/ShixunWorkDetails.js b/public/react/src/modules/courses/shixunHomework/ShixunWorkDetails.js
index c1233ed3f..205fbd9e7 100644
--- a/public/react/src/modules/courses/shixunHomework/ShixunWorkDetails.js
+++ b/public/react/src/modules/courses/shixunHomework/ShixunWorkDetails.js
@@ -86,12 +86,16 @@ class ShixunWorkDetails extends Component {
-
+
{data&&data.homework_common_name}
返回
-
+
非编程类型任务,不参与查重
被查作品:
diff --git a/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunCustomsPass.js b/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunCustomsPass.js
index 89c6e4bd4..81e5ec178 100644
--- a/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunCustomsPass.js
+++ b/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunCustomsPass.js
@@ -1,259 +1,263 @@
-import React, {Component} from "react";
-import {WordsBtn} from 'educoder';
-import {Table} from "antd";
-import {Link,Switch,Route,Redirect} from 'react-router-dom';
-import moment from 'moment';
-import { MonacoDiffEditor } from 'react-monaco-editor';
-
-class ShixunCustomsPass extends Component {
-
- constructor(props) {
- super(props);
- this.state = {
- loadingstate:true,
- datas:undefined
- }
- }
-
- componentDidMount() {
-
- }
-
- render() {
- let {data}=this.props;
- console.log(data)
- let datas=[];
-
- data&&data.challenge_list.forEach((item,key)=>{
- datas.push({
- customs:{position:item.position,subject:item.subject},
- taskname:{name:item.username},
- openingtime:moment(item.end_time).format('YYYY-MM-DD HH:mm:ss'),
- evaluating: {final_score:item.final_score,all_score:item.all_score},
- finishtime:item.copy_username,
- elapsedtime:moment(item.copy_end_time).format('YYYY-MM-DD HH:mm:ss'),
- empvalue:item.code_rate,
- // adjustmentminute:asdasd
- })
- })
-
-
- let columns=[{
- title: '关卡',
- dataIndex: 'customs',
- key: 'customs',
- render: (text, record) => (
-
-
-
-
-
-
- 第{record.customs.position}关
- {record.customs.subject}
-
-
- ),
- }, {
- title: '被查作品',
- dataIndex: 'taskname',
- key: 'taskname',
- render: (text, record) => (
-
- {record.taskname.name}
-
- ),
- }, {
- title: '被查作品完成时间',
- dataIndex: 'openingtime',
- key: 'openingtime',
- render: (text, record) => (
-
- {record.openingtime}
-
- ),
- }, {
- title: '得分/满分',
- key: 'evaluating',
- dataIndex: 'evaluating',
-
- render: (text, record) => (
-
- {record.evaluating.final_score}/{record.evaluating.all_score}
-
- ),
- }, {
- title: '疑被抄袭作品',
- key: 'finishtime',
- dataIndex: 'finishtime',
- render: (text, record) => (
-
- {record.finishtime}
-
- ),
- }, {
- title: '疑被抄袭作品完成时间',
- key: 'elapsedtime',
- dataIndex: 'elapsedtime',
-
- render: (text, record) => (
-
- {record.elapsedtime}
-
- ),
- }, {
- title: '相似度',
- key: 'empvalue',
- dataIndex: 'empvalue',
-
- render: (text, record) => (
-
- {record.empvalue}%
-
- ),
- }];
- // {
- // title: '调分',
- // key: 'adjustmentminute',
- // dataIndex: 'adjustmentminute',
- //
- // render: (text, record) => (
- //
- // 6小时 50分钟 6秒
- //
- // ),
- // },
-
-
-
- return (
-
-
-
- {datas===undefined?"":
}
-
-
-
-
实训详情
-
- {
- data&&data.challenge_list.map((item,key)=>{
- return(
-
-
-
-
-
-
-
- 第{item.position}关
-
- {item.subject}
-
-
- 代码文件:{item.code_list[0].path}
-
-
-
-
-
- {item.code_list.map((ite,k)=>{
- return(
-
-
-
-
- {item.username}
- 的代码文件
-
-
- {item.copy_username}
- 的代码文件
-
-
-
-
-
-
-
-
-
-
- )
- })}
-
- )
- })
- }
-
-
-
-
- )
- }
-}
-
+import React, {Component} from "react";
+import {WordsBtn} from 'educoder';
+import {Table} from "antd";
+import {Link,Switch,Route,Redirect} from 'react-router-dom';
+import moment from 'moment';
+import { MonacoDiffEditor } from 'react-monaco-editor';
+
+class ShixunCustomsPass extends Component {
+
+ constructor(props) {
+ super(props);
+ this.state = {
+ loadingstate:true,
+ datas:undefined
+ }
+ }
+
+ componentDidMount() {
+
+ }
+
+ render() {
+ let {data}=this.props;
+ console.log(data)
+ let datas=[];
+
+ data&&data.challenge_list.forEach((item,key)=>{
+ datas.push({
+ customs:{position:item.position,subject:item.subject},
+ taskname:{name:item.username},
+ openingtime:moment(item.end_time).format('YYYY-MM-DD HH:mm:ss'),
+ evaluating: {final_score:item.final_score,all_score:item.all_score},
+ finishtime:item.copy_username,
+ elapsedtime:moment(item.copy_end_time).format('YYYY-MM-DD HH:mm:ss'),
+ empvalue:item.code_rate,
+ // adjustmentminute:asdasd
+ })
+ })
+
+
+ let columns=[{
+ title: '关卡',
+ dataIndex: 'customs',
+ key: 'customs',
+ className:"customsPass",
+ render: (text, record) => (
+
+
+
+
+
+
+ 第{record.customs.position}关
+ {record.customs.subject}
+
+
+ ),
+ }, {
+ title: '被查作品',
+ dataIndex: 'taskname',
+ key: 'taskname',
+ render: (text, record) => (
+
+ {record.taskname.name}
+
+ ),
+ }, {
+ title: '被查作品完成时间',
+ dataIndex: 'openingtime',
+ key: 'openingtime',
+ render: (text, record) => (
+
+ {record.openingtime}
+
+ ),
+ }, {
+ title: '得分/满分',
+ key: 'evaluating',
+ dataIndex: 'evaluating',
+
+ render: (text, record) => (
+
+ {record.evaluating.final_score}/{record.evaluating.all_score}
+
+ ),
+ }, {
+ title: '疑被抄袭作品',
+ key: 'finishtime',
+ dataIndex: 'finishtime',
+ render: (text, record) => (
+
+ {record.finishtime}
+
+ ),
+ }, {
+ title: '疑被抄袭作品完成时间',
+ key: 'elapsedtime',
+ dataIndex: 'elapsedtime',
+
+ render: (text, record) => (
+
+ {record.elapsedtime}
+
+ ),
+ }, {
+ title: '相似度',
+ key: 'empvalue',
+ dataIndex: 'empvalue',
+
+ render: (text, record) => (
+
+ {record.empvalue}%
+
+ ),
+ }];
+ // {
+ // title: '调分',
+ // key: 'adjustmentminute',
+ // dataIndex: 'adjustmentminute',
+ //
+ // render: (text, record) => (
+ //
+ // 6小时 50分钟 6秒
+ //
+ // ),
+ // },
+
+
+
+ return (
+
+
+
+ {datas===undefined?"":
}
+
+
+
+
实训详情
+
+ {
+ data&&data.challenge_list.map((item,key)=>{
+ return(
+
+
+
+
+
+
+
+ 第{item.position}关
+
+ {item.subject}
+
+
+ 代码文件:{item.code_list[0].path}
+
+
+
+
+
+ {item.code_list.map((ite,k)=>{
+ return(
+
+
+
+
+ {item.username}
+ 的代码文件
+
+
+ {item.copy_username}
+ 的代码文件
+
+
+
+
+
+
+
+
+
+
+ )
+ })}
+
+ )
+ })
+ }
+
+
+
+
+ )
+ }
+}
+
export default ShixunCustomsPass;
\ No newline at end of file
From df263116cc3aa79c43851f05e2ddbb50a9d5498f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Thu, 4 Jul 2019 21:55:47 +0800
Subject: [PATCH 12/41] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../react/src/modules/courses/coursesPublic/Associationmodel.js | 2 +-
.../src/modules/courses/graduation/tasks/GraduateTaskItem.js | 2 +-
.../courses/graduation/tasks/GraduationTaskssettinglist.js | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/public/react/src/modules/courses/coursesPublic/Associationmodel.js b/public/react/src/modules/courses/coursesPublic/Associationmodel.js
index 584bab401..f792fc63b 100644
--- a/public/react/src/modules/courses/coursesPublic/Associationmodel.js
+++ b/public/react/src/modules/courses/coursesPublic/Associationmodel.js
@@ -236,7 +236,7 @@ class Associationmodel extends Component{
}}>
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js b/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js
index 2cbf0fe33..f66874330 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js
@@ -338,7 +338,7 @@ class GraduateTaskItem extends Component{
{item==="创建项目"?
- 创建项目
+ 创建项目
:""}
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js
index c1a10dabf..5d0515535 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js
@@ -1293,7 +1293,7 @@ class GraduationTaskssettinglist extends Component{
{item==="补交作品"?补交作品:""}
{item==="修改作品"?修改作品:""}
{item==="查看作品"?查看作品 :""}
- {item==="创建项目"?创建项目:""}
+ {item==="创建项目"?创建项目:""}
{item==="关联项目"?关联项目:""}
{item==="取消关联"?取消关联:""}
{item==="补交附件"?补交附件:""}
From 583fcca9441eb1c8df2f46035402d52f669b4f68 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Thu, 4 Jul 2019 22:06:00 +0800
Subject: [PATCH 13/41] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/modules/courses/shixunHomework/Listofworks.js | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/public/react/src/modules/courses/shixunHomework/Listofworks.js b/public/react/src/modules/courses/shixunHomework/Listofworks.js
index b86bcfce5..98df760d7 100644
--- a/public/react/src/modules/courses/shixunHomework/Listofworks.js
+++ b/public/react/src/modules/courses/shixunHomework/Listofworks.js
@@ -1347,9 +1347,13 @@ class Listofworks extends Component {
// let url = "/zip/shixun_report";
// let homeworkid = this.props.match.params.homeworkid;
axios.get(url).then((response) => {
- if(response.status === 200){
+ console.log("1350");
+ console.log(response);
+ if(response.data.status === 200){
window.open(url, '_blank');
+ }else{
+
}
}).catch((error) => {
console.log(error)
@@ -1368,7 +1372,9 @@ class Listofworks extends Component {
// }
// },{responseType: 'blob'})
axios.get(url).then((response) => {
- if(response.status === 200){
+ console.log("1374");
+ console.log(response);
+ if(response.data.status=== 200){
window.open(url, '_blank');
}
From 5eb4042edc55c36a3ef8214840b634cbc0b17bcb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Thu, 4 Jul 2019 22:28:51 +0800
Subject: [PATCH 14/41] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/modules/courses/shixunHomework/Listofworks.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/public/react/src/modules/courses/shixunHomework/Listofworks.js b/public/react/src/modules/courses/shixunHomework/Listofworks.js
index 98df760d7..7fea77b35 100644
--- a/public/react/src/modules/courses/shixunHomework/Listofworks.js
+++ b/public/react/src/modules/courses/shixunHomework/Listofworks.js
@@ -1350,7 +1350,7 @@ class Listofworks extends Component {
console.log("1350");
console.log(response);
if(response.data.status === 200){
- window.open(url, '_blank');
+ window.open("/api"+url, '_blank');
}else{
@@ -1375,7 +1375,7 @@ class Listofworks extends Component {
console.log("1374");
console.log(response);
if(response.data.status=== 200){
- window.open(url, '_blank');
+ window.open("/api"+url, '_blank');
}
}).catch((error) => {
@@ -1531,8 +1531,8 @@ class Listofworks extends Component {
{this.props.isAdmin()?
导出
:""}
{this.props.isAdmin() ?
From 7378d933ee7f3e3c5b86bb671deaaa7f66d5903d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Thu, 4 Jul 2019 22:33:59 +0800
Subject: [PATCH 15/41] =?UTF-8?q?=20=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/react/src/modules/tpm/TPMsettings/TPMsettings.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/modules/tpm/TPMsettings/TPMsettings.js b/public/react/src/modules/tpm/TPMsettings/TPMsettings.js
index 949b0a949..e570264f7 100644
--- a/public/react/src/modules/tpm/TPMsettings/TPMsettings.js
+++ b/public/react/src/modules/tpm/TPMsettings/TPMsettings.js
@@ -1474,7 +1474,7 @@ export default class TPMsettings extends Component {
this.testscripttip(0)}>
+ style={{top: '33px', right: '-6px',width: '322px',zIndex: '10',display: testscripttiptype===true?'block':"none"}}>
From 9b56db808c52fc9ae04bfbd9346275aa6b43bbca Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Thu, 4 Jul 2019 22:52:33 +0800
Subject: [PATCH 16/41] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../courses/shixunHomework/Listofworks.js | 15 +++++--
.../shixunHomework/Trainingjobsetting.js | 44 ++++++++++---------
.../shixunHomework/Workquestionandanswer.js | 44 ++++++++++---------
3 files changed, 57 insertions(+), 46 deletions(-)
diff --git a/public/react/src/modules/courses/shixunHomework/Listofworks.js b/public/react/src/modules/courses/shixunHomework/Listofworks.js
index 7fea77b35..9ea5bc78a 100644
--- a/public/react/src/modules/courses/shixunHomework/Listofworks.js
+++ b/public/react/src/modules/courses/shixunHomework/Listofworks.js
@@ -1349,11 +1349,13 @@ class Listofworks extends Component {
axios.get(url).then((response) => {
console.log("1350");
console.log(response);
- if(response.data.status === 200){
- window.open("/api"+url, '_blank');
+ if(response.data.status&&response.data.status===-1){
- }else{
+ }else if(response.data.status&&response.data.status===-2){
+
+ }else{
+ window.open("/api"+url, '_blank');
}
}).catch((error) => {
console.log(error)
@@ -1374,7 +1376,12 @@ class Listofworks extends Component {
axios.get(url).then((response) => {
console.log("1374");
console.log(response);
- if(response.data.status=== 200){
+ if(response.data.status&&response.data.status===-1){
+
+
+ }else if(response.data.status&&response.data.status===-2){
+
+ }else{
window.open("/api"+url, '_blank');
}
diff --git a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
index f67eca6ab..0afd9ff4d 100644
--- a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
+++ b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js
@@ -1608,21 +1608,20 @@ class Trainingjobsetting extends Component {
})
}
// 导出实习报告批量
- internshipreport = () => {
+ internshipreport = (url) => {
console.log("internshipreport");
- var homeworkid = this.props.match.params.homeworkid;
- let url = "/zip/shixun_report";
- axios.get((url),{
- params: {
- homework_common_id: homeworkid,
- }
- },{responseType: 'blob'}).then((response) => {
+ // var homeworkid = this.props.match.params.homeworkid;
+ // let url = "/zip/shixun_report";
+ axios.get(url).then((response) => {
console.log("326");
console.log(response);
- if(response.status === 200){
- window.open(url, '_blank');
- }else{
+ if(response.data.status&&response.data.status===-1){
+
+
+ }else if(response.data.status&&response.data.status===-2){
+ }else{
+ window.open("/api"+url, '_blank');
}
}).catch((error) => {
@@ -1631,19 +1630,22 @@ class Trainingjobsetting extends Component {
}
// 课堂学生成绩的导出下载
- Classstudentachievement = () => {
+ Classstudentachievement = (url) => {
console.log("Classstudentachievement");
- const course_id = this.props.match.params.coursesId;
- let url = "/courses/" + course_id + "/export_member_scores_excel.xlsx";
- axios.get((url),{responseType: 'blob'}).then((response) => {
- console.log("339");
+ // const course_id = this.props.match.params.coursesId;
+ // let url = "/courses/" + course_id + "/export_member_scores_excel.xlsx";
+ axios.get(url).then((response) => {
+ console.log("1374");
console.log(response);
- if(response.status === 200){
- window.open(url, '_blank');
+ if(response.data.status&&response.data.status===-1){
+
+
+ }else if(response.data.status&&response.data.status===-2){
+
}else{
+ window.open("/api"+url, '_blank');
}
-
}).catch((error) => {
console.log(error)
});
@@ -1789,9 +1791,9 @@ class Trainingjobsetting extends Component {
{this.props.isAdmin() ?
导出
: ""}
diff --git a/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js b/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
index ab650aae2..c582dfb32 100644
--- a/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
+++ b/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
@@ -319,21 +319,20 @@ class Workquestionandanswer extends Component {
// 导出实习报告批量
- internshipreport = () => {
+ internshipreport = (url) => {
console.log("internshipreport");
- var homeworkid = this.props.match.params.homeworkid;
- let url = "/zip/shixun_report";
- axios.get((url),{
- params: {
- homework_common_id: homeworkid,
- }
- },{responseType: 'blob'}).then((response) => {
+ // var homeworkid = this.props.match.params.homeworkid;
+ // let url = "/zip/shixun_report";
+ axios.get(url).then((response) => {
console.log("326");
console.log(response);
- if(response.status === 200){
- window.open(url, '_blank');
- }else{
+ if(response.data.status&&response.data.status===-1){
+
+
+ }else if(response.data.status&&response.data.status===-2){
+ }else{
+ window.open("/api"+url, '_blank');
}
}).catch((error) => {
@@ -342,19 +341,22 @@ class Workquestionandanswer extends Component {
}
// 课堂学生成绩的导出下载
- Classstudentachievement = () => {
+ Classstudentachievement = (url) => {
console.log("Classstudentachievement");
- const course_id = this.props.match.params.coursesId;
- let url = "/courses/" + course_id + "/export_member_scores_excel.xlsx";
- axios.get((url),{responseType: 'blob'}).then((response) => {
- console.log("339");
+ // const course_id = this.props.match.params.coursesId;
+ // let url = "/courses/" + course_id + "/export_member_scores_excel.xlsx";
+ axios.get(url).then((response) => {
+ console.log("1374");
console.log(response);
- if(response.status === 200){
- window.open(url, '_blank');
+ if(response.data.status&&response.data.status===-1){
+
+
+ }else if(response.data.status&&response.data.status===-2){
+
}else{
+ window.open("/api"+url, '_blank');
}
-
}).catch((error) => {
console.log(error)
});
@@ -485,9 +487,9 @@ class Workquestionandanswer extends Component {
导出
: ""}
From 63e3ae8385f8dc3e542b05c23389e25165415bef Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Thu, 4 Jul 2019 22:56:39 +0800
Subject: [PATCH 17/41] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/tpm/TPMsettings/TPMsettings.js | 39 ++++++++++++-------
.../tpm/challengesnew/TPMchallengesnew.js | 8 ++--
.../modules/tpm/challengesnew/TPMquestion.js | 16 +++++---
.../src/modules/tpm/newshixuns/Newshixuns.js | 24 +++++++-----
4 files changed, 54 insertions(+), 33 deletions(-)
diff --git a/public/react/src/modules/tpm/TPMsettings/TPMsettings.js b/public/react/src/modules/tpm/TPMsettings/TPMsettings.js
index 949b0a949..3b3081fef 100644
--- a/public/react/src/modules/tpm/TPMsettings/TPMsettings.js
+++ b/public/react/src/modules/tpm/TPMsettings/TPMsettings.js
@@ -1297,23 +1297,26 @@ export default class TPMsettings extends Component {
-
+
技术平台
*
-
+
-
+
-
-
-
+ {/*
*/}
+ {/*
*/}
+
评测脚本