diff --git a/config/routes/index.ts b/config/routes/index.ts index 7dab31c..a993b91 100644 --- a/config/routes/index.ts +++ b/config/routes/index.ts @@ -112,7 +112,14 @@ const routes = [ // ------------------------------设备注册----------------------------------- - + // 注册管理 + { path: '/registerManage/manageDiskMainten', name: '管理盘维护', component: '@/pages/Register/RegisterManage/ManageDiskMainten' }, + { path: '/registerManage/devicePhotoMainten', name: '设备照片维护', component: '@/pages/Register/RegisterManage/DevicePhotoMainten' }, + { path: '/registerManage/deviceSearch', name: '设备查找', component: '@/pages/Register/RegisterManage/DeviceSearch' }, + { path: '/registerManage/appSystemConfig', name: '应用系统配置', component: '@/pages/Register/RegisterManage/AppSystemConfig' }, + { path: '/registerManage/infoAggre', name: '信息汇总', component: '@/pages/Register/RegisterManage/InfoAggre' }, + // 位置管理 + { path: '/registerManage/regionalEdit', name: '地域编辑', component: '@/pages/Register/PositionManage/RegionalEdit' }, // --------------------------------------------------------------------------- diff --git a/src/assets/images/photo.jpg b/src/assets/images/photo.jpg new file mode 100644 index 0000000..61d29cd Binary files /dev/null and b/src/assets/images/photo.jpg differ diff --git a/src/components/ButtonComp/index.less b/src/components/ButtonComp/index.less index 8f52d3c..c227839 100644 --- a/src/components/ButtonComp/index.less +++ b/src/components/ButtonComp/index.less @@ -40,4 +40,5 @@ font-size: 16px; color: #333333; padding: 0 30px; + cursor: default; } \ No newline at end of file diff --git a/src/components/ButtonComp/index.tsx b/src/components/ButtonComp/index.tsx index 611bace..13b7508 100644 --- a/src/components/ButtonComp/index.tsx +++ b/src/components/ButtonComp/index.tsx @@ -5,13 +5,13 @@ interface PageProps { type?: string; // 按钮类型 text?: string; // 按钮文字 style?: any; //样式 - onClick: () => void; + onClick?: () => void; } const ButtonComp: FC = ({ type = 'confirm', text = '确定', - onClick, + onClick = () => {}, style = {} }) => { let timerId: any; diff --git a/src/layouts/index.tsx b/src/layouts/index.tsx index 7bc6194..d314bcc 100644 --- a/src/layouts/index.tsx +++ b/src/layouts/index.tsx @@ -14,7 +14,7 @@ const options2 = [ { value: 3, label: 'SB管理' }, { value: 4, label: 'SF管理' }, { value: 5, label: 'SBJK二维版', disabled: true }, - { value: 6, label: '设备注册', disabled: true } + { value: 6, label: '设备注册' } ] const leftMenuType: any = { @@ -80,6 +80,12 @@ export default function Layout() { if (tabList.length > 0 && !layoutInfo) { setActiveName(tabList[0].name) let info = MenuType[tabList[0].name]; + + if(tabList[0].name == '注册管理') { + history.push(`${info[1].data[1].url}`) + return + } + if (info[0].data) { history.push(`${info[0].data[0].url}`) } else { diff --git a/src/pages/GLQ/WebGLQ/SecurityPolicy/index.tsx b/src/pages/GLQ/WebGLQ/SecurityPolicy/index.tsx index da42152..e429089 100644 --- a/src/pages/GLQ/WebGLQ/SecurityPolicy/index.tsx +++ b/src/pages/GLQ/WebGLQ/SecurityPolicy/index.tsx @@ -38,11 +38,11 @@ export default function Page() {
0 ? { y: 41 * 5 } : {}} pagination={false} bordered columns={columns} - dataSource={[{}, {}, {}, {}, {}]} + dataSource={tableData} rowKey={(record: any) => record?.id} rowClassName={rowClassName} /> diff --git a/src/pages/GLQ/WebGLQ/ServiceList/index.tsx b/src/pages/GLQ/WebGLQ/ServiceList/index.tsx index a3d79c4..6b52c29 100644 --- a/src/pages/GLQ/WebGLQ/ServiceList/index.tsx +++ b/src/pages/GLQ/WebGLQ/ServiceList/index.tsx @@ -50,11 +50,11 @@ export default function Page() {
0 ? { y: 41 * 5 } : {}} pagination={false} bordered columns={columns} - dataSource={[{}, {}, {}, {}, {}]} + dataSource={tableData} rowKey={(record: any) => record?.id} rowClassName={rowClassName} /> diff --git a/src/pages/GLQ/index.less b/src/pages/GLQ/index.less index e474196..743149f 100644 --- a/src/pages/GLQ/index.less +++ b/src/pages/GLQ/index.less @@ -23,7 +23,7 @@ .html_con { background: #FFFFFF; - box-shadow: inset 4px 4px 1px 0px rgba(35, 44, 48, 0.32); + box-shadow: inset 1px 1px 3px 0px rgba(35, 44, 48, 0.22); border-radius: 1px; border: 1px solid #E3E3E3; width: 100%; diff --git a/src/pages/MY/KeyBodyManage/Application/index.tsx b/src/pages/MY/KeyBodyManage/Application/index.tsx index f519d30..d8be350 100644 --- a/src/pages/MY/KeyBodyManage/Application/index.tsx +++ b/src/pages/MY/KeyBodyManage/Application/index.tsx @@ -73,11 +73,11 @@ export default function Page() {
0 ? { y: 41 * 9 } : {}} pagination={false} bordered columns={columns} - dataSource={[{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}]} + dataSource={tableData} rowKey={(record: any) => record?.id} rowClassName={rowClassName} /> diff --git a/src/pages/MY/KeyBodyManage/Cleaned/index.tsx b/src/pages/MY/KeyBodyManage/Cleaned/index.tsx index 26a2343..f3030ce 100644 --- a/src/pages/MY/KeyBodyManage/Cleaned/index.tsx +++ b/src/pages/MY/KeyBodyManage/Cleaned/index.tsx @@ -41,11 +41,11 @@ export default function Page() {
0 ? { y: 41 * 9 } : {}} pagination={false} bordered columns={columns} - dataSource={[{}, {}, {}, {}, {}, {}, {}, {}, {}, {}]} + dataSource={tableData} rowKey={(record: any) => record?.id} rowClassName={rowClassName} /> diff --git a/src/pages/MY/KeyBodyManage/CodeComparisonTable/index.tsx b/src/pages/MY/KeyBodyManage/CodeComparisonTable/index.tsx index 31028a5..d1bc1b0 100644 --- a/src/pages/MY/KeyBodyManage/CodeComparisonTable/index.tsx +++ b/src/pages/MY/KeyBodyManage/CodeComparisonTable/index.tsx @@ -24,7 +24,7 @@ export default function Page() {
0 ? { y: 41 * 9 } : {}} pagination={false} bordered columns={columns} diff --git a/src/pages/MY/KeyBodyManage/DistrTriple/index.tsx b/src/pages/MY/KeyBodyManage/DistrTriple/index.tsx index 7261945..756125b 100644 --- a/src/pages/MY/KeyBodyManage/DistrTriple/index.tsx +++ b/src/pages/MY/KeyBodyManage/DistrTriple/index.tsx @@ -43,7 +43,7 @@ export default function Page() {
0 ? { y: 41 * 9 } : {}} pagination={false} bordered columns={columns} @@ -72,7 +72,7 @@ export default function Page() {
0 ? { y: 41 * 9 } : {}} pagination={false} bordered columns={columns1} diff --git a/src/pages/MY/KeyBodyManage/EmailDistr/index.tsx b/src/pages/MY/KeyBodyManage/EmailDistr/index.tsx index 4331bed..b5dfc24 100644 --- a/src/pages/MY/KeyBodyManage/EmailDistr/index.tsx +++ b/src/pages/MY/KeyBodyManage/EmailDistr/index.tsx @@ -88,11 +88,11 @@ export default function Page() {
0 ? { y: 41 * 9 } : {}} pagination={false} bordered columns={columns} - dataSource={[{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}]} + dataSource={tableData} rowKey={(record: any) => record?.id} rowClassName={rowClassName} /> diff --git a/src/pages/MY/KeyBodyManage/FormatImport/index.tsx b/src/pages/MY/KeyBodyManage/FormatImport/index.tsx index a26e14c..10a5412 100644 --- a/src/pages/MY/KeyBodyManage/FormatImport/index.tsx +++ b/src/pages/MY/KeyBodyManage/FormatImport/index.tsx @@ -40,11 +40,11 @@ export default function Page() {
0 ? { y: 41 * 9 } : {}} pagination={false} bordered columns={columns} - dataSource={[{}, {}, {}, {}, {},{}, {}, {}, {}, {}]} + dataSource={tableData} rowKey={(record: any) => record?.id} rowClassName={rowClassName} /> diff --git a/src/pages/MY/KeyBodyManage/FormatPublishing/index.tsx b/src/pages/MY/KeyBodyManage/FormatPublishing/index.tsx index 541019e..ea04978 100644 --- a/src/pages/MY/KeyBodyManage/FormatPublishing/index.tsx +++ b/src/pages/MY/KeyBodyManage/FormatPublishing/index.tsx @@ -71,11 +71,11 @@ export default function Page() {
0 ? { y: 41 * 9 } : {}} pagination={false} bordered columns={columns} - dataSource={[{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}]} + dataSource={tableData} rowKey={(record: any) => record?.id} rowClassName={rowClassName} /> diff --git a/src/pages/MY/KeyBodyManage/Import/index.tsx b/src/pages/MY/KeyBodyManage/Import/index.tsx index 056e41a..655a877 100644 --- a/src/pages/MY/KeyBodyManage/Import/index.tsx +++ b/src/pages/MY/KeyBodyManage/Import/index.tsx @@ -73,7 +73,7 @@ export default function Page() {
0 ? { y: 41 * 9 } : {}} pagination={false} bordered columns={columns} diff --git a/src/pages/MY/KeyBodyManage/ReceiptForm/index.tsx b/src/pages/MY/KeyBodyManage/ReceiptForm/index.tsx index 778016f..c353a65 100644 --- a/src/pages/MY/KeyBodyManage/ReceiptForm/index.tsx +++ b/src/pages/MY/KeyBodyManage/ReceiptForm/index.tsx @@ -56,7 +56,7 @@ export default function Page() {
0 ? tableData.length > 0 ? { y: 41 * 9 } : {} : {}} pagination={false} bordered columns={columns} @@ -93,7 +93,7 @@ export default function Page() {
0 ? tableData.length > 0 ? { y: 41 * 9 } : {} : {}} pagination={false} bordered columns={columns1} diff --git a/src/pages/MY/KeyBodyManage/SubordinateDistr/index.tsx b/src/pages/MY/KeyBodyManage/SubordinateDistr/index.tsx index 161d541..84b807c 100644 --- a/src/pages/MY/KeyBodyManage/SubordinateDistr/index.tsx +++ b/src/pages/MY/KeyBodyManage/SubordinateDistr/index.tsx @@ -80,7 +80,7 @@ export default function Page() { pagination={false} bordered columns={columns} - dataSource={[]} + dataSource={tableData} rowKey={(record: any) => record?.id} rowClassName={rowClassName} /> diff --git a/src/pages/MY/KeyBodyManage/SystemDistr/index.tsx b/src/pages/MY/KeyBodyManage/SystemDistr/index.tsx index 277fdde..833dad9 100644 --- a/src/pages/MY/KeyBodyManage/SystemDistr/index.tsx +++ b/src/pages/MY/KeyBodyManage/SystemDistr/index.tsx @@ -62,7 +62,7 @@ export default function Page() {
0 ? { y: 41 * 9 } : {}} pagination={false} bordered columns={columns} @@ -81,7 +81,7 @@ export default function Page() {
0 ? { y: 41 * 9 } : {}} pagination={false} bordered columns={columns1} diff --git a/src/pages/MY/KeyManage/DataMaintenance/index.tsx b/src/pages/MY/KeyManage/DataMaintenance/index.tsx index 921492d..32e1b5b 100644 --- a/src/pages/MY/KeyManage/DataMaintenance/index.tsx +++ b/src/pages/MY/KeyManage/DataMaintenance/index.tsx @@ -33,7 +33,7 @@ export default function Page() {
0 ? { y: 41 * 10 } : {}} pagination={false} bordered columns={columns} diff --git a/src/pages/MY/KeyManage/KeyConfigQuery/index.tsx b/src/pages/MY/KeyManage/KeyConfigQuery/index.tsx index 59f092b..4b9337d 100644 --- a/src/pages/MY/KeyManage/KeyConfigQuery/index.tsx +++ b/src/pages/MY/KeyManage/KeyConfigQuery/index.tsx @@ -55,7 +55,7 @@ export default function Page() { setVisibility(true)} />
0 ? { y: 41 * 9 } : {}} pagination={false} bordered columns={columns} @@ -92,11 +92,11 @@ export default function Page() {
0 ? { y: 41 * 8 } : {}} pagination={false} bordered columns={columns1} - dataSource={[{}, {}, {}, {}, {}, {}, {}, {}, {}]} + dataSource={tableData} rowKey={(record: any) => record?.id} rowClassName={rowClassName} /> diff --git a/src/pages/MY/KeyManage/ManageKeys/index.tsx b/src/pages/MY/KeyManage/ManageKeys/index.tsx index 8338d9f..ed7043f 100644 --- a/src/pages/MY/KeyManage/ManageKeys/index.tsx +++ b/src/pages/MY/KeyManage/ManageKeys/index.tsx @@ -62,7 +62,7 @@ export default function Page() {
可装配的密钥体列表
0 ? { y: 41 * 5 } : {}} pagination={false} bordered columns={columns} @@ -79,7 +79,7 @@ export default function Page() {
管理密钥装配列表
0 ? { y: 41 * 5 } : {}} pagination={false} bordered columns={columns1} diff --git a/src/pages/MY/KeyManage/PrivateKey/index.tsx b/src/pages/MY/KeyManage/PrivateKey/index.tsx index d3648eb..17db82d 100644 --- a/src/pages/MY/KeyManage/PrivateKey/index.tsx +++ b/src/pages/MY/KeyManage/PrivateKey/index.tsx @@ -43,7 +43,7 @@ export default function Page() {
用户密钥装配列表
0 ? { y: 41 * 8 } : {}} pagination={false} bordered columns={columns} diff --git a/src/pages/MY/KeyManage/RelationConfig/index.tsx b/src/pages/MY/KeyManage/RelationConfig/index.tsx index f56b1a5..0e6aac8 100644 --- a/src/pages/MY/KeyManage/RelationConfig/index.tsx +++ b/src/pages/MY/KeyManage/RelationConfig/index.tsx @@ -50,7 +50,7 @@ export default function Page() {
目标设备信息列表
0 ? { y: 41 * 10 } : {}} pagination={false} bordered columns={columns} @@ -74,7 +74,7 @@ export default function Page() {
已经配置的设备信息
0 ? { y: 41 * 10 } : {}} pagination={false} bordered columns={columns1} diff --git a/src/pages/MY/KeyManage/TripleKeyDistri/index.tsx b/src/pages/MY/KeyManage/TripleKeyDistri/index.tsx index 45eb47f..46b71d7 100644 --- a/src/pages/MY/KeyManage/TripleKeyDistri/index.tsx +++ b/src/pages/MY/KeyManage/TripleKeyDistri/index.tsx @@ -48,7 +48,7 @@ export default function Page() {
0 ? { y: 41 * 9 } : {}} pagination={false} bordered columns={columns} diff --git a/src/pages/MY/KeyManage/UserKey/index.tsx b/src/pages/MY/KeyManage/UserKey/index.tsx index 6bf8687..b4d8696 100644 --- a/src/pages/MY/KeyManage/UserKey/index.tsx +++ b/src/pages/MY/KeyManage/UserKey/index.tsx @@ -62,7 +62,7 @@ export default function Page() {
可装配的密钥体列表
0 ? { y: 41 * 5 } : {}} pagination={false} bordered columns={columns} @@ -79,7 +79,7 @@ export default function Page() {
用户密钥装配列表
0 ? { y: 41 * 5 } : {}} pagination={false} bordered columns={columns1} diff --git a/src/pages/Register/index.less b/src/pages/Register/PositionManage/RegionalEdit/index.less similarity index 100% rename from src/pages/Register/index.less rename to src/pages/Register/PositionManage/RegionalEdit/index.less diff --git a/src/pages/Register/index.tsx b/src/pages/Register/PositionManage/RegionalEdit/index.tsx similarity index 100% rename from src/pages/Register/index.tsx rename to src/pages/Register/PositionManage/RegionalEdit/index.tsx diff --git a/src/pages/Register/RegisterManage/AppSystemConfig/index.tsx b/src/pages/Register/RegisterManage/AppSystemConfig/index.tsx new file mode 100644 index 0000000..56d41aa --- /dev/null +++ b/src/pages/Register/RegisterManage/AppSystemConfig/index.tsx @@ -0,0 +1,64 @@ +import TabsComp from '@/components/TabsComp'; +import styles from '../../../GLQ/index.less'; +import styles1 from './index.less'; +import { useState } from 'react'; +import { ConfigProvider, Select, Table, Upload } 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 [htmlText, setHtmlText] = useState('
文本内容
') + + const columns: any = [ + { title: '设备型号', dataIndex: 'name', key: 'name', align: 'center' }, + { title: '', align: 'center' }, + ] + + return ( +
+ setActiveTab(e)} /> + +
从设备列表中选择设备,将其拖动到相应的应用系统节点下;或者选择应用系统节点下的设备,将其拖动到其它应用系统节点下。
+
+
所属网络
+
0 ? { y: 41 * 14 }: {}} + pagination={false} + bordered + columns={columns} + dataSource={tableData} + rowKey={(record: any) => record?.id} + rowClassName={rowClassName} + /> + + + + + ); +} \ No newline at end of file diff --git a/src/pages/Register/RegisterManage/DevicePhotoMainten/index.less b/src/pages/Register/RegisterManage/DevicePhotoMainten/index.less new file mode 100644 index 0000000..558aae2 --- /dev/null +++ b/src/pages/Register/RegisterManage/DevicePhotoMainten/index.less @@ -0,0 +1,19 @@ +.info { + font-size: 14px; + font-weight: 400; + color: #666666; + line-height: 22px; + margin-top: 35px; +} + +.picture{ + position: relative; + height: 434px; + border: 1px solid #D8D8D8; + margin-top: 48px; + + img { + width: 100%; + height: 100%; + } +} \ No newline at end of file diff --git a/src/pages/Register/RegisterManage/DevicePhotoMainten/index.tsx b/src/pages/Register/RegisterManage/DevicePhotoMainten/index.tsx new file mode 100644 index 0000000..1d5b5a5 --- /dev/null +++ b/src/pages/Register/RegisterManage/DevicePhotoMainten/index.tsx @@ -0,0 +1,58 @@ +import TabsComp from '@/components/TabsComp'; +import styles from '../../../GLQ/index.less'; +import styles1 from './index.less'; +import { useState } from 'react'; +import { ConfigProvider, Table, Upload } 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: '', align: 'center' }, + ] + + return ( +
+ setActiveTab(e)} /> + +
+
+ { }} /> + +
0 ? { y: 41 * 14 }: {}} + pagination={false} + bordered + columns={columns} + dataSource={tableData} + rowKey={(record: any) => record?.id} + rowClassName={rowClassName} + /> + + + +
+
提示:请选择设备型号,然后选择该型号的照片,照片大小不要超过64KB,建议尺寸为128×128像素。
+
+ + +
+
+ {/* */} + { }} /> + {/* */} + { }} /> +
+
+ + + ); +} \ No newline at end of file diff --git a/src/pages/Register/RegisterManage/DeviceSearch/index.less b/src/pages/Register/RegisterManage/DeviceSearch/index.less new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/Register/RegisterManage/DeviceSearch/index.tsx b/src/pages/Register/RegisterManage/DeviceSearch/index.tsx new file mode 100644 index 0000000..1f24c5c --- /dev/null +++ b/src/pages/Register/RegisterManage/DeviceSearch/index.tsx @@ -0,0 +1,9 @@ +import styles from './index.less'; + +export default function Page() { + return ( +
+ +
+ ); +} diff --git a/src/pages/Register/RegisterManage/InfoAggre/index.less b/src/pages/Register/RegisterManage/InfoAggre/index.less new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/Register/RegisterManage/InfoAggre/index.tsx b/src/pages/Register/RegisterManage/InfoAggre/index.tsx new file mode 100644 index 0000000..1f24c5c --- /dev/null +++ b/src/pages/Register/RegisterManage/InfoAggre/index.tsx @@ -0,0 +1,9 @@ +import styles from './index.less'; + +export default function Page() { + return ( +
+ +
+ ); +} diff --git a/src/pages/Register/RegisterManage/ManageDiskMainten/index.tsx b/src/pages/Register/RegisterManage/ManageDiskMainten/index.tsx new file mode 100644 index 0000000..84ecb98 --- /dev/null +++ b/src/pages/Register/RegisterManage/ManageDiskMainten/index.tsx @@ -0,0 +1,65 @@ +import TabsComp from '@/components/TabsComp'; +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 [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' } + ] + + const columns1: any = [ + { title: '管理盘号', dataIndex: 'name', key: 'name', align: 'center' }, + { title: '文件名', dataIndex: 'name', key: 'name', align: 'center' }, + { title: '文件长度', dataIndex: 'name', key: 'name', align: 'center' } + ] + + return ( +
+ setActiveTab(e)} /> + + { }} /> + +
0 ? { y: 41 * 5 } : {}} + pagination={false} + bordered + columns={columns} + dataSource={tableData} + rowKey={(record: any) => record?.id} + rowClassName={rowClassName} + /> + + +
+ { }} /> + { }} /> + { }} /> +
+ + { }} /> + +
0 ? { y: 41 * 5 } : {}} + pagination={false} + bordered + columns={columns1} + dataSource={tableData} + rowKey={(record: any) => record?.id} + rowClassName={rowClassName} + /> + + + ); +} diff --git a/src/pages/SB/DeviceManage/DataSync/index.tsx b/src/pages/SB/DeviceManage/DataSync/index.tsx index 4c2547f..f1adae7 100644 --- a/src/pages/SB/DeviceManage/DataSync/index.tsx +++ b/src/pages/SB/DeviceManage/DataSync/index.tsx @@ -28,7 +28,7 @@ export default function Page() {
0 ? { y: 41 * 5 } : {}} pagination={false} bordered columns={columns} diff --git a/src/pages/SB/DeviceManage/DutyAreaConfig/index.tsx b/src/pages/SB/DeviceManage/DutyAreaConfig/index.tsx index 690732f..0029db0 100644 --- a/src/pages/SB/DeviceManage/DutyAreaConfig/index.tsx +++ b/src/pages/SB/DeviceManage/DutyAreaConfig/index.tsx @@ -54,7 +54,7 @@ export default function Page() {
0 ? { y: 41 * 5 } : {}} pagination={false} bordered columns={columns} @@ -98,7 +98,7 @@ export default function Page() {
0 ? { y: 41 * 5 } : {}} pagination={false} bordered columns={columns1} diff --git a/src/pages/SB/DeviceManage/NumberMaintenance/index.tsx b/src/pages/SB/DeviceManage/NumberMaintenance/index.tsx index 1a790cc..185afee 100644 --- a/src/pages/SB/DeviceManage/NumberMaintenance/index.tsx +++ b/src/pages/SB/DeviceManage/NumberMaintenance/index.tsx @@ -22,7 +22,7 @@ export default function Page() { { }} />
0 ? { y: 41 * 5 } : {}} pagination={false} bordered columns={columns} diff --git a/src/pages/SB/DeviceManage/RemoteMaintenance/index.tsx b/src/pages/SB/DeviceManage/RemoteMaintenance/index.tsx index 825a408..a0aa33d 100644 --- a/src/pages/SB/DeviceManage/RemoteMaintenance/index.tsx +++ b/src/pages/SB/DeviceManage/RemoteMaintenance/index.tsx @@ -24,7 +24,7 @@ export default function Page() { { }} />
0 ? { y: 41 * 5 } : {}} pagination={false} bordered columns={columns} diff --git a/src/pages/SF/ConfigManage/ParamSingleInstallConfig/index.tsx b/src/pages/SF/ConfigManage/ParamSingleInstallConfig/index.tsx index 2a10c38..1cfa90a 100644 --- a/src/pages/SF/ConfigManage/ParamSingleInstallConfig/index.tsx +++ b/src/pages/SF/ConfigManage/ParamSingleInstallConfig/index.tsx @@ -4,8 +4,11 @@ import ButtonComp from '@/components/ButtonComp'; import { ConfigProvider, Select, Table } from 'antd'; import { tableTheme } from '@/utils/theme'; import { rowClassName } from '@/utils'; +import { useState } from 'react'; export default function Page() { + const [tableData, setTableData] = useState([]); + let serial = { title: '序号', key: 'index', align: 'center', width: 100, render: (a: any, b: any, c: any) => { @@ -52,11 +55,11 @@ export default function Page() {
0 ? { y: 41 * 12 } : {}} pagination={false} bordered columns={columns} - dataSource={[{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}]} + dataSource={tableData} rowKey={(record: any) => record?.id} rowClassName={rowClassName} /> @@ -70,11 +73,11 @@ export default function Page() {
0 ? { y: 41 * 4 } : {}} pagination={false} bordered columns={columns1} - dataSource={[{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}]} + dataSource={tableData} rowKey={(record: any) => record?.id} rowClassName={rowClassName} /> @@ -83,11 +86,11 @@ export default function Page() {
0 ? { y: 41 * 4 } : {}} pagination={false} bordered columns={columns2} - dataSource={[{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}]} + dataSource={tableData} rowKey={(record: any) => record?.id} rowClassName={rowClassName} /> diff --git a/src/pages/SF/ConfigManage/SFSingleInstallConfig/index.tsx b/src/pages/SF/ConfigManage/SFSingleInstallConfig/index.tsx index 86babaa..8b28fd1 100644 --- a/src/pages/SF/ConfigManage/SFSingleInstallConfig/index.tsx +++ b/src/pages/SF/ConfigManage/SFSingleInstallConfig/index.tsx @@ -4,8 +4,11 @@ import ButtonComp from '@/components/ButtonComp'; import { ConfigProvider, Table } from 'antd'; import { tableTheme } from '@/utils/theme'; import { rowClassName } from '@/utils'; +import { useState } from 'react'; export default function Page() { + const [tableData, setTableData] = useState([]); + let serial = { title: '序号', key: 'index', align: 'center', width: 100, render: (a: any, b: any, c: any) => { @@ -44,11 +47,11 @@ export default function Page() {
选择算法
0 ? { y: 41 * 12 } : {}} pagination={false} bordered columns={columns} - dataSource={[{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}]} + dataSource={tableData} rowKey={(record: any) => record?.id} rowClassName={rowClassName} /> @@ -62,11 +65,11 @@ export default function Page() {
0 ? { y: 41 * 4 } : {}} pagination={false} bordered columns={columns1} - dataSource={[{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}]} + dataSource={tableData} rowKey={(record: any) => record?.id} rowClassName={rowClassName} /> @@ -75,11 +78,11 @@ export default function Page() {
0 ? { y: 41 * 4 } : {}} pagination={false} bordered columns={columns2} - dataSource={[{}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}]} + dataSource={tableData} rowKey={(record: any) => record?.id} rowClassName={rowClassName} /> diff --git a/src/pages/SF/ResourceManage/AlgorithmDistr/index.tsx b/src/pages/SF/ResourceManage/AlgorithmDistr/index.tsx index a04a9fe..e340eda 100644 --- a/src/pages/SF/ResourceManage/AlgorithmDistr/index.tsx +++ b/src/pages/SF/ResourceManage/AlgorithmDistr/index.tsx @@ -43,7 +43,7 @@ export default function Page() {
0 ? { y: 41 * 10 } : {}} pagination={false} bordered columns={columns} diff --git a/src/pages/SF/ResourceManage/AlgorithmMaintenance/index.tsx b/src/pages/SF/ResourceManage/AlgorithmMaintenance/index.tsx index df959bd..4614289 100644 --- a/src/pages/SF/ResourceManage/AlgorithmMaintenance/index.tsx +++ b/src/pages/SF/ResourceManage/AlgorithmMaintenance/index.tsx @@ -35,7 +35,7 @@ export default function Page() {
0 ? { y: 41 * 10 } : {}} pagination={false} bordered columns={columns} diff --git a/src/pages/SF/ResourceManage/AlgorithmParam/index.tsx b/src/pages/SF/ResourceManage/AlgorithmParam/index.tsx index 267c66d..ae51181 100644 --- a/src/pages/SF/ResourceManage/AlgorithmParam/index.tsx +++ b/src/pages/SF/ResourceManage/AlgorithmParam/index.tsx @@ -56,7 +56,7 @@ export default function Page() {
0 ? { y: 41 * 10 } : {}} pagination={false} bordered columns={columns} diff --git a/src/pages/SF/ResourceManage/ParamMaintenance/index.tsx b/src/pages/SF/ResourceManage/ParamMaintenance/index.tsx index 738bd0d..be56415 100644 --- a/src/pages/SF/ResourceManage/ParamMaintenance/index.tsx +++ b/src/pages/SF/ResourceManage/ParamMaintenance/index.tsx @@ -42,7 +42,7 @@ export default function Page() {
0 ? { y: 41 * 10 } : {}} pagination={false} bordered columns={columns} diff --git a/src/styles/antd.less b/src/styles/antd.less index ec44407..ea74228 100644 --- a/src/styles/antd.less +++ b/src/styles/antd.less @@ -16,7 +16,7 @@ } .ant-table { - box-shadow: 1px 4px 0px 0px #E3E8ED; + box-shadow: 0px 4px 0px 0px #E3E8ED; } diff --git a/src/utils/menu.ts b/src/utils/menu.ts index 0bc662f..e1ecb56 100644 --- a/src/utils/menu.ts +++ b/src/utils/menu.ts @@ -213,17 +213,17 @@ export const MenuType: any = { name: '注册信息管理', check: true, data: [ - { name: '管理盘维护', url: '', img: '' }, - { name: '设备照片维护', url: '', img: '' }, - { name: '设备查找', url: '', img: '' }, - { name: '应用系统配置', url: '', img: '' }, + { name: '管理盘维护', url: '/registerManage/manageDiskMainten', img: '' }, + { name: '设备照片维护', url: '/registerManage/devicePhotoMainten', img: '' }, + { name: '设备查找', url: '/registerManage/deviceSearch', img: '' }, + { name: '应用系统配置', url: '/registerManage/appSystemConfig', img: '' }, ] }, { name: '信息汇总', check: true, data: [ - { name: '信息汇总', url: '', img: '' }, + { name: '信息汇总', url: '/registerManage/infoAggre', img: '' }, ] } ], @@ -233,7 +233,7 @@ export const MenuType: any = { name: '注册信息管理', check: true, data: [ - { name: '地域编辑', url: '', img: '' }, + { name: '地域编辑', url: '/registerManage/regionalEdit', img: '' }, ] }, ]