From 02b5e0b7b0d255d58c2c9aafdfe8aad51b294b22 Mon Sep 17 00:00:00 2001
From: tangjiang <465264938@qq.com>
Date: Fri, 20 Dec 2019 16:59:42 +0800
Subject: [PATCH] add placeholder
---
.../developer/newOrEditTask/leftpane/editorTab/index.js | 5 ++++-
public/react/src/redux/actions/ojForm.js | 2 +-
public/react/src/redux/reducers/ojFormReducer.js | 6 +++---
3 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/public/react/src/modules/developer/newOrEditTask/leftpane/editorTab/index.js b/public/react/src/modules/developer/newOrEditTask/leftpane/editorTab/index.js
index bdf293ada..01b78038b 100644
--- a/public/react/src/modules/developer/newOrEditTask/leftpane/editorTab/index.js
+++ b/public/react/src/modules/developer/newOrEditTask/leftpane/editorTab/index.js
@@ -4,7 +4,7 @@
* @Github:
* @Date: 2019-11-20 10:35:40
* @LastEditors: tangjiang
- * @LastEditTime: 2019-12-20 16:12:02
+ * @LastEditTime: 2019-12-20 16:53:55
*/
import './index.scss';
// import 'katex/dist/katex.css';
@@ -24,17 +24,20 @@ const FormItem = Form.Item;
const { Option } = Select;
const maps = {
language: [
+ { title: (请选择), key: '' },
{ title: 'C', key: 'C' },
{ title: 'C++', key: 'C++' },
{ title: 'Python', key: 'Python' },
{ title: 'Java', key: 'Java' }
],
difficult: [
+ { title: (请选择), key: '' },
{ title: '简单', key: '1' },
{ title: '中等', key: '2'},
{ title: '困难', key: '3' }
],
category: [
+ { title: (请选择), key: '' },
{ title: '程序设计', key: '1' },
{ title: '算法', key: '2'}
],
diff --git a/public/react/src/redux/actions/ojForm.js b/public/react/src/redux/actions/ojForm.js
index 740bad895..cf36ee635 100644
--- a/public/react/src/redux/actions/ojForm.js
+++ b/public/react/src/redux/actions/ojForm.js
@@ -4,7 +4,7 @@
* @Github:
* @Date: 2019-11-20 16:35:46
* @LastEditors: tangjiang
- * @LastEditTime: 2019-12-19 17:20:48
+ * @LastEditTime: 2019-12-20 16:40:42
*/
import types from './actionTypes';
import CONST from '../../constants';
diff --git a/public/react/src/redux/reducers/ojFormReducer.js b/public/react/src/redux/reducers/ojFormReducer.js
index 39af4a5f8..5e76cabee 100644
--- a/public/react/src/redux/reducers/ojFormReducer.js
+++ b/public/react/src/redux/reducers/ojFormReducer.js
@@ -4,7 +4,7 @@
* @Github:
* @Date: 2019-11-20 16:40:32
* @LastEditors: tangjiang
- * @LastEditTime: 2019-12-17 16:19:04
+ * @LastEditTime: 2019-12-20 16:40:52
*/
import { Base64 } from 'js-base64';
import types from '../actions/actionTypes';
@@ -14,8 +14,8 @@ const init = {
name: '', // 任务名称
language: '',
description: '',
- difficult: 1,
- category: 1,
+ difficult: '',
+ category: '',
// openOrNot: 1,
timeLimit: 3
},