master_basic
鲁誉程 1 year ago
parent 890c8a910e
commit 07c9b34a56

@ -1,7 +1,7 @@
import TabsComp from '@/components/TabsComp'; import TabsComp from '@/components/TabsComp';
import styles from '../../../GLQ/index.less'; import styles from '../../../GLQ/index.less';
import { useState } from 'react'; import { useState } from 'react';
import { ConfigProvider, Form, Select, Table } from 'antd'; import { ConfigProvider, Form, Input, Modal, Select, Table } from 'antd';
import { tableTheme } from '@/utils/theme'; import { tableTheme } from '@/utils/theme';
import { rowClassName } from '@/utils'; import { rowClassName } from '@/utils';
import ButtonComp from '@/components/ButtonComp'; import ButtonComp from '@/components/ButtonComp';
@ -9,11 +9,13 @@ import ButtonComp from '@/components/ButtonComp';
export default function Page() { export default function Page() {
const [activeTab, setActiveTab] = useState(1) const [activeTab, setActiveTab] = useState(1)
const [tableData, setTableData] = useState([]); const [tableData, setTableData] = useState([]);
const [visibility, setVisibility] = useState(false);
const [form] = Form.useForm(); const [form] = Form.useForm();
const columns: any = [ const columns: any = [
{title: '序号', {
title: '序号',
key: 'index', key: 'index',
align: 'center', align: 'center',
width: 100, width: 100,
@ -21,17 +23,17 @@ export default function Page() {
return <span>{index + 1}</span>; 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' }
] ]
const formItemSty = { width: '32%', marginBottom: 20 }; const formItemSty = { width: '32%', marginBottom: 20 };
const onFinish = (values: any) => { const onFinish = (values: any) => {
console.log('表单提交:', values); console.log('表单提交:', values);
@ -46,24 +48,24 @@ export default function Page() {
<Form form={form} layout={'inline'} onFinish={onFinish} className='mt20'> <Form form={form} layout={'inline'} onFinish={onFinish} className='mt20'>
<Form.Item name="aaa" label="密钥种类" style={formItemSty}> <Form.Item name="aaa" label="密钥种类" style={formItemSty}>
<Select style={{width: 260}} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} /> <Select style={{ width: 260 }} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} />
</Form.Item> </Form.Item>
<Form.Item name="aaa" label="产品名称" style={formItemSty}> <Form.Item name="aaa" label="产品名称" style={formItemSty}>
<Select style={{width: 260}} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} /> <Select style={{ width: 260 }} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} />
</Form.Item> </Form.Item>
<Form.Item name="aaa" label="载体类型" style={formItemSty}> <Form.Item name="aaa" label="载体类型" style={formItemSty}>
<Select style={{width: 260}} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} /> <Select style={{ width: 260 }} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} />
</Form.Item> </Form.Item>
<Form.Item name="aaa" label="载体型号" style={formItemSty}> <Form.Item name="aaa" label="载体型号" style={formItemSty}>
<Select style={{width: 260}} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} /> <Select style={{ width: 260 }} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} />
</Form.Item> </Form.Item>
<Form.Item name="aaa" label="产品名称" style={formItemSty}> <Form.Item name="aaa" label="产品名称" style={formItemSty}>
<Select style={{width: 260}} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} /> <Select style={{ width: 260 }} onChange={(e) => { }} options={[{ label: '选项1', value: 1 }]} />
</Form.Item> </Form.Item>
</Form> </Form>
<div className='flex_jE' style={{ marginBottom: 30 }}> <div className='flex_jE' style={{ marginBottom: 30 }}>
<ButtonComp style={{ marginRight: 20 }} type={'cancel'} text={'导入'} onClick={() => { }} /> <ButtonComp style={{ marginRight: 20 }} type={'cancel'} text={'导入'} onClick={() => setVisibility(true)} />
<ButtonComp text={'查询'} onClick={() => form.submit()} /> <ButtonComp text={'查询'} onClick={() => form.submit()} />
</div> </div>
@ -83,6 +85,35 @@ export default function Page() {
rowClassName={rowClassName} rowClassName={rowClassName}
/> />
</ConfigProvider> </ConfigProvider>
<Modal
title="请确认或者输入产品编号"
open={visibility}
centered
width={500}
onOk={() => { }}
onCancel={() => setVisibility(false)}
footer={null}>
<div>
<div className='mb20'>
1
<div> <Input style={{ width: 260 }} /></div>
</div>
<div className='mb20'>
2
<div>1</div>
<div className='flex_aC'>
<Input style={{ width: 260 }} /> <ButtonComp text={'选择'} onClick={() => { }} />
</div>
</div>
<div>3 </div>
<div>4 </div>
</div>
<div className='flex_jE mt20'>
<ButtonComp style={{marginRight: 20}} text={'确定'} onClick={() => { }} />
<ButtonComp type='cancel' text={'取消'} onClick={() => setVisibility(false)} />
</div>
</Modal>
</div> </div>
); );
} }

@ -1,12 +1,13 @@
import styles from '../../../GLQ/index.less'; import styles from '../../../GLQ/index.less';
import { useState } from 'react'; import { useState } from 'react';
import { ConfigProvider, Table } from 'antd'; import { ConfigProvider, Modal, Table } from 'antd';
import { tableTheme } from '@/utils/theme'; import { tableTheme } from '@/utils/theme';
import { rowClassName } from '@/utils'; import { rowClassName } from '@/utils';
import ButtonComp from '@/components/ButtonComp'; import ButtonComp from '@/components/ButtonComp';
export default function Page() { export default function Page() {
const [tableData, setTableData] = useState([]); const [tableData, setTableData] = useState([]);
const [visibility, setVisibility] = useState(false);
const columns: any = [ const columns: any = [
{ {
@ -30,7 +31,7 @@ export default function Page() {
<ButtonComp type={'special'} text={'管理系统管理盘数据维护'} onClick={() => { }} /> <ButtonComp type={'special'} text={'管理系统管理盘数据维护'} onClick={() => { }} />
<div className='flex_aC mt20 mb20'> <div className='flex_aC mt20 mb20'>
<ButtonComp text={'数据导入'} onClick={() => { }} /> <ButtonComp text={'数据导入'} onClick={() => setVisibility(true)} />
</div> </div>
<ConfigProvider theme={tableTheme}> <ConfigProvider theme={tableTheme}>
@ -44,6 +45,24 @@ export default function Page() {
rowClassName={rowClassName} rowClassName={rowClassName}
/> />
</ConfigProvider> </ConfigProvider>
<Modal
title="xx部一体化对称密码管理系统"
open={visibility}
centered
width={500}
onOk={() => { }}
onCancel={() => setVisibility(false)}
footer={null}>
<div>
<div>1 </div>
<div>2 </div>
<div>3 </div>
</div>
<div className='flex_jE mt20'>
<ButtonComp text={'确定'} onClick={() => { }} />
</div>
</Modal>
</div> </div>
); );
} }

@ -1,12 +1,13 @@
import styles from '../../../GLQ/index.less'; import styles from '../../../GLQ/index.less';
import { useState } from 'react'; import { useState } from 'react';
import { ConfigProvider, DatePicker, Radio, Select, Table } from 'antd'; import { ConfigProvider, DatePicker, Modal, Radio, Select, Table } from 'antd';
import { tableTheme } from '@/utils/theme'; import { tableTheme } from '@/utils/theme';
import { rowClassName } from '@/utils'; import { rowClassName } from '@/utils';
import ButtonComp from '@/components/ButtonComp'; import ButtonComp from '@/components/ButtonComp';
export default function Page() { export default function Page() {
const [tableData, setTableData] = useState([]); const [tableData, setTableData] = useState([]);
const [visibility, setVisibility] = useState(false);
const columns: any = [ const columns: any = [
{ title: '产品名称', dataIndex: 'name', key: 'name', align: 'center' }, { title: '产品名称', dataIndex: 'name', key: 'name', align: 'center' },
@ -75,7 +76,7 @@ export default function Page() {
</ConfigProvider> </ConfigProvider>
<div className='flex_jE mt20'> <div className='flex_jE mt20'>
<ButtonComp text={'装配'} onClick={() => { }} /> <ButtonComp text={'装配'} onClick={() => setVisibility(true)} />
</div> </div>
<div className='mb10 mt30'></div> <div className='mb10 mt30'></div>
@ -96,6 +97,29 @@ export default function Page() {
<ButtonComp type='cancel' style={{ marginRight: 20 }} text={'载体输出'} onClick={() => { }} /> <ButtonComp type='cancel' style={{ marginRight: 20 }} text={'载体输出'} onClick={() => { }} />
<ButtonComp type='cancel' text={'下载到邮箱'} onClick={() => { }} /> <ButtonComp type='cancel' text={'下载到邮箱'} onClick={() => { }} />
</div> </div>
<Modal
title="xx部一体化对称密码管理系统"
open={visibility}
centered
width={500}
onOk={() => { }}
onCancel={() => setVisibility(false)}
footer={null}>
<div>
<div className='mb20'>
1
<div className='ml20'>:</div>
<div className='ml20'> ZY310</div>
<div className='ml20'> 8151</div>
<div className='ml20'> 20231011</div>
</div>
<div>2 </div>
</div>
<div className='flex_jE mt20'>
<ButtonComp text={'确定'} onClick={() => { }} />
</div>
</Modal>
</div> </div>
); );
} }

@ -6,6 +6,10 @@
padding-bottom: 100px; padding-bottom: 100px;
} }
.ml20 {
margin-left: 20px;
}
.mr20 { .mr20 {
margin-right: 20px; margin-right: 20px;
} }

Loading…
Cancel
Save