Commit 9482011c by chenshu

feat:完善各页面

parent 27c210a8
...@@ -106,7 +106,7 @@ export default class CollegeManagePage extends React.Component { ...@@ -106,7 +106,7 @@ export default class CollegeManagePage extends React.Component {
{list.map((item) => ( {list.map((item) => (
<div <div
key={item.id} key={item.id}
className={`college-item${item.state === 'VALID' ? '' : ' disabled'}`} className={`college-item${item.state === 'VALID' ? '' : ' disabled'}${item.userRole === 'StoreManager' ? ' enabled' : ''}`}
onClick={() => { onClick={() => {
if (item.state !== 'VALID') { if (item.state !== 'VALID') {
message.warning('学院已停用,请启用后使用或联系学院管理员'); message.warning('学院已停用,请启用后使用或联系学院管理员');
...@@ -134,7 +134,7 @@ export default class CollegeManagePage extends React.Component { ...@@ -134,7 +134,7 @@ export default class CollegeManagePage extends React.Component {
}} }}
>编辑</span> >编辑</span>
} }
{(item.userRole === 'StoreManager' || item.state === 'VALID') && {(item.userRole === 'StoreManager' || item.state !== 'VALID') &&
<span <span
className="control-button" className="control-button"
onClick={(e) => { onClick={(e) => {
......
...@@ -161,6 +161,8 @@ ...@@ -161,6 +161,8 @@
color: #CCCCCC; color: #CCCCCC;
} }
} }
}
&.enabled {
&:hover { &:hover {
.control-button { .control-button {
display: none; display: none;
......
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