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
0b06384f
Commit
0b06384f
authored
Jun 16, 2021
by
guomingpang
Browse files
Options
Browse Files
Download
Plain Diff
merge: merge refactor/yuananting/20210615/category-tree-related
parents
dada4189
96108489
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
9 deletions
+12
-9
src/data-source/aidTool/request-apis.ts
+3
-3
src/domains/aid-tool-domain/AidToolService.ts
+4
-4
src/modules/teach-tool/components/CourseCategoryManage.jsx
+5
-2
No files found.
src/data-source/aidTool/request-apis.ts
View file @
0b06384f
...
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-03-03 15:13:12
* @LastEditors: fusanqiasng
* @LastEditTime: 2021-06-1
5 17:54:04
* @LastEditTime: 2021-06-1
6 09:57:18
* @Description: 助学工具接口
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -29,8 +29,8 @@ export function editCategory(params: object) {
return
Service
.
Hades
(
'public/hades/editCategory'
,
params
);
}
export
function
moveCategory
Tree
(
params
:
object
)
{
return
Service
.
Hades
(
'public/hades/
editCategoryTree
'
,
params
);
export
function
moveCategory
(
params
:
object
)
{
return
Service
.
Hades
(
'public/hades/
moveCategory
'
,
params
);
}
export
function
queryQuestionPageList
(
params
:
object
)
{
...
...
src/domains/aid-tool-domain/AidToolService.ts
View file @
0b06384f
...
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-03-11 11:34:37
* @LastEditors: fusanqiasng
* @LastEditTime: 2021-06-1
5 11:25:18
* @LastEditTime: 2021-06-1
6 09:56:46
* @Description: 助学工具接口
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -12,7 +12,7 @@ import {
addCategory
,
delCategory
,
editCategory
,
moveCategory
Tree
,
moveCategory
,
addQuestion
,
queryQuestionPageList
,
deleteQuestion
,
...
...
@@ -59,8 +59,8 @@ export default class AidToolService {
}
// 拖拽移动分类树
static
moveCategory
Tree
(
params
:
any
)
{
return
moveCategory
Tree
(
params
);
static
moveCategory
(
params
:
any
)
{
return
moveCategory
(
params
);
}
// 查询题目列表
...
...
src/modules/teach-tool/components/CourseCategoryManage.jsx
View file @
0b06384f
...
...
@@ -2,7 +2,11 @@
* @Author: yuananting
* @Date: 2021-02-23 18:28:50
* @LastEditors: fusanqiasng
<<<<<<< HEAD
* @LastEditTime: 2021-06-15 17:55:03
=======
* @LastEditTime: 2021-06-16 09:59:04
>>>>>>> refactor/yuananting/20210615/category-tree-related
* @Description: 助学工具-课程分类
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -482,7 +486,6 @@ class CourseCategoryManage extends Component {
tenantId
:
User
.
getStoreId
(),
userId
:
User
.
getStoreUserId
(),
};
let
movedCategory
=
this
.
movedNodeFind
(
newTreeData
,
info
.
dragNode
.
id
);
let
parentCategory
=
movedCategory
.
parentId
===
'0'
?
firstParentNode
:
this
.
movedNodeFind
(
newTreeData
,
targetParentId
);
// let params = {
...
...
@@ -501,7 +504,7 @@ class CourseCategoryManage extends Component {
userId
:
User
.
getStoreUserId
(),
};
AidToolService
.
moveCategory
Tree
(
params
).
then
((
res
)
=>
{
AidToolService
.
moveCategory
(
params
).
then
((
res
)
=>
{
this
.
queryCategoryTree
(
'remain'
);
});
};
...
...
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