From 35615492437efc64440475d2fd322451ce6e4da0 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 18:02:21 +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/GLQ/WebGLQ/SecurityPolicy/index.tsx | 9 +-- src/pages/GLQ/WebGLQ/ServiceList/index.tsx | 9 +-- .../MY/KeyBodyManage/Application/index.tsx | 10 ++-- src/pages/MY/KeyBodyManage/Cleaned/index.tsx | 10 ++-- .../MY/KeyBodyManage/EmailDistr/index.tsx | 10 ++-- .../MY/KeyBodyManage/FormatImport/index.tsx | 10 ++-- .../KeyBodyManage/FormatPublishing/index.tsx | 10 ++-- src/pages/MY/KeyBodyManage/Import/index.tsx | 9 +-- .../MY/KeyBodyManage/SystemDistr/index.tsx | 9 +-- .../MY/KeyManage/DataMaintenance/index.tsx | 9 +-- .../MY/KeyManage/KeyConfigQuery/index.tsx | 18 ++---- src/pages/MY/KeyManage/ManageKeys/index.tsx | 9 +-- src/pages/MY/KeyManage/PrivateKey/index.tsx | 9 +-- .../MY/KeyManage/RelationConfig/index.tsx | 9 +-- src/pages/MY/KeyManage/UserKey/index.tsx | 9 +-- .../SB/DeviceManage/DutyAreaConfig/index.tsx | 9 +-- .../AlgorithmMaintenance/index.less | 0 .../AlgorithmMaintenance/index.tsx | 58 +++++++++++++++++-- 18 files changed, 110 insertions(+), 106 deletions(-) delete mode 100644 src/pages/SF/ResourceManage/AlgorithmMaintenance/index.less diff --git a/src/pages/GLQ/WebGLQ/SecurityPolicy/index.tsx b/src/pages/GLQ/WebGLQ/SecurityPolicy/index.tsx index 581a06b..da42152 100644 --- a/src/pages/GLQ/WebGLQ/SecurityPolicy/index.tsx +++ b/src/pages/GLQ/WebGLQ/SecurityPolicy/index.tsx @@ -17,12 +17,9 @@ export default function Page() { const columns: any = [ { - title: '序号', - key: 'index', - align: 'center', - width: 100, - render: (text: any, record: any, index: any) => { - return {index + 1}; + title: '序号', key: 'index', align: 'center', width: 100, + render: (a: any, b: any, c: any) => { + return {c + 1}; }, }, { title: '单位名称', dataIndex: 'name', key: 'name', align: 'center' }, diff --git a/src/pages/GLQ/WebGLQ/ServiceList/index.tsx b/src/pages/GLQ/WebGLQ/ServiceList/index.tsx index 5c3f60a..a3d79c4 100644 --- a/src/pages/GLQ/WebGLQ/ServiceList/index.tsx +++ b/src/pages/GLQ/WebGLQ/ServiceList/index.tsx @@ -18,12 +18,9 @@ export default function Page() { const columns: any = [ { - title: '序号', - key: 'index', - width: 100, - align: 'center', - render: (text: any, record: any, index: any) => { - return {index + 1}; + title: '序号', key: 'index', align: 'center', width: 100, + render: (a: any, b: any, c: any) => { + return {c + 1}; }, }, { title: '服务名称', dataIndex: 'name', key: 'name', align: 'center' }, diff --git a/src/pages/MY/KeyBodyManage/Application/index.tsx b/src/pages/MY/KeyBodyManage/Application/index.tsx index 2cb154e..f519d30 100644 --- a/src/pages/MY/KeyBodyManage/Application/index.tsx +++ b/src/pages/MY/KeyBodyManage/Application/index.tsx @@ -13,12 +13,10 @@ export default function Page() { const [form] = Form.useForm(); const columns: any = [ - {title: '序号', - key: 'index', - align: 'center', - width: 100, - render: (text: any, record: any, index: any) => { - return {index + 1}; + { + title: '序号', key: 'index', align: 'center', width: 100, + render: (a: any, b: any, c: any) => { + return {c + 1}; }, }, {title: '申请类型', dataIndex: 'name', key: 'name', align: 'center' }, diff --git a/src/pages/MY/KeyBodyManage/Cleaned/index.tsx b/src/pages/MY/KeyBodyManage/Cleaned/index.tsx index e767c1a..26a2343 100644 --- a/src/pages/MY/KeyBodyManage/Cleaned/index.tsx +++ b/src/pages/MY/KeyBodyManage/Cleaned/index.tsx @@ -11,12 +11,10 @@ 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 {index + 1}; + { + title: '序号', key: 'index', align: 'center', width: 100, + render: (a: any, b: any, c: any) => { + return {c + 1}; }, }, {title: '产品名称', dataIndex: 'name', key: 'name', align: 'center' }, diff --git a/src/pages/MY/KeyBodyManage/EmailDistr/index.tsx b/src/pages/MY/KeyBodyManage/EmailDistr/index.tsx index efe3c8d..4331bed 100644 --- a/src/pages/MY/KeyBodyManage/EmailDistr/index.tsx +++ b/src/pages/MY/KeyBodyManage/EmailDistr/index.tsx @@ -13,12 +13,10 @@ export default function Page() { const [form] = Form.useForm(); const columns: any = [ - {title: '序号', - key: 'index', - align: 'center', - width: 100, - render: (text: any, record: any, index: any) => { - return {index + 1}; + { + title: '序号', key: 'index', align: 'center', width: 100, + render: (a: any, b: any, c: any) => { + return {c + 1}; }, }, {title: '编号', dataIndex: 'name', key: 'name', align: 'center' }, diff --git a/src/pages/MY/KeyBodyManage/FormatImport/index.tsx b/src/pages/MY/KeyBodyManage/FormatImport/index.tsx index de60913..a26e14c 100644 --- a/src/pages/MY/KeyBodyManage/FormatImport/index.tsx +++ b/src/pages/MY/KeyBodyManage/FormatImport/index.tsx @@ -11,12 +11,10 @@ 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 {index + 1}; + { + title: '序号', key: 'index', align: 'center', width: 100, + render: (a: any, b: any, c: any) => { + return {c + 1}; }, }, {title: '产品名称', dataIndex: 'name', key: 'name', align: 'center' }, diff --git a/src/pages/MY/KeyBodyManage/FormatPublishing/index.tsx b/src/pages/MY/KeyBodyManage/FormatPublishing/index.tsx index 0c44b12..541019e 100644 --- a/src/pages/MY/KeyBodyManage/FormatPublishing/index.tsx +++ b/src/pages/MY/KeyBodyManage/FormatPublishing/index.tsx @@ -13,12 +13,10 @@ export default function Page() { const [form] = Form.useForm(); const columns: any = [ - {title: '序号', - key: 'index', - align: 'center', - width: 100, - render: (text: any, record: any, index: any) => { - return {index + 1}; + { + title: '序号', key: 'index', align: 'center', width: 100, + render: (a: any, b: any, c: any) => { + return {c + 1}; }, }, {title: '管理系统名称', dataIndex: 'name', key: 'name', align: 'center' }, diff --git a/src/pages/MY/KeyBodyManage/Import/index.tsx b/src/pages/MY/KeyBodyManage/Import/index.tsx index a3fd176..056e41a 100644 --- a/src/pages/MY/KeyBodyManage/Import/index.tsx +++ b/src/pages/MY/KeyBodyManage/Import/index.tsx @@ -15,12 +15,9 @@ export default function Page() { const columns: any = [ { - title: '序号', - key: 'index', - align: 'center', - width: 100, - render: (text: any, record: any, index: any) => { - return {index + 1}; + title: '序号', key: 'index', align: 'center', width: 100, + render: (a: any, b: any, c: any) => { + return {c + 1}; }, }, { title: '产品名称', dataIndex: 'name', key: 'name', align: 'center' }, diff --git a/src/pages/MY/KeyBodyManage/SystemDistr/index.tsx b/src/pages/MY/KeyBodyManage/SystemDistr/index.tsx index cf7589d..277fdde 100644 --- a/src/pages/MY/KeyBodyManage/SystemDistr/index.tsx +++ b/src/pages/MY/KeyBodyManage/SystemDistr/index.tsx @@ -19,12 +19,9 @@ export default function Page() { const columns1: any = [ { - title: '序号', - key: 'index', - align: 'center', - width: 100, - render: (text: any, record: any, index: any) => { - return {index + 1}; + title: '序号', key: 'index', align: 'center', width: 100, + render: (a: any, b: any, c: any) => { + return {c + 1}; }, }, { title: '产品名称', dataIndex: 'name', key: 'name', align: 'center' }, diff --git a/src/pages/MY/KeyManage/DataMaintenance/index.tsx b/src/pages/MY/KeyManage/DataMaintenance/index.tsx index 0a5e344..921492d 100644 --- a/src/pages/MY/KeyManage/DataMaintenance/index.tsx +++ b/src/pages/MY/KeyManage/DataMaintenance/index.tsx @@ -11,12 +11,9 @@ export default function Page() { const columns: any = [ { - title: '序号', - key: 'index', - align: 'center', - width: 100, - render: (text: any, record: any, index: any) => { - return {index + 1}; + title: '序号', key: 'index', align: 'center', width: 100, + render: (a: any, b: any, c: any) => { + return {c + 1}; }, }, { title: '管理盘号', dataIndex: 'name', key: 'name', align: 'center' }, diff --git a/src/pages/MY/KeyManage/KeyConfigQuery/index.tsx b/src/pages/MY/KeyManage/KeyConfigQuery/index.tsx index 67ca0a0..59f092b 100644 --- a/src/pages/MY/KeyManage/KeyConfigQuery/index.tsx +++ b/src/pages/MY/KeyManage/KeyConfigQuery/index.tsx @@ -11,12 +11,9 @@ export default function Page() { const columns: any = [ { - title: '序号', - key: 'index', - align: 'center', - width: 100, - render: (text: any, record: any, index: any) => { - return {index + 1}; + title: '序号', key: 'index', align: 'center', width: 100, + render: (a: any, b: any, c: any) => { + return {c + 1}; }, }, { title: '产品名称', dataIndex: 'name', key: 'name', align: 'center' }, @@ -36,12 +33,9 @@ export default function Page() { const columns1: any = [ { - title: '序号', - key: 'index', - align: 'center', - width: 80, - render: (text: any, record: any, index: any) => { - return {index + 1}; + title: '序号', key: 'index', align: 'center', width: 100, + render: (a: any, b: any, c: any) => { + return {c + 1}; }, }, { title: '设备名称', dataIndex: 'name', key: 'name', align: 'center' }, diff --git a/src/pages/MY/KeyManage/ManageKeys/index.tsx b/src/pages/MY/KeyManage/ManageKeys/index.tsx index 97ba141..8338d9f 100644 --- a/src/pages/MY/KeyManage/ManageKeys/index.tsx +++ b/src/pages/MY/KeyManage/ManageKeys/index.tsx @@ -17,12 +17,9 @@ export default function Page() { const columns1: any = [ { - title: '序号', - key: 'index', - align: 'center', - width: 100, - render: (text: any, record: any, index: any) => { - return {index + 1}; + title: '序号', key: 'index', align: 'center', width: 100, + render: (a: any, b: any, c: any) => { + return {c + 1}; }, }, { title: '设备名称', dataIndex: 'name', key: 'name', align: 'center' }, diff --git a/src/pages/MY/KeyManage/PrivateKey/index.tsx b/src/pages/MY/KeyManage/PrivateKey/index.tsx index edb61d8..d3648eb 100644 --- a/src/pages/MY/KeyManage/PrivateKey/index.tsx +++ b/src/pages/MY/KeyManage/PrivateKey/index.tsx @@ -10,12 +10,9 @@ export default function Page() { const columns: any = [ { - title: '序号', - key: 'index', - align: 'center', - width: 100, - render: (text: any, record: any, index: any) => { - return {index + 1}; + title: '序号', key: 'index', align: 'center', width: 100, + render: (a: any, b: any, c: any) => { + return {c + 1}; }, }, { title: '设备名称', dataIndex: 'name', key: 'name', align: 'center' }, diff --git a/src/pages/MY/KeyManage/RelationConfig/index.tsx b/src/pages/MY/KeyManage/RelationConfig/index.tsx index ef8d759..f56b1a5 100644 --- a/src/pages/MY/KeyManage/RelationConfig/index.tsx +++ b/src/pages/MY/KeyManage/RelationConfig/index.tsx @@ -11,12 +11,9 @@ export default function Page() { const [tableData1, setTableData1] = useState([]); let number = { - title: '序号', - key: 'index', - align: 'center', - width: 100, - render: (text: any, record: any, index: any) => { - return {index + 1}; + title: '序号', key: 'index', align: 'center', width: 100, + render: (a: any, b: any, c: any) => { + return {c + 1}; }, } diff --git a/src/pages/MY/KeyManage/UserKey/index.tsx b/src/pages/MY/KeyManage/UserKey/index.tsx index 9dbd9d8..6bf8687 100644 --- a/src/pages/MY/KeyManage/UserKey/index.tsx +++ b/src/pages/MY/KeyManage/UserKey/index.tsx @@ -16,12 +16,9 @@ export default function Page() { const columns1: any = [ { - title: '序号', - key: 'index', - align: 'center', - width: 100, - render: (text: any, record: any, index: any) => { - return {index + 1}; + title: '序号', key: 'index', align: 'center', width: 100, + render: (a: any, b: any, c: any) => { + return {c + 1}; }, }, { title: '设备名称', dataIndex: 'name', key: 'name', align: 'center' }, diff --git a/src/pages/SB/DeviceManage/DutyAreaConfig/index.tsx b/src/pages/SB/DeviceManage/DutyAreaConfig/index.tsx index 01416c5..690732f 100644 --- a/src/pages/SB/DeviceManage/DutyAreaConfig/index.tsx +++ b/src/pages/SB/DeviceManage/DutyAreaConfig/index.tsx @@ -19,12 +19,9 @@ export default function Page() { const columns1: any = [ { - title: '序号', - key: 'index', - align: 'center', - width: 100, - render: (text: any, record: any, index: any) => { - return {index + 1}; + title: '序号', key: 'index', align: 'center', width: 100, + render: (a: any, b: any, c: any) => { + return {c + 1}; }, }, { title: '设备名称', dataIndex: 'name', key: 'name', align: 'center' }, diff --git a/src/pages/SF/ResourceManage/AlgorithmMaintenance/index.less b/src/pages/SF/ResourceManage/AlgorithmMaintenance/index.less deleted file mode 100644 index e69de29..0000000 diff --git a/src/pages/SF/ResourceManage/AlgorithmMaintenance/index.tsx b/src/pages/SF/ResourceManage/AlgorithmMaintenance/index.tsx index 1f24c5c..df959bd 100644 --- a/src/pages/SF/ResourceManage/AlgorithmMaintenance/index.tsx +++ b/src/pages/SF/ResourceManage/AlgorithmMaintenance/index.tsx @@ -1,9 +1,59 @@ -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: (a: any, b: any, c: any) => { + return {c + 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' } + ] + return ( -