master_basic
鲁誉程 12 months ago
parent 5768e1e7b3
commit 0afb034377

@ -31,3 +31,11 @@
border: 1px solid #C2BFB8;
color: #65686E;
}
.special_btn {
background: linear-gradient(180deg, #F4FBFF 0%, #CFE9F6 100%);
box-shadow: 0px 1px 1px 0px rgba(177, 197, 218, 0.5);
border-radius: 4px;
border: 1px solid;
border-image: linear-gradient(180deg, rgba(208, 218, 231, 1), rgba(82, 99, 112, 0)) 1 1;
}

@ -26,6 +26,7 @@ const ButtonComp: FC<PageProps> = ({
{ type == 'confirm' && <div className={`${styles.btn} ${styles.confirm_btn}`} onClick={click}>{text}</div> }
{ type == 'cancel' && <div className={`${styles.btn} ${styles.cancel_btn}`} onClick={onClick}>{text}</div> }
{ type == 'delete' && <div className={`${styles.btn} ${styles.delete_btn}`} onClick={onClick}>{text}</div> }
{ type == 'special' && <div className={`${styles.btn} ${styles.special_btn}`} onClick={onClick}>{text}</div> }
</>
)
}

@ -95,7 +95,7 @@ export default function Page() {
</Form.Item>
</Form>
<div style={{display: 'flex', alignItems: 'center'}}>
<div className='flex_aC'>
<div className='mr20'>CtrlShift</div>
<ButtonComp text={'提交'} onClick={() => form.submit()} />
</div>

@ -67,7 +67,7 @@ export default function Page() {
</Form.Item>
</Form>
<div style={{ display: 'flex', justifyContent: 'flex-end', marginBottom: 30 }}>
<div className='flex_jE' style={{ marginBottom: 30 }}>
<ButtonComp text={'申请密钥体'} onClick={() => form.submit()} />
</div>

@ -1,9 +1,63 @@
import styles from './index.less';
import ContentWarp from '@/components/ContentWarp';
import styles from '../../../GLQ/index.less';
import { Form, Input, Select } from 'antd';
import ButtonComp from '@/components/ButtonComp';
export default function Page() {
const [form] = Form.useForm();
const formItemSty = { width: '31%', marginBottom: 20 };
const onFinish = (values: any) => {
console.log('表单提交:', values);
};
return (
<div>
<div className={styles.params_warp}>
<ContentWarp text={'明文密钥体载体包封'}>
<div className='pd20' style={{paddingBottom: 30}}>
<Form form={form} layout={'inline'} onFinish={onFinish} className='mt20'>
<Form.Item name="aaa" label="载体类型" style={formItemSty}>
<Select style={{ width: 260 }} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} />
</Form.Item>
<Form.Item name="aaa" label="载体型号" style={formItemSty}>
<Select style={{ width: 260 }} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} />
</Form.Item>
<Form.Item name="sss" label="文件路径" style={{ width: '80%', marginBottom: 20 }}>
<div style={{ display: 'flex' }}>
<Input style={{ width: 500 }} />
<div style={{ display: 'flex', marginLeft: 20 }}>
<ButtonComp type={'cancel'} text={'选择'} onClick={() => { }} />
</div>
</div>
</Form.Item>
</Form>
<div className='flex_jE mb20'>
<ButtonComp text={'包封'} onClick={() => form.submit()} />
</div>
<ContentWarp text={'包封结果'}>
<div className='pd20'>
<div className='flex_aC'>
<div style={{ marginRight: 30 }}></div>
<Select style={{ width: 260 }} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} />
<div className='ml20' style={{ marginRight: 30 }}></div>
<Select style={{ width: 260 }} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} />
</div>
<div className='flex_aC mt20'>
<div className='mr16' ></div>
<Select style={{ width: 260 }} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} />
<div className='mr16 ml20' ></div>
<Select style={{ width: 260 }} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} />
</div>
</div>
</ContentWarp>
</div>
</ContentWarp>
</div>
);
}

@ -37,7 +37,7 @@ export default function Page() {
activeTab={activeTab}
onChange={(e) => setActiveTab(e)} />
<div style={{ display: 'flex', justifyContent: 'flex-end', marginBottom: 20 }}>
<div className='flex_jE mb20'>
<ButtonComp type={'cancel'} text={'刷新'} onClick={() => { }} />
</div>

@ -1,9 +1,105 @@
import styles from './index.less';
import TabsComp from '@/components/TabsComp';
import styles from '../../../GLQ/index.less';
import { useState } from 'react';
import { ConfigProvider, Form, Input, Radio, Select, Table } from 'antd';
import { tableTheme } from '@/utils/theme';
import { rowClassName } from '@/utils';
import ButtonComp from '@/components/ButtonComp';
export default function Page() {
const [activeTab, setActiveTab] = useState(1)
const [tableData, setTableData] = useState([]);
const columns: any = [
{ title: '配发类型', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '产品名称', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '产品编号', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '操作员', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '操作时间', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '三联单号', dataIndex: 'name', key: 'name', align: 'center' }
]
const columns1: any = [
{ title: '密码种类', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '套数', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '编号', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '载体类型', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '载体数量', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '载体编号', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '备注', dataIndex: 'name', key: 'name', align: 'center' }
]
return (
<div>
<div className={`${styles.params_warp}`}>
<TabsComp
dataSource={[{ id: 1, name: '密钥体配发三联单' }]}
activeTab={activeTab}
onChange={(e) => setActiveTab(e)} />
<div className='flex_aC mb20' >
<div style={{ marginRight: 12 }}></div>
<Select style={{ width: 260 }} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} />
</div>
<ConfigProvider theme={tableTheme}>
<Table
scroll={{ y: 41 * 9 }}
pagination={false}
bordered
columns={columns}
dataSource={tableData}
rowKey={(record: any) => record?.id}
rowClassName={rowClassName}
/>
</ConfigProvider>
<div className='flex_jE mt20 mb20'>
<ButtonComp text={'添加'} onClick={() => { }} />
</div>
<div className='mb20' style={{ height: 1, background: '#EDEDED' }}></div>
<div className='mb20 flex_aC' >
<div style={{ marginRight: 12 }}></div>
<Select style={{ width: 260, marginRight: 20 }} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} />
<ButtonComp text={'查询'} onClick={() => { }} />
</div>
<div className='flex_aC_jS mb20 mt20'>
<div> --</div>
<div>--</div>
</div>
<ConfigProvider theme={tableTheme}>
<Table
scroll={{ y: 41 * 9 }}
pagination={false}
bordered
columns={columns1}
dataSource={tableData}
rowKey={(record: any) => record?.id}
rowClassName={rowClassName}
/>
</ConfigProvider>
<div className='mb20 mt20 flex_aC' >
<div style={{ marginRight: 12 }}></div>
<Input style={{ width: 260, marginRight: 50 }} />
<div>--</div>
</div>
<div className='flex_aC_jS mt20'>
<ButtonComp text={'添加'} onClick={() => { }} />
<div className='flex_jE'>
<ButtonComp type={'cancel'} text={'移出'} onClick={() => {}} />
<div className='mr20'></div>
<ButtonComp type={'cancel'} text={'制作'} onClick={() => {}} />
<div className='mr20'></div>
<ButtonComp type={'cancel'} text={'预览'} onClick={() => {}} />
<div className='mr20'></div>
<ButtonComp type={'cancel'} text={'打印'} onClick={() => {}} />
</div>
</div>
</div>
);
}

@ -21,14 +21,20 @@ export default function Page() {
return <span>{index + 1}</span>;
},
},
{title: '编号', dataIndex: 'name', key: 'name', align: 'center' },
{title: '密钥分发平台名称', dataIndex: 'name', key: 'name', align: 'center' },
{title: '密钥分发平台实体标识', dataIndex: 'name', key: 'name', align: 'center' },
{title: '产品名称', dataIndex: 'name', key: 'name', align: 'center' },
{title: '产品编号', dataIndex: 'name', key: 'name', align: 'center' },
{title: '载体类型', dataIndex: 'name', key: 'name', align: 'center' },
{title: '载体型号', dataIndex: 'name', key: 'name', align: 'center' },
{title: '数量', dataIndex: 'name', key: 'name', align: 'center' },
{title: '来源', dataIndex: 'name', key: 'name', align: 'center' },
{title: '当前状态', dataIndex: 'name', key: 'name', align: 'center' },
{title: '导入时间', dataIndex: 'name', key: 'name', align: 'center' }
{title: '总数量', dataIndex: 'name', key: 'name', align: 'center' },
{title: '已下载数量', dataIndex: 'name', key: 'name', align: 'center' },
{title: '授权', dataIndex: 'name', key: 'name', align: 'center' },
{title: '优先级', dataIndex: 'name', key: 'name', align: 'center' },
{title: '结束时间', dataIndex: 'name', key: 'name', align: 'center' },
{title: '通知标志', dataIndex: 'name', key: 'name', align: 'center' },
{title: '删除标志', dataIndex: 'name', key: 'name', align: 'center' }
]
const formItemSty = { width: '32%', marginBottom: 20 };
@ -77,7 +83,7 @@ export default function Page() {
</Form.Item>
</Form>
<div className='mb20' style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
<div className='mb20 flex_aC_jS'>
<div></div>
<ButtonComp type={'cancel'} text={'配发'} onClick={() => { }} />
</div>

@ -32,7 +32,7 @@ export default function Page() {
activeTab={activeTab}
onChange={(e) => setActiveTab(e)} />
<div className='mb20' style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
<div className='mb20 flex_aC_jS'>
<div></div>
<div style={{display: 'flex'}}>
<ButtonComp type={'cancel'} text={'密钥体格式导入'} onClick={() => { }} />

@ -61,13 +61,13 @@ export default function Page() {
</Form.Item>
</Form>
<div style={{ display: 'flex', justifyContent: 'flex-end', marginBottom: 30 }}>
<div className='flex_jE' style={{ marginBottom: 30 }}>
<ButtonComp type={'cancel'} text={'发布'} onClick={() => { }} />
<div className='mr20'></div>
<ButtonComp text={'查询'} onClick={() => form.submit()} />
</div>
<div className='mb20' style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
<div className='mb20 flex_aC_jS'>
<div></div>
<ButtonComp type={'cancel'} text={'全部'} onClick={() => { }} />
</div>

@ -62,13 +62,13 @@ export default function Page() {
</Form.Item>
</Form>
<div style={{ display: 'flex', justifyContent: 'flex-end', marginBottom: 30 }}>
<div className='flex_jE' style={{ marginBottom: 30 }}>
<ButtonComp type={'cancel'} text={'导入'} onClick={() => { }} />
<div className='mr20'></div>
<ButtonComp text={'查询'} onClick={() => form.submit()} />
</div>
<div className='mb20' style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
<div className='mb20 flex_aC_jS'>
<div></div>
<ButtonComp type={'cancel'} text={'全部'} onClick={() => { }} />
</div>

@ -1,9 +1,54 @@
import styles from './index.less';
import ContentWarp from '@/components/ContentWarp';
import styles from '../../../GLQ/index.less';
import { Form, Input, Select } from 'antd';
import ButtonComp from '@/components/ButtonComp';
export default function Page() {
return (
<div>
const [form] = Form.useForm();
const formItemSty = { width: '31%', marginBottom: 20 };
const onFinish = (values: any) => {
console.log('表单提交:', values);
};
return (
<div className={styles.params_warp}>
<ContentWarp text={'明文密钥体载体包封'}>
<div className='pd20 pb100'>
<Form form={form} layout={'inline'} onFinish={onFinish} className='mt20'>
<Form.Item name="aaa" label="产品名称" style={formItemSty}>
<Input style={{ width: 260 }} />
</Form.Item>
<Form.Item name="aaa" label="产品编号" style={formItemSty}>
<Input style={{ width: 260 }} />
</Form.Item>
<Form.Item name="aaa" label="载体编号" style={formItemSty}>
<Input style={{ width: 260 }} />
</Form.Item>
<Form.Item name="aaa" label="载体类型" style={formItemSty}>
<Select style={{ width: 260 }} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} />
</Form.Item>
<Form.Item name="aaa" label="载体型号" style={formItemSty}>
<Select style={{ width: 260 }} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} />
</Form.Item>
<Form.Item name="sss" label="文件路径" style={{ width: '80%', marginBottom: 20 }}>
<div style={{ display: 'flex' }}>
<Input style={{ width: 500 }} />
<div style={{ display: 'flex', marginLeft: 20 }}>
<ButtonComp type={'cancel'} text={'选择'} onClick={() => { }} />
</div>
</div>
</Form.Item>
<Form.Item name="aaa" label="载体位置" style={formItemSty}>
<Select style={{ width: 260 }} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} />
</Form.Item>
</Form>
<div className={styles.btn_warp}>
<ButtonComp text={'包封'} onClick={() => form.submit()} />
</div>
</div>
</ContentWarp>
</div>
);
}

@ -46,7 +46,7 @@ export default function Page() {
activeTab={activeTab}
onChange={(e) => setActiveTab(e)} />
<div className='mb20' style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
<div className='mb20 flex_aC_jS'>
<Radio.Group>
<Radio value="1" style={{ marginRight: 100 }}> </Radio>
<Radio value="2"> </Radio>
@ -66,7 +66,7 @@ export default function Page() {
/>
</ConfigProvider>
<div style={{ display: 'flex', justifyContent: 'flex-end', margin: '20px 0' }}>
<div className='flex_jE mt20 mb20'>
<ButtonComp text={'添加'} onClick={() => { }} />
</div>
@ -103,7 +103,7 @@ export default function Page() {
/>
</ConfigProvider>
<div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: 20}}>
<div className='flex_jE mt20'>
<ButtonComp type={'cancel'} text={'移出'} onClick={() => form.submit()} />
<div className='mr20'></div>
<ButtonComp type={'cancel'} text={'制作'} onClick={() => form.submit()} />

@ -69,7 +69,7 @@ export default function Page() {
</Form.Item>
</Form>
<div className='mb20' style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
<div className='mb20 flex_aC_jS'>
<div></div>
<ButtonComp type={'cancel'} text={'配发'} onClick={() => { }} />
</div>

@ -1,9 +1,98 @@
import styles from './index.less';
import TabsComp from '@/components/TabsComp';
import styles from '../../../GLQ/index.less';
import { useState } from 'react';
import { ConfigProvider, Form, Input, Radio, Select, Table } from 'antd';
import { tableTheme } from '@/utils/theme';
import { rowClassName } from '@/utils';
import ButtonComp from '@/components/ButtonComp';
export default function Page() {
const [activeTab, setActiveTab] = useState(1)
const [tableData, setTableData] = useState([]);
const columns: any = [
{ title: '执勤区名称', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '执勤区标识', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '所属网络', dataIndex: 'name', key: 'name', align: 'center' },
{ title: 'IP地址', dataIndex: 'name', key: 'name', align: 'center' },
]
const columns1: any = [
{
title: '序号',
key: 'index',
align: 'center',
width: 100,
render: (text: any, record: any, index: any) => {
return <span>{index + 1}</span>;
},
},
{ title: '产品名称', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '产品编号', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '配发管理系统名称', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '配发管理系统实体标识', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '操作时间', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '同步状态', dataIndex: 'name', key: 'name', align: 'center' }
]
return (
<div>
<div className={`${styles.params_warp}`}>
<TabsComp
dataSource={[{ id: 1, name: '向专用密码管理系统配发密钥体' }]}
activeTab={activeTab}
onChange={(e) => setActiveTab(e)} />
<div style={{ display: 'flex' }}>
<ButtonComp type={'special'} text={'向专用密码管理系统配发密钥体'} onClick={() => { }} />
</div>
<div className='flex_aC mt20 mb20'>
<div style={{ marginRight: 12 }}></div>
<Select style={{ width: 260 }} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} />
<div className='ml20' style={{ marginRight: 12 }}></div>
<Select style={{ width: 260 }} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} />
<div className='ml20' style={{ marginRight: 12 }}></div>
<Select style={{ width: 260 }} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} />
<div className='mr20 ml20'>
<ButtonComp text={'添加'} onClick={() => { }} />
</div>
<ButtonComp text={'查询'} onClick={() => { }} />
</div>
<div className='flex_jE mt20 mb20'>
<ButtonComp text={'同步'} onClick={() => { }} />
</div>
<ConfigProvider theme={tableTheme}>
<Table
scroll={{ y: 41 * 9 }}
pagination={false}
bordered
columns={columns}
dataSource={tableData}
rowKey={(record: any) => record?.id}
rowClassName={rowClassName}
/>
</ConfigProvider>
<div className='mb20' style={{ height: 1, background: '#EDEDED' }}></div>
<div className='mb20 flex_aC_jS'>
<div></div>
<ButtonComp type={'cancel'} text={'全部'} onClick={() => { }} />
</div>
<ConfigProvider theme={tableTheme}>
<Table
scroll={{ y: 41 * 9 }}
pagination={false}
bordered
columns={columns1}
dataSource={tableData}
rowKey={(record: any) => record?.id}
rowClassName={rowClassName}
/>
</ConfigProvider>
</div>
);
}

@ -1,9 +1,51 @@
import styles from './index.less';
import styles from '../../../GLQ/index.less';
import { useState } from 'react';
import { ConfigProvider, Table } from 'antd';
import { tableTheme } from '@/utils/theme';
import { rowClassName } from '@/utils';
import ButtonComp from '@/components/ButtonComp';
export default function Page() {
const [tableData, setTableData] = useState([]);
const columns: any = [
{
title: '序号',
key: 'index',
align: 'center',
width: 100,
render: (text: any, record: any, index: any) => {
return <span>{index + 1}</span>;
},
},
{ title: '管理盘号', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '密钥种类', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '当前版本号', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '导入时间', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '数据长度', dataIndex: 'name', key: 'name', align: 'center' }
]
return (
<div>
<div className={`${styles.params_warp}`}>
<div style={{ display: 'flex' }}>
<ButtonComp type={'special'} text={'管理系统管理盘数据维护'} onClick={() => { }} />
</div>
<div className='flex_aC mt20 mb20'>
<ButtonComp text={'数据导入'} onClick={() => { }} />
</div>
<ConfigProvider theme={tableTheme}>
<Table
scroll={{ y: 41 * 10 }}
pagination={false}
bordered
columns={columns}
dataSource={tableData}
rowKey={(record: any) => record?.id}
rowClassName={rowClassName}
/>
</ConfigProvider>
</div>
);
}

@ -0,0 +1,54 @@
.center_w {
display: flex;
justify-content: center;
flex-wrap: wrap;
align-content: center;
}
.btn {
position: relative;
width: 40px;
height: 40px;
background: linear-gradient(180deg, #87CDEE 0%, #69C0E9 34%, #7ECDF2 51%, #56B9E6 63%, #81D7FE 100%);
box-shadow: 0px 2px 4px 0px #BDCDE2;
border-radius: 4px;
border: 1px solid rgba(76, 106, 118, 0.22);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
margin: 0 15%;
}
.no_btn {
width: 40px;
height: 40px;
background: #E2F3FA;
box-shadow: 0px 2px 4px 0px rgba(81,84,90,0.5);
border-radius: 4px;
border: 1px solid rgba(171, 207, 223, 0.22);
cursor: not-allowed;
.sjx {
border-left: 12px solid #9FB5BC;
}
.sjx1 {
border-left: 0px solid #9FB5BC;
border-right: 12px solid #9FB5BC;
}
}
.sjx {
width: 0;
height: 0;
border-left: 12px solid #fff;
border-bottom: 12px solid transparent;
border-top: 12px solid transparent;
transition: all 0.15s ease-in;
}
.sjx1 {
border-left: 0px solid #fff;
border-right: 12px solid #fff;
}

@ -1,9 +1,101 @@
import styles from './index.less';
import styles from '../../../GLQ/index.less';
import styles1 from './index.less';
import { useState } from 'react';
import { ConfigProvider, Select, Table } from 'antd';
import { tableTheme } from '@/utils/theme';
import { rowClassName } from '@/utils';
import ButtonComp from '@/components/ButtonComp';
export default function Page() {
const [tableData, setTableData] = useState([]);
const [tableData1, setTableData1] = useState([]);
let number = {
title: '序号',
key: 'index',
align: 'center',
width: 100,
render: (text: any, record: any, index: any) => {
return <span>{index + 1}</span>;
},
}
const columns: any = [
number,
{ title: '设备名称', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '管理实体标识', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '设备型号', dataIndex: 'name', key: 'name', align: 'center' }
]
const columns1: any = [
number,
{ title: '设备名称', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '管理实体标识', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '设备型号', dataIndex: 'name', key: 'name', align: 'center' }
]
return (
<div>
<div className={`${styles.params_warp}`}>
<div style={{ display: 'flex' }}>
<ButtonComp type={'special'} text={'管理系统管理盘数据维护'} onClick={() => { }} />
</div>
<div className='flex_aC mt20'>
<div className='mr16'></div>
<Select style={{ width: 260 }} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} />
</div>
<div className='flex_aC mt20 mb20'>
<ButtonComp text={'数据导入'} onClick={() => { }} />
</div>
<div className='flex_jS'>
{/* 左侧 */}
<div style={{ width: '45%' }}>
<div className='mb20' style={{ color: '#0087DA' }}></div>
<ConfigProvider theme={tableTheme}>
<Table
scroll={{ y: 41 * 10 }}
pagination={false}
bordered
columns={columns}
dataSource={tableData}
rowKey={(record: any) => record?.id}
rowClassName={rowClassName}
/>
</ConfigProvider>
</div>
{/* 中间 */}
<div className={`${styles1.center_w} mb20`}>
<div className={`${styles1.btn} ${tableData.length == 0 ? styles1.no_btn : ''}`} style={{ margin: 40 }}>
<div className={styles1.sjx} />
</div>
<div className={`${styles1.btn} ${tableData1.length == 0 ? styles1.no_btn : ''}`}>
<div className={`${styles1.sjx} ${styles1.sjx1}`} />
</div>
</div>
{/* 底部 */}
<div style={{ width: '45%' }}>
<div className='mb20' style={{ color: '#0087DA' }}></div>
<ConfigProvider theme={tableTheme}>
<Table
scroll={{ y: 41 * 10 }}
pagination={false}
bordered
columns={columns1}
dataSource={tableData1}
rowKey={(record: any) => record?.id}
rowClassName={rowClassName}
/>
</ConfigProvider>
</div>
</div>
<div className='flex_jE' style={{ marginTop: 30 }}>
<ButtonComp type={'cancel'} text={'取消'} onClick={() => { }} />
<div className='mr20'></div>
<ButtonComp text={'保存'} onClick={() => { }} />
</div>
</div>
);
}

@ -1,9 +1,81 @@
import styles from './index.less';
import TabsComp from '@/components/TabsComp';
import styles from '../../../GLQ/index.less';
import { useState } from 'react';
import { ConfigProvider, Form, Input, Radio, Select, Table } from 'antd';
import { tableTheme } from '@/utils/theme';
import { rowClassName } from '@/utils';
import ButtonComp from '@/components/ButtonComp';
export default function Page() {
const [activeTab, setActiveTab] = useState(1)
const [tableData, setTableData] = useState([]);
const columns: any = [
{ title: '载体类型', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '数量', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '载体编号', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '内含文件类型', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '文件内容', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '密码机型号', dataIndex: 'name', key: 'name', align: 'center' },
{ title: '备注', dataIndex: 'name', key: 'name', align: 'center' }
]
return (
<div>
<div className={`${styles.params_warp}`}>
<TabsComp
dataSource={[{ id: 1, name: '密钥配发三联单' }]}
activeTab={activeTab}
onChange={(e) => setActiveTab(e)} />
<div className='flex_aC mb20' >
<div style={{ marginRight: 12 }}></div>
<Select style={{ width: 260 }} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} />
</div>
<div className='mb20' style={{ height: 1, background: '#EDEDED' }}></div>
<div className='mb20 flex_aC' >
<div style={{ marginRight: 12 }}></div>
<Select style={{ width: 260, marginRight: 20 }} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} />
<ButtonComp text={'查询'} onClick={() => { }} />
</div>
<div className='flex_aC_jS mb20 mt20'>
<div> --</div>
<div>--</div>
</div>
<ConfigProvider theme={tableTheme}>
<Table
scroll={{ y: 41 * 9 }}
pagination={false}
bordered
columns={columns}
dataSource={tableData}
rowKey={(record: any) => record?.id}
rowClassName={rowClassName}
/>
</ConfigProvider>
<div className='mb20 mt20 flex_aC' >
<div style={{ marginRight: 12 }}></div>
<Input style={{ width: 260, marginRight: 50 }} />
<div>--</div>
</div>
<div className='flex_aC_jS mt20'>
<ButtonComp text={'添加'} onClick={() => { }} />
<div className='flex_jE'>
<ButtonComp type={'cancel'} text={'移出'} onClick={() => {}} />
<div className='mr20'></div>
<ButtonComp type={'cancel'} text={'制作'} onClick={() => {}} />
<div className='mr20'></div>
<ButtonComp type={'cancel'} text={'预览'} onClick={() => {}} />
<div className='mr20'></div>
<ButtonComp type={'cancel'} text={'打印'} onClick={() => {}} />
</div>
</div>
</div>
);
}

@ -26,6 +26,14 @@
margin-bottom: 10px;
}
.mr16 {
margin-right: 16px;
}
.ml16 {
margin-left: 16px;
}
.line {
width: 100%;
height: 1px;
@ -39,3 +47,24 @@
.odd-row {
background-color: #F3F5F7;
}
.flex_aC {
display: flex;
align-items: center;
}
.flex_jE {
display: flex;
justify-content: flex-end;
}
.flex_jS {
display: flex;
justify-content: space-between;
}
.flex_aC_jS {
display: flex;
align-items: center;
justify-content: space-between;
}

Loading…
Cancel
Save