parent
2b74bdbce9
commit
8b9c4d08d7
@ -0,0 +1,71 @@
|
||||
.page {
|
||||
background-color: #fff;
|
||||
width: 1200px;
|
||||
margin: 0 auto;
|
||||
min-height: 600px;
|
||||
overflow: hidden;
|
||||
padding-bottom: 20px;
|
||||
|
||||
.name {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 50px;
|
||||
margin-top: 30px;
|
||||
|
||||
b {
|
||||
width: 6px;
|
||||
height: 20px;
|
||||
background: #464f66;
|
||||
border-radius: 4px;
|
||||
display: inline-block;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 24px;
|
||||
font-weight: 500;
|
||||
color: #232b40;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-left: 60px;
|
||||
margin-bottom: 10px;
|
||||
|
||||
b {
|
||||
width: 4px;
|
||||
height: 14px;
|
||||
background: #464f66;
|
||||
border-radius: 4px;
|
||||
display: inline-block;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
color: #464f66;
|
||||
}
|
||||
}
|
||||
|
||||
.row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 15px 0;
|
||||
|
||||
span {
|
||||
margin: 0 10px;
|
||||
width: 50%;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
span:first-child {
|
||||
text-align: right;
|
||||
color: #464f66;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,106 @@
|
||||
import styles from './index.less';
|
||||
import { Button, Row, message } from 'antd';
|
||||
import { FC } from 'react';
|
||||
import Fetch from '@/utils/fetch';
|
||||
import { connect, Dispatch, BasicInfoModelState, history } from 'umi';
|
||||
|
||||
interface PageProps {
|
||||
basic: BasicInfoModelState;
|
||||
dispatch: Dispatch;
|
||||
}
|
||||
|
||||
const Page: FC<PageProps> = ({ basic, dispatch }) => {
|
||||
const { certificateInfo } = basic;
|
||||
const { step, result } = certificateInfo;
|
||||
|
||||
const handleClick = async () => {
|
||||
const res = await Fetch('/openi/resource/openCertNow', {
|
||||
method: 'post',
|
||||
data: certificateInfo,
|
||||
});
|
||||
if (res.result === 'success') {
|
||||
message.success('开通证书系统成功');
|
||||
history.replace('/basic/login');
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<div
|
||||
style={{ display: step === 4 ? 'block' : 'none' }}
|
||||
className={styles.page}
|
||||
>
|
||||
<div className={styles.name}>
|
||||
<b /> <span>发布配置</span>
|
||||
</div>
|
||||
|
||||
<div className={styles.title}>
|
||||
<b /> <span>ECCDSA359颁发机构信息</span>
|
||||
</div>
|
||||
<div className={styles.row}>
|
||||
<span>颁发证书主题</span>
|
||||
<span>{result?.[0]}</span>
|
||||
</div>
|
||||
<div className={styles.row}>
|
||||
<span>证书序列号</span>
|
||||
<span>{result?.[1]}</span>
|
||||
</div>
|
||||
<div className={styles.row}>
|
||||
<span>证书主题</span>
|
||||
<span>{result?.[2]}</span>
|
||||
</div>
|
||||
<div className={styles.row}>
|
||||
<span>起始时间</span>
|
||||
<span>{result?.[3]}</span>
|
||||
</div>
|
||||
<div className={styles.row}>
|
||||
<span>结束时间</span>
|
||||
<span>{result?.[4]}</span>
|
||||
</div>
|
||||
|
||||
<div className={styles.title}>
|
||||
<b /> <span>ECCDSA281颁发机构信息</span>
|
||||
</div>
|
||||
<div className={styles.row}>
|
||||
<span>颁发证书主题</span>
|
||||
<span>{result?.[5]}</span>
|
||||
</div>
|
||||
<div className={styles.row}>
|
||||
<span>证书序列号</span>
|
||||
<span>{result?.[6]}</span>
|
||||
</div>
|
||||
<div className={styles.row}>
|
||||
<span>证书主题</span>
|
||||
<span>{result?.[7]}</span>
|
||||
</div>
|
||||
<div className={styles.row}>
|
||||
<span>起始时间</span>
|
||||
<span>{result?.[8]}</span>
|
||||
</div>
|
||||
<div className={styles.row}>
|
||||
<span>结束时间</span>
|
||||
<span>{result?.[9]}</span>
|
||||
</div>
|
||||
|
||||
<Row justify="end">
|
||||
<Button
|
||||
onClick={() => {
|
||||
dispatch({
|
||||
type: 'basic/setCertificateInfo',
|
||||
payload: { step: 3 },
|
||||
});
|
||||
}}
|
||||
type="primary"
|
||||
ghost
|
||||
>
|
||||
上一步
|
||||
</Button>
|
||||
<Button type="primary" ghost className="ml20" onClick={handleClick}>
|
||||
确认
|
||||
</Button>
|
||||
</Row>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
export default connect(({ basic }: { basic: BasicInfoModelState }) => ({
|
||||
basic,
|
||||
}))(Page);
|
Loading…
Reference in new issue