From 617eabebc803c03721cebcc284aef71d12a38dca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Tue, 21 Dec 2021 19:46:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86-=E8=AF=84=E5=AE=A1=E8=A7=84?= =?UTF-8?q?=E5=88=99=E3=80=81=E9=80=89=E6=8B=A9=E8=AF=84=E5=AE=A1=E4=B8=93?= =?UTF-8?q?=E5=AE=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/military/expert/adminRouter.js | 38 ++++++- src/military/expert/components/wordsInput.jsx | 16 +++ src/military/expert/index.scss | 1 - src/military/expert/reviewResult/index.jsx | 10 ++ src/military/expert/reviewResult/index.scss | 0 .../expert/reviewRules/image/beCarful.svg | 11 ++ src/military/expert/reviewRules/index.jsx | 100 ++++++++++++++++++ src/military/expert/reviewRules/index.scss | 45 ++++++++ src/military/expert/selectExpert/index.jsx | 70 ++++++++++++ src/military/expert/selectExpert/index.scss | 16 +++ src/military/task/api.js | 12 ++- src/military/task/static.js | 4 + src/military/task/taskAdmin/index.jsx | 73 ++++++++++++- src/military/task/taskDetail/index.jsx | 20 +++- src/military/task/taskEdit/index.jsx | 9 +- src/modules/tpm/NewHeader.js | 3 - 16 files changed, 414 insertions(+), 14 deletions(-) create mode 100644 src/military/expert/components/wordsInput.jsx create mode 100644 src/military/expert/reviewResult/index.jsx create mode 100644 src/military/expert/reviewResult/index.scss create mode 100644 src/military/expert/reviewRules/image/beCarful.svg create mode 100644 src/military/expert/reviewRules/index.jsx create mode 100644 src/military/expert/reviewRules/index.scss create mode 100644 src/military/expert/selectExpert/index.jsx create mode 100644 src/military/expert/selectExpert/index.scss diff --git a/src/military/expert/adminRouter.js b/src/military/expert/adminRouter.js index 5c7b3011..4ecf08f1 100644 --- a/src/military/expert/adminRouter.js +++ b/src/military/expert/adminRouter.js @@ -15,7 +15,21 @@ const RegisterList = Loadable({ loader: () => import("./registerList"), loading: Loading, }); - +//创客任务评审规则 +const ReviewRules = Loadable({ + loader : () => import("./reviewRules"), + loading: Loading, +}); +//创客任务选择评审专家 +const SelectExpert = Loadable({ + loader: () => import("./selectExpert"), + loading: Loading, +}); +//创客任务评审结果查看 +const ReviewResult = Loadable({ + loader: () => import("./reviewResult"), + loading: Loading, +}); const AdminPage = (propsF) => { @@ -37,7 +51,27 @@ const AdminPage = (propsF) => { )} > - + {/* 创客任务评审规则 */} + ( + + )} + > + {/* 创客任务选择评审专家 */} + ( + + )} + > + {/* 创客任务评审结果查看 */} + ( + + )} + > ); diff --git a/src/military/expert/components/wordsInput.jsx b/src/military/expert/components/wordsInput.jsx new file mode 100644 index 00000000..119d6a21 --- /dev/null +++ b/src/military/expert/components/wordsInput.jsx @@ -0,0 +1,16 @@ +import React, { useState } from "react"; +import { Input } from 'antd'; + +const { TextArea } = Input; + +//右下角 实时动态 显示用户输入字数 +function WordsInput(props){ + const [wordCount, setWordCount] = useState(0); + return( +
+