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
26bbb950
Commit
26bbb950
authored
Dec 07, 2020
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:修改退出登录的文案
parent
b9e37a2e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
11 deletions
+21
-11
src/modules/root/Header.tsx
+3
-3
src/modules/store-manege/CourseCatalogPage.less
+8
-0
src/modules/store-manege/CourseCatalogPage.tsx
+10
-8
No files found.
src/modules/root/Header.tsx
View file @
26bbb950
...
...
@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Date: 2019-09-10 18:26:03
* @LastEditors: zhangleyuan
* @LastEditTime: 2020-12-0
4 15:30:49
* @LastEditTime: 2020-12-0
7 16:46:18
* @Description:
*/
import
React
,
{
useContext
,
useEffect
,
useState
}
from
'react'
;
...
...
@@ -62,8 +62,8 @@ function Header(){
}
function
handleLogoutConfirm
(){
return
confirm
({
title
:
"你确定要
删除此讲师
吗?"
,
content
:
"
删除后,讲师将不能登录系统,此操作不能被撤销
"
,
title
:
"你确定要
退出登录
吗?"
,
content
:
"
退出后,需重新登录
"
,
icon
:
<
QuestionCircleOutlined
/>,
okText
:
"删除"
,
okType
:
"danger"
,
...
...
src/modules/store-manege/CourseCatalogPage.less
View file @
26bbb950
.course-catalog-page{
.child-table{
thead{
display:none;
}
}
}
\ No newline at end of file
src/modules/store-manege/CourseCatalogPage.tsx
View file @
26bbb950
...
...
@@ -18,7 +18,7 @@ import "./CourseCatalogPage.less";
import
User
from
'@/common/js/user'
;
const
{
confirm
}
=
Modal
;
interface
RecordTypes
{
child
ren
:
any
;
child
:
any
;
}
function
CourseCatalogPage
()
{
...
...
@@ -133,7 +133,7 @@ function CourseCatalogPage() {
listData
.
map
((
item
:
any
,
index
:
any
)
=>
{
item
.
type
=
"parent"
item
.
key
=
item
.
id
;
item
.
child
ren
=
[];
item
.
child
=
[];
return
item
})
...
...
@@ -157,21 +157,20 @@ function CourseCatalogPage() {
parentId
,
}
StoreService
.
getAllSonCategory
(
param
).
then
((
res
:
any
)
=>
{
record
.
child
ren
=
res
.
result
||
[];
record
.
child
ren
.
map
((
item
:
any
,
index
:
any
)
=>
{
record
.
child
=
res
.
result
||
[];
record
.
child
.
map
((
item
:
any
,
index
:
any
)
=>
{
item
.
key
=
item
.
id
return
item
})
const
_courseCatalogList
=
[...
courseCatalogList
];
console
.
log
(
"_courseCatalogList"
,
_courseCatalogList
);
setCourseCatalogList
(
_courseCatalogList
)
});
}
return
(
<
div
className=
" page
employee-manage
-page"
>
<
div
className=
" page
course-catalog
-page"
>
<
div
className=
"page-content"
>
<
div
className=
"content-header"
>
员工管理
</
div
>
<
div
className=
"box"
>
...
...
@@ -188,11 +187,14 @@ function CourseCatalogPage() {
<
Table
columns=
{
parseColumn
()
}
pagination=
{
false
}
expandedRowRender=
{
(
record
:
RecordTypes
)
=>
{
if
(
!
record
.
child
ren
){
if
(
!
record
.
child
){
return
}
if
(
record
.
children
.
length
===
0
){
if
(
record
.
child
.
length
!==
0
){
return
<
Table
columns=
{
parseColumn
()
}
dataSource=
{
record
.
child
}
pagination=
{
false
}
className=
"child-table"
/>
}
else
{
return
<
div
>
还未添加任何子分类
</
div
>;
}
}
}
...
...
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