diff --git a/src/pages/system/Setting.tsx b/src/pages/system/Setting.tsx index 1c90e45..b3d29fe 100644 --- a/src/pages/system/Setting.tsx +++ b/src/pages/system/Setting.tsx @@ -1,5 +1,5 @@ import { useState, useEffect } from 'react'; -import { Button, Cascader, Input, message } from 'antd'; +import { Button, Cascader, Input, message, Form } from 'antd'; import { LoadingOutlined, } from '@ant-design/icons'; @@ -273,20 +273,55 @@ export default function Setting(){ } }; + const saveSet = (item:systemItem) => { + const params = { + id:item.id, + value:item.value + } + sysSet(params, "PUT").then(res=>{ + }) + + } + + const form = () =>{ + return
+ { + systemList.map((item, index) => { + return + {item.code === 'ORG' ? + + : saveSet(item)}/>} + + }) + } +
+ } + // @ts-ignore return <>

系统配置

-
- 铁路局: -
-
- {accountInfo.name}: - {onAccountChange(e.target.value)}} className='w-[300px]'> - -
+ {form()} + {/*
*/} + {/* 铁路局:*/} + {/*
*/} + {/*
*/} + {/* {accountInfo.name}:*/} + {/* {onAccountChange(e.target.value)}} className='w-[300px]'>*/} + {/* */} + {/*
*/}

设备配置

{connectionStatus()}