From 5f1847ea355b15a788063d27982774a4f1f9394b Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Tue, 16 Jul 2019 09:31:39 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E9=AB=98=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/page/main/CodeEvaluateView.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/react/src/modules/page/main/CodeEvaluateView.css b/public/react/src/modules/page/main/CodeEvaluateView.css index 9deee0fb2..7901ef29e 100644 --- a/public/react/src/modules/page/main/CodeEvaluateView.css +++ b/public/react/src/modules/page/main/CodeEvaluateView.css @@ -6,7 +6,7 @@ } #game_test_set_results .-task-ces-top { background: #1F2F3B; - padding: 5px 20px; + padding: 9px 20px; } From b95c8b17cb4e7d78a58fb76ff059367108650f1e Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Tue, 16 Jul 2019 10:13:18 +0800 Subject: [PATCH 02/10] message --- .../courses/busyWork/CommonWorkDetailIndex.js | 32 ++++++++++++++----- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js b/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js index 1986ddd43..dd8c7691d 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js @@ -8,12 +8,13 @@ import { CNotificationHOC } from '../common/CNotificationHOC' import { RouteHOC } from './common' import locale from 'antd/lib/date-picker/locale/zh_CN'; -import { WordsBtn, MarkdownToHtml, trigger } from 'educoder'; +import { WordsBtn, MarkdownToHtml, trigger, queryString } from 'educoder'; import axios from 'axios'; import Modals from '../../modals/Modals'; import CoursesListType from '../coursesPublic/CoursesListType'; import AccessoryModal from "../coursesPublic/AccessoryModal"; import PublishRightnow from './PublishRightnow' +import DownloadMessage from '../../modals/DownloadMessage'; import '../css/Courses.css' import CBreadcrumb from '../common/CBreadcrumb' @@ -121,9 +122,17 @@ class CommonWorkDetailIndex extends Component{ } const isAdmin = this.props.isAdmin() - let exportUrl = `/api/homework_commons/${workId}/works_list.zip` - const exportResultUrl = `/api/homework_commons/${workId}/works_list.xlsx` - + + let exportParams = {} + const isListModule = childModuleName == '作品列表'; + // 是列表页 + let params = {} + if (isListModule) { + // TODO + // params = this.refs.commonWorkList._getRequestParams() + } + let exportUrl = `/homework_commons/${workId}/works_list.zip?${queryString.stringify(params)}` + let exportResultUrl = `/homework_commons/${workId}/works_list.xlsx?${queryString.stringify(params)}` return (
+ + +