Commit 96108489 by yuananting

fix:修改移动分类接口方法名称

parent 56b67270
......@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-03-03 15:13:12
* @LastEditors: fusanqiasng
* @LastEditTime: 2021-06-15 11:53:12
* @LastEditTime: 2021-06-16 09:57:18
* @Description: 助学工具接口
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
......@@ -29,7 +29,7 @@ export function editCategory(params: object) {
return Service.Hades('public/hades/editCategory', params);
}
export function moveCategoryTree(params: object) {
export function moveCategory(params: object) {
return Service.Hades('public/hades/moveCategory', params);
}
......
......@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-03-11 11:34:37
* @LastEditors: fusanqiasng
* @LastEditTime: 2021-06-15 11:25:18
* @LastEditTime: 2021-06-16 09:56:46
* @Description: 助学工具接口
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
......@@ -12,7 +12,7 @@ import {
addCategory,
delCategory,
editCategory,
moveCategoryTree,
moveCategory,
addQuestion,
queryQuestionPageList,
deleteQuestion,
......@@ -59,8 +59,8 @@ export default class AidToolService {
}
// 拖拽移动分类树
static moveCategoryTree(params: any) {
return moveCategoryTree(params);
static moveCategory(params: any) {
return moveCategory(params);
}
// 查询题目列表
......
......@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-02-23 18:28:50
* @LastEditors: fusanqiasng
* @LastEditTime: 2021-06-15 15:31:40
* @LastEditTime: 2021-06-16 09:59:04
* @Description: 助学工具-课程分类
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
......@@ -482,7 +482,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 = {
......@@ -493,7 +492,7 @@ class CourseCategoryManage extends Component {
userId: User.getStoreUserId(),
};
AidToolService.moveCategoryTree(params).then((res) => {
AidToolService.moveCategory(params).then((res) => {
this.queryCategoryTree('remain');
});
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment