Commit 9482011c by chenshu

feat:完善各页面

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