Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
7d98111a
Commit
7d98111a
authored
Aug 18, 2021
by
yuananting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:新建编辑培训任务页改二级路由
parent
4b59ffa2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
11 deletions
+7
-11
src/modules/task-center/train-task/TrainTaskPage.jsx
+3
-1
src/modules/task-center/train-task/components/TrainList.jsx
+3
-3
src/routes/config/mainRoutes.tsx
+1
-7
No files found.
src/modules/task-center/train-task/TrainTaskPage.jsx
View file @
7d98111a
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Author: yuananting
* @Date: 2021-07-28 11:25:58
* @Date: 2021-07-28 11:25:58
* @LastEditors: yuananting
* @LastEditors: yuananting
* @LastEditTime: 2021-08-1
4 17:18:39
* @LastEditTime: 2021-08-1
8 11:47:40
* @Description: 任务中心-培训任务
* @Description: 任务中心-培训任务
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -14,6 +14,7 @@ import TaskCenterService from '@/domains/task-center-domain/TaskCenterService';
...
@@ -14,6 +14,7 @@ import TaskCenterService from '@/domains/task-center-domain/TaskCenterService';
import
DataCenter
from
'../data-center/Index'
;
import
DataCenter
from
'../data-center/Index'
;
import
User
from
'@/common/js/user'
;
import
User
from
'@/common/js/user'
;
import
Bus
from
'@/core/bus'
;
import
Bus
from
'@/core/bus'
;
import
AddTrainTask
from
'./AddTrainTask'
;
function
TrainTaskPage
(
props
)
{
function
TrainTaskPage
(
props
)
{
const
[
trainListData
,
setTrainListData
]
=
useState
([]);
// 培训任务列表
const
[
trainListData
,
setTrainListData
]
=
useState
([]);
// 培训任务列表
...
@@ -93,6 +94,7 @@ function TrainTaskPage(props) {
...
@@ -93,6 +94,7 @@ function TrainTaskPage(props) {
<
TrainFilter
onChange=
{
queryChange
}
/>
<
TrainFilter
onChange=
{
queryChange
}
/>
<
TrainList
trainListData=
{
trainListData
}
storeTaskNum=
{
storeTaskNum
}
query=
{
query
}
totalCount=
{
totalCount
}
onChange=
{
queryChange
}
/>
<
TrainList
trainListData=
{
trainListData
}
storeTaskNum=
{
storeTaskNum
}
query=
{
query
}
totalCount=
{
totalCount
}
onChange=
{
queryChange
}
/>
</
div
>
</
div
>
<
Route
path=
{
`${match.url}/create-train-task`
}
component=
{
AddTrainTask
}
/>
<
Route
path=
{
`${match.url}/data/:taskId`
}
component=
{
DataCenter
}
/>
<
Route
path=
{
`${match.url}/data/:taskId`
}
component=
{
DataCenter
}
/>
</
div
>
</
div
>
);
);
...
...
src/modules/task-center/train-task/components/TrainList.jsx
View file @
7d98111a
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Author: yuananting
* @Date: 2021-07-28 14:56:52
* @Date: 2021-07-28 14:56:52
* @LastEditors: yuananting
* @LastEditors: yuananting
* @LastEditTime: 2021-08-1
7 16:16:04
* @LastEditTime: 2021-08-1
8 11:46:43
* @Description: 描述一下咯
* @Description: 描述一下咯
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -74,7 +74,7 @@ function TrainList(props) {
...
@@ -74,7 +74,7 @@ function TrainList(props) {
// 编辑培训任务-跳转新建/编辑页
// 编辑培训任务-跳转新建/编辑页
function
editTrainingTask
(
item
)
{
function
editTrainingTask
(
item
)
{
window
.
RCHistory
.
push
({
window
.
RCHistory
.
push
({
pathname
:
`/create-train-task?type=edit&taskId=
${
item
.
taskId
}
&taskState=
${
item
.
taskState
}
&timeType=
${
item
.
timeType
}
`
,
pathname
:
`
${
props
.
match
.
url
}
/create-train-task?type=edit&taskId=
${
item
.
taskId
}
&taskState=
${
item
.
taskState
}
&timeType=
${
item
.
timeType
}
`
,
});
});
}
}
...
@@ -422,7 +422,7 @@ function TrainList(props) {
...
@@ -422,7 +422,7 @@ function TrainList(props) {
function
handleCreateTask
()
{
function
handleCreateTask
()
{
window
.
RCHistory
.
push
({
window
.
RCHistory
.
push
({
pathname
:
'/create-train-task?type=add'
,
pathname
:
`
${
props
.
match
.
url
}
/create-train-task?type=add`
,
});
});
}
}
...
...
src/routes/config/mainRoutes.tsx
View file @
7d98111a
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Author: 吴文洁
* @Date: 2020-04-29 10:26:32
* @Date: 2020-04-29 10:26:32
* @LastEditors: yuananting
* @LastEditors: yuananting
* @LastEditTime: 2021-08-
05 19:51:01
* @LastEditTime: 2021-08-
18 11:47:08
* @Description: 内容线路由配置
* @Description: 内容线路由配置
*/
*/
import
Home
from
'@/modules/home/Home'
;
import
Home
from
'@/modules/home/Home'
;
...
@@ -37,7 +37,6 @@ import ExaminationManagerTestDetail from '@/modules/teach-tool/examination-manag
...
@@ -37,7 +37,6 @@ import ExaminationManagerTestDetail from '@/modules/teach-tool/examination-manag
import
KnowledgeBase
from
'@/modules/knowledge-base/index'
;
import
KnowledgeBase
from
'@/modules/knowledge-base/index'
;
import
CollegeInfoPage
from
'@/modules/college-manage/CollegeInfoPage'
;
import
CollegeInfoPage
from
'@/modules/college-manage/CollegeInfoPage'
;
import
TrainTaskPage
from
'@/modules/task-center/train-task/TrainTaskPage'
;
import
TrainTaskPage
from
'@/modules/task-center/train-task/TrainTaskPage'
;
import
AddTrainTask
from
'@/modules/task-center/train-task/AddTrainTask'
;
const
mainRoutes
=
[
const
mainRoutes
=
[
{
{
...
@@ -168,11 +167,6 @@ const mainRoutes = [
...
@@ -168,11 +167,6 @@ const mainRoutes = [
name
:
'培训任务'
,
name
:
'培训任务'
,
},
},
{
{
path
:
'/create-train-task'
,
component
:
AddTrainTask
,
name
:
'创建培训任务'
,
},
{
path
:
'/create-plan'
,
path
:
'/create-plan'
,
component
:
AddPlanPage
,
component
:
AddPlanPage
,
name
:
'创建线上课'
,
name
:
'创建线上课'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment