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
9ac7939a
Commit
9ac7939a
authored
Jun 24, 2021
by
wufan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:分类管理添加搜索默认图
parent
076df9ec
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
4 deletions
+27
-4
src/common/lottie/search.json
+0
-0
src/components/LottieIcon.tsx
+4
-2
src/modules/teach-tool/components/CourseCategoryManage.jsx
+17
-2
src/modules/teach-tool/components/CourseCategoryManage.less
+6
-0
No files found.
src/common/lottie/search.json
0 → 100644
View file @
9ac7939a
This diff is collapsed.
Click to expand it.
src/components/LottieIcon.tsx
View file @
9ac7939a
...
...
@@ -2,7 +2,7 @@
* @Author: wufan
* @Date: 2021-06-15 13:48:35
* @LastEditors: wufan
* @LastEditTime: 2021-06-
15 14:24:57
* @LastEditTime: 2021-06-
24 11:10:45
* @Description: Description
*/
import
React
from
'react'
;
...
...
@@ -12,6 +12,7 @@ import student from '@/common/lottie/student.json';
import
activity
from
'@/common/lottie/activity.json'
;
import
teacher
from
'@/common/lottie/teacher.json'
;
import
college
from
'@/common/lottie/college.json'
;
import
search
from
'@/common/lottie/search.json'
;
import
'./LottieIcon.less'
;
...
...
@@ -29,7 +30,8 @@ const ANIMATION_DATA_MAP: {
student
,
activity
,
teacher
,
college
college
,
search
}
function
LottieIcon
(
props
:
LottieIconInterface
)
{
...
...
src/modules/teach-tool/components/CourseCategoryManage.jsx
View file @
9ac7939a
/*
* @Author: yuananting
* @Date: 2021-02-23 18:28:50
* @LastEditors:
fusanqiasng
* @LastEditTime: 2021-06-
16 09:59:0
4
* @LastEditors:
wufan
* @LastEditTime: 2021-06-
24 11:19:3
4
* @Description: 助学工具-课程分类
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -14,9 +14,11 @@ import AidToolService from '@/domains/aid-tool-domain/AidToolService';
import
User
from
'@/common/js/user'
;
import
{
Tree
,
Input
,
Space
,
Button
,
Menu
,
Dropdown
,
message
,
Modal
}
from
'antd'
;
import
ShowTips
from
'@/components/ShowTips'
;
import
LottieIcon
from
'@/components/LottieIcon'
;
const
{
DirectoryTree
}
=
Tree
;
const
{
Search
}
=
Input
;
const
{
confirm
}
=
Modal
;
class
CourseCategoryManage
extends
Component
{
constructor
(
props
)
{
super
(
props
);
...
...
@@ -567,6 +569,9 @@ class CourseCategoryManage extends Component {
<
ShowTips
message=
'为方便管理,该分类用于课程、培训计划、题库、知识库等模块,改动将同步各模块更新'
/>
</
div
>
<
div
className=
'course-category-tree'
>
{
<
Choose
>
<
When
condition=
{
(
treeData
.
length
!==
0
)
}
>
<
DirectoryTree
expandedKeys=
{
expandedKeys
}
autoExpandParent=
{
autoExpandParent
}
...
...
@@ -577,6 +582,16 @@ class CourseCategoryManage extends Component {
blockNode
onDrop=
{
this
.
onDrop
}
treeData=
{
treeData
}
></
DirectoryTree
>
</
When
>
<
Otherwise
>
<
LottieIcon
title=
{
<
span
className=
"desc"
>
搜索无结果
</
span
>
}
type=
"college"
size=
{
150
}
/>
</
Otherwise
>
</
Choose
>
}
</
div
>
</
div
>
{
operateCourseCategoryModal
}
...
...
src/modules/teach-tool/components/CourseCategoryManage.less
View file @
9ac7939a
...
...
@@ -14,6 +14,12 @@
margin-top: 12px;
width: 900px;
border: 1px solid #e8e8e8;
.lottie-icon {
margin-top: 100px!important;
.desc {
color: #999!important;
}
}
.ant-tree.ant-tree-directory {
font-size: 14px;
font-weight: 400;
...
...
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