Commit 67e009cb authored by cellee's avatar cellee

403页面样式修改,权限等级编辑、详情展示修改

Signed-off-by: cellee's avatarcellee <893264950@qq.com>
parent f88fc16d
...@@ -3,16 +3,22 @@ import React from 'react'; ...@@ -3,16 +3,22 @@ import React from 'react';
import { history } from 'umi'; import { history } from 'umi';
const NoFoundPage: React.FC<{}> = () => ( const NoFoundPage: React.FC<{}> = () => (
<Result <div style={{ textAlign: 'center', paddingBottom: 50 }}>
status="403" <Result
title="403" status="403"
subTitle="Sorry, you are not authorized to access this page." // title="403"
extra={ subTitle=""
<Button type="primary" onClick={() => history.push('/')}> >
Back Home <div className="desc">
</Button> <p style={{ color: '#f00', textTransform: 'capitalize' }}>
} Sorry, you are not authorized to access this page.
/> </p>
</div>
</Result>
<Button type="primary" onClick={() => history.push('/')}>
Back Home
</Button>
</div>
); );
export default NoFoundPage; export default NoFoundPage;
import React, { useState, useEffect, useRef } from 'react'; import React, { useState, useEffect, useRef } from 'react';
import { Form, Input, Button, message, Descriptions, Spin, Tree, Radio, Select, Modal } from 'antd'; import { Form, Input, Button, message, Descriptions, Spin, Tree, Tag, Select, Modal } from 'antd';
import { connect, history } from 'umi'; import { connect, history } from 'umi';
import { EditOutlined, LeftOutlined, ExclamationCircleOutlined } from '@ant-design/icons'; import {
EditOutlined,
LeftOutlined,
ExclamationCircleOutlined,
ApartmentOutlined,
} from '@ant-design/icons';
import './Account.less'; import './Account.less';
import { zhCnFaci, enUsFaci } from '@/utils/power'; import { zhCnFaci, enUsFaci } from '@/utils/power';
...@@ -404,32 +409,22 @@ const Account = (props: any) => { ...@@ -404,32 +409,22 @@ const Account = (props: any) => {
<div className="label"> <div className="label">
<span className="title">Privilege Level:</span> <span className="title">Privilege Level:</span>
</div> </div>
<div className="label"> <div className="label" style={{ lineHeight: '32px' }}>
<Radio.Group value={values} onChange={onRadio}> {values == 2 ? (
<Radio style={radioStyle} disabled value={2}> <Tag color="processing" icon={<ApartmentOutlined />}>
Two Level Administrator Two Level
</Radio> </Tag>
<Radio style={radioStyle} disabled value={3}> ) : (
Three Level Administrator <Tag color="processing" icon={<ApartmentOutlined />}>
</Radio> Three Level
</Radio.Group> </Tag>
)}
{/* 选择挂靠的二级菜单 */} {/* 选择挂靠的二级菜单 */}
{values === 3 && user.currentUser.userModel.tosUserLevel <= 1 ? ( {values === 3 ? (
<Select <Tag color="default">
style={{ width: 260 }} {DataSave.userLeaderAccountName}--{DataSave.userLeaderName}
placeholder="Please select affiliated account" </Tag>
disabled
defaultValue={DataSave.userLeader}
>
{DataSave ? (
<Option key={DataSave.userLeader} value={DataSave.userLeader}>
{DataSave.userLeaderAccountName}-{DataSave.userLeaderName}
</Option>
) : (
''
)}
</Select>
) : ( ) : (
'' ''
)} )}
......
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