parent
214f93d0ad
commit
201ad07cd0
@ -0,0 +1,29 @@
|
|||||||
|
.page {
|
||||||
|
.title {
|
||||||
|
height: 36px;
|
||||||
|
background: #e3effc;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 0 20px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #464f66;
|
||||||
|
|
||||||
|
i {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.box {
|
||||||
|
height: 500px;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
border-top: 1px solid #ebf3ff;
|
||||||
|
height: 58px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 0 20px;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,49 @@
|
|||||||
|
import styles from './index.less';
|
||||||
|
import {
|
||||||
|
InputNumber,
|
||||||
|
Input,
|
||||||
|
Button,
|
||||||
|
Select,
|
||||||
|
Row,
|
||||||
|
Modal,
|
||||||
|
Form,
|
||||||
|
message,
|
||||||
|
Empty,
|
||||||
|
Spin,
|
||||||
|
} from 'antd';
|
||||||
|
import Fetch from '@/utils/fetch';
|
||||||
|
import { useEffect, useState, FC, useRef } from 'react';
|
||||||
|
import { Link } from 'umi';
|
||||||
|
import { downLoadLink } from '@/utils/download';
|
||||||
|
import url from '@/utils/url';
|
||||||
|
import ReactEcharts from 'echarts-for-react';
|
||||||
|
|
||||||
|
interface PageProps {}
|
||||||
|
|
||||||
|
const Page: FC<PageProps> = () => {
|
||||||
|
const [data, setData] = useState<any>([]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
getData();
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const getData = async () => {
|
||||||
|
const res = await Fetch('/openi/secretKey/statistics', {
|
||||||
|
method: 'get',
|
||||||
|
params: {},
|
||||||
|
});
|
||||||
|
if (res.result === 'success') {
|
||||||
|
setData(res?.data?.[0]);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className={styles.page}>
|
||||||
|
<div className={styles.title}>
|
||||||
|
<span>厂商信息管理资源列表 </span>
|
||||||
|
<i onClick={() => getData()} className="iconfont icon-a-shuaxin2" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
export default Page;
|
@ -0,0 +1,61 @@
|
|||||||
|
.page {
|
||||||
|
width: 1200px;
|
||||||
|
margin: 22px auto;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
.left {
|
||||||
|
width: 146px;
|
||||||
|
height: 334px;
|
||||||
|
background: #ffffff;
|
||||||
|
border-radius: 4px;
|
||||||
|
padding-top: 18px;
|
||||||
|
|
||||||
|
> div {
|
||||||
|
height: 44px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #464f66;
|
||||||
|
padding: 20px 0;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
b {
|
||||||
|
display: inline-block;
|
||||||
|
width: 3px;
|
||||||
|
height: 16px;
|
||||||
|
background: @primary-color;
|
||||||
|
margin-right: 17px;
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: @primary-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
i {
|
||||||
|
padding-right: 10px;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.active {
|
||||||
|
color: @primary-color;
|
||||||
|
|
||||||
|
b {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
i {
|
||||||
|
color: @primary-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.right {
|
||||||
|
width: 1034px;
|
||||||
|
border-radius: 4px;
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,49 @@
|
|||||||
|
import styles from './index.less';
|
||||||
|
import { history } from 'umi';
|
||||||
|
|
||||||
|
const Page = ({ ...props }) => {
|
||||||
|
const pathname = props.location.pathname;
|
||||||
|
|
||||||
|
const item: any = [
|
||||||
|
{
|
||||||
|
icon: 'iconfont icon-zhucedengji',
|
||||||
|
name: '注册登记',
|
||||||
|
key: '/register',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: 'iconfont icon-peifaguanli',
|
||||||
|
name: '型号管理',
|
||||||
|
key: '/model',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: 'iconfont icon-suanfacanshuziyuan',
|
||||||
|
name: '配发管理',
|
||||||
|
key: '/allotment',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: 'iconfont icon-changshangxinxiguanli',
|
||||||
|
name: '厂商信息管理',
|
||||||
|
key: '/manufacturer',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className={styles.page}>
|
||||||
|
<div className={styles.left}>
|
||||||
|
{item.map((e: any) => (
|
||||||
|
<div
|
||||||
|
key={e.key}
|
||||||
|
className={pathname?.includes(e.key) ? styles.active : ''}
|
||||||
|
onClick={() => history.push(e.key)}
|
||||||
|
>
|
||||||
|
<b />
|
||||||
|
<i className={e.icon} />
|
||||||
|
{e.name}
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
<div className={styles.right}>{props.children}</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
export default Page;
|
Loading…
Reference in new issue