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] 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 (