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/14] =?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/14] 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 (
+ + +
this.Showandhide(key)}> }> diff --git a/public/react/src/modules/user/common.css b/public/react/src/modules/user/common.css index 949fd8def..669b78fab 100644 --- a/public/react/src/modules/user/common.css +++ b/public/react/src/modules/user/common.css @@ -58,7 +58,6 @@ display: flex; flex-flow: row wrap; align-content:stretch; - margin-top: 10px; } .ysldivhomediv{ width: 101px; @@ -90,14 +89,14 @@ .ysldivhomedivtxt{ width:101px; height:27px; - margin-bottom: 10px; + margin-bottom: 5px; font-size: 14px; text-align: center; } .ysldivhomedivimg{ - width: 101px; - height: 101px; + width: 90px; + height: 90px; } .ysllogin_register_contents{ display: flex; @@ -108,7 +107,7 @@ } .ysllogin_section { width:800px; - height: 620px; + height: 600px; display: flex; align-items: center; flex-direction: column; @@ -131,8 +130,8 @@ .yslbutton{ width:255px; height: 36px; - margin-top:30px; - margin-bottom: 19px; + margin-top: 20px; + } .mt22{ margin-top: 22px; From 495f0e2dbf613ebf40765dd13236477d08bf2bd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Tue, 16 Jul 2019 11:33:11 +0800 Subject: [PATCH 13/14] =?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/login/EducoderInteresse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/react/src/modules/login/EducoderInteresse.js b/public/react/src/modules/login/EducoderInteresse.js index 5eec6fa99..ca4ced919 100644 --- a/public/react/src/modules/login/EducoderInteresse.js +++ b/public/react/src/modules/login/EducoderInteresse.js @@ -59,7 +59,7 @@ class EducoderInteresse extends Component { display: "flex", justifyContent: "center", width: "100%", - height: "630px", + height: "600px", marginTop: "20px", }}> From 8a13fbcc10f85e791c862039df55201493f8bcef Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Tue, 16 Jul 2019 11:35:53 +0800 Subject: [PATCH 14/14] monaco --- .../react/src/modules/page/component/monaco/TPIMonacoConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/react/src/modules/page/component/monaco/TPIMonacoConfig.js b/public/react/src/modules/page/component/monaco/TPIMonacoConfig.js index d5880ab06..5a80304ee 100644 --- a/public/react/src/modules/page/component/monaco/TPIMonacoConfig.js +++ b/public/react/src/modules/page/component/monaco/TPIMonacoConfig.js @@ -1,4 +1,4 @@ -// import * as monaco from 'monaco-editor' +import * as monaco from 'monaco-editor' import _ from 'lodash' const ifelse = { label: 'ifelse',