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
18bcb4fc
Commit
18bcb4fc
authored
May 08, 2021
by
chenshu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复列表
parent
1166bcec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
src/modules/root/App.tsx
+4
-2
src/modules/root/CollegeManagePage.jsx
+12
-11
No files found.
src/modules/root/App.tsx
View file @
18bcb4fc
...
...
@@ -40,6 +40,10 @@ const App: React.FC = (props: any) => {
}
},
[])
useEffect
(()
=>
{
getStorePermission
();
},
[
window
.
location
.
hash
])
function
getStorePermission
()
{
const
params
=
{
storeId
:
User
.
getStoreId
(),
...
...
@@ -72,7 +76,6 @@ const App: React.FC = (props: any) => {
User
.
setStoreType
(
storeType
);
setStoreUserId
(
storeUserId
)
getUserPermission
();
getStorePermission
();
})
}
...
...
@@ -98,7 +101,6 @@ const App: React.FC = (props: any) => {
ctx
.
dispatch
(
setStoreList
(
storeVOS
));
setStoreUserId
(
storeUserId
)
getUserPermission
();
getStorePermission
();
});
}
...
...
src/modules/root/CollegeManagePage.jsx
View file @
18bcb4fc
...
...
@@ -74,7 +74,17 @@ export default class CollegeManagePage extends React.Component {
okText
:
'我知道了'
,
})
}
else
{
this
.
changeCollege
(
item
,
bool
);
Modal
.
confirm
({
title
:
'确定停用吗?'
,
content
:
'停用学院,所有学院相关信息不可使用,用户无法继续学习,请谨慎操作!'
,
icon
:
<
span
className=
"icon iconfont default-confirm-icon"
>

</
span
>,
onOk
:
()
=>
{
this
.
changeCollege
(
item
,
bool
);
},
okText
:
'停用'
,
cancelText
:
'取消'
,
})
}
})
}
...
...
@@ -182,16 +192,7 @@ export default class CollegeManagePage extends React.Component {
if
(
item
.
state
!==
'VALID'
)
return
null
;
e
.
preventDefault
();
e
.
stopPropagation
();
Modal
.
confirm
({
title
:
'确定停用吗?'
,
content
:
'停用学院,所有学院相关信息不可使用,用户无法继续学习,请谨慎操作!'
,
icon
:
<
span
className=
"icon iconfont default-confirm-icon"
>

</
span
>,
onOk
:
()
=>
{
this
.
checkCollege
(
item
,
false
);
},
okText
:
'停用'
,
cancelText
:
'取消'
,
})
this
.
checkCollege
(
item
,
false
);
}
}
>
{
item
.
state
===
'VALID'
?
'停用'
:
'已停用'
}
</
span
>
}
...
...
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