From 07c9b34a565988594693e02896fccfcedeead766 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E8=AA=89=E7=A8=8B?= <2659568239@qq.com> Date: Mon, 4 Dec 2023 16:42:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/MY/KeyBodyManage/Import/index.tsx | 65 ++++++++++++++----- .../MY/KeyManage/DataMaintenance/index.tsx | 23 ++++++- src/pages/MY/KeyManage/ManageKeys/index.tsx | 28 +++++++- src/styles/minix.less | 4 ++ 4 files changed, 99 insertions(+), 21 deletions(-) diff --git a/src/pages/MY/KeyBodyManage/Import/index.tsx b/src/pages/MY/KeyBodyManage/Import/index.tsx index a490282..a3fd176 100644 --- a/src/pages/MY/KeyBodyManage/Import/index.tsx +++ b/src/pages/MY/KeyBodyManage/Import/index.tsx @@ -1,7 +1,7 @@ import TabsComp from '@/components/TabsComp'; import styles from '../../../GLQ/index.less'; 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 { rowClassName } from '@/utils'; import ButtonComp from '@/components/ButtonComp'; @@ -9,11 +9,13 @@ import ButtonComp from '@/components/ButtonComp'; export default function Page() { const [activeTab, setActiveTab] = useState(1) const [tableData, setTableData] = useState([]); + const [visibility, setVisibility] = useState(false); const [form] = Form.useForm(); const columns: any = [ - {title: '序号', + { + title: '序号', key: 'index', align: 'center', width: 100, @@ -21,17 +23,17 @@ export default function Page() { return {index + 1}; }, }, - {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) => { console.log('表单提交:', values); @@ -46,24 +48,24 @@ export default function Page() {
- { }} options={[{ label: '选项1', value: 1 }]} /> - { }} options={[{ label: '选项1', value: 1 }]} /> - { }} options={[{ label: '选项1', value: 1 }]} /> - { }} options={[{ label: '选项1', value: 1 }]} /> - { }} options={[{ label: '选项1', value: 1 }]} />
- { }} /> + setVisibility(true)} /> form.submit()} />
@@ -83,6 +85,35 @@ export default function Page() { rowClassName={rowClassName} /> + + { }} + onCancel={() => setVisibility(false)} + footer={null}> +
+
+ 类型判断1: +
产品编号
+
+
+ 类型判断2: +
请选择载体1的输入路径
+
+ 文件路径 { }} /> +
+
+
类型判断3: 是否到密钥体?
+
类型判断4: 导入密钥体成功
+
+
+ { }} /> + setVisibility(false)} /> +
+
); } \ No newline at end of file diff --git a/src/pages/MY/KeyManage/DataMaintenance/index.tsx b/src/pages/MY/KeyManage/DataMaintenance/index.tsx index e345702..0a5e344 100644 --- a/src/pages/MY/KeyManage/DataMaintenance/index.tsx +++ b/src/pages/MY/KeyManage/DataMaintenance/index.tsx @@ -1,12 +1,13 @@ import styles from '../../../GLQ/index.less'; import { useState } from 'react'; -import { ConfigProvider, Table } from 'antd'; +import { ConfigProvider, Modal, 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 [visibility, setVisibility] = useState(false); const columns: any = [ { @@ -30,7 +31,7 @@ export default function Page() { { }} />
- { }} /> + setVisibility(true)} />
@@ -44,6 +45,24 @@ export default function Page() { rowClassName={rowClassName} /> + + { }} + onCancel={() => setVisibility(false)} + footer={null}> +
+
类型判断1: 选择文件弹窗
+
类型判断2: 导入成功
+
类型判断3: 已经存在管理盘数据,是否重新导入?
+
+
+ { }} /> +
+
); } \ No newline at end of file diff --git a/src/pages/MY/KeyManage/ManageKeys/index.tsx b/src/pages/MY/KeyManage/ManageKeys/index.tsx index 898c8b0..cf77ad7 100644 --- a/src/pages/MY/KeyManage/ManageKeys/index.tsx +++ b/src/pages/MY/KeyManage/ManageKeys/index.tsx @@ -1,12 +1,13 @@ import styles from '../../../GLQ/index.less'; 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 { rowClassName } from '@/utils'; import ButtonComp from '@/components/ButtonComp'; export default function Page() { const [tableData, setTableData] = useState([]); + const [visibility, setVisibility] = useState(false); const columns: any = [ { title: '产品名称', dataIndex: 'name', key: 'name', align: 'center' }, @@ -75,7 +76,7 @@ export default function Page() {
- { }} /> + setVisibility(true)} />
管理密钥装配列表
@@ -96,6 +97,29 @@ export default function Page() { { }} /> { }} /> + + { }} + onCancel={() => setVisibility(false)} + footer={null}> +
+
+ 类型判断1: +
装配信息:
+
产品名称 ZY310,
+
产品编号 8151电,
+
启用日期 20231011
+
+
类型判断2: 没有需要装配管理密钥的密码设备!
+
+
+ { }} /> +
+
); } \ No newline at end of file diff --git a/src/styles/minix.less b/src/styles/minix.less index 1daec4f..6701676 100644 --- a/src/styles/minix.less +++ b/src/styles/minix.less @@ -6,6 +6,10 @@ padding-bottom: 100px; } +.ml20 { + margin-left: 20px; +} + .mr20 { margin-right: 20px; }