From 4e36b2f6046b0f0e627012f3527799d679daf328 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Wed, 3 Jul 2019 15:48:41 +0800
Subject: [PATCH 1/4] window.html2canvas
---
public/react/src/common/components/Cropper.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/common/components/Cropper.js b/public/react/src/common/components/Cropper.js
index 35c2cdd99..c9514e52a 100644
--- a/public/react/src/common/components/Cropper.js
+++ b/public/react/src/common/components/Cropper.js
@@ -31,7 +31,7 @@ function save_avatar(){
const previewId = this.props.previewId
var img_lg = document.getElementById(previewId || 'img-preview');
// 截图小的显示框内的内容
- html2canvas(img_lg).then(function(canvas) {
+ window.html2canvas(img_lg).then(function(canvas) {
// for test
// document.getElementById('canvasWrap').appendChild(canvas);
From 90b4a039c2d61d6cc9a4ed3dfdbb466b291b2b92 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Wed, 3 Jul 2019 16:03:56 +0800
Subject: [PATCH 2/4] params
---
.../modules/courses/members/studentsList.js | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/public/react/src/modules/courses/members/studentsList.js b/public/react/src/modules/courses/members/studentsList.js
index 500cbd2a3..ca5e859b9 100644
--- a/public/react/src/modules/courses/members/studentsList.js
+++ b/public/react/src/modules/courses/members/studentsList.js
@@ -468,7 +468,22 @@ class studentsList extends Component{
const { course_group_name, invite_code } = this.state;
const courseId = this.props.match.params.coursesId
-
+ let exportUrl = "/api/courses/${courseId}/export_member_scores_excel.xlsx?"
+ const params = {}
+ if (course_group_id) {
+ params.group_id = course_group_id
+ }
+ if (searchValue) {
+ searchValue = searchValue.trim()
+ if (searchValue) {
+ params.search = searchValue
+ }
+ }
+ let paramsString = ''
+ for (let key in params) {
+ paramsString += `${key}=${params[key]}&`
+ }
+ exportUrl += paramsString;
return(
- +
微信扫一扫
关注公众号
diff --git a/public/react/src/modules/tpm/TPMsettings/TPMsettings.js b/public/react/src/modules/tpm/TPMsettings/TPMsettings.js index 788002b4a..949b0a949 100644 --- a/public/react/src/modules/tpm/TPMsettings/TPMsettings.js +++ b/public/react/src/modules/tpm/TPMsettings/TPMsettings.js @@ -1553,7 +1553,7 @@ export default class TPMsettings extends Component {待处理图片路径
标准答案图片路径
学员答案文件路径