Commit 4060c07f authored by mayongxin's avatar mayongxin
parent dcbc9618
Pipeline #27937 passed with stages
in 25 minutes 45 seconds
This diff is collapsed.
...@@ -18,6 +18,7 @@ import { EditTwoTone, DeleteOutlined } from '@ant-design/icons'; ...@@ -18,6 +18,7 @@ import { EditTwoTone, DeleteOutlined } from '@ant-design/icons';
import { get, CITY_SERVICE } from '@/services'; import { get, CITY_SERVICE } from '@/services';
import styles from './WebDic.less'; import styles from './WebDic.less';
const {Search} = Input;
const WebDic = () => { const WebDic = () => {
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const [level, setLevel] = useState(0); // 设置级别,一级1,二级2,添加条目时使用 const [level, setLevel] = useState(0); // 设置级别,一级1,二级2,添加条目时使用
...@@ -272,6 +273,9 @@ const WebDic = () => { ...@@ -272,6 +273,9 @@ const WebDic = () => {
showQuickJumper: true, showQuickJumper: true,
showSizeChanger: true, showSizeChanger: true,
}; };
const onSearch = (key)=>{
}
return ( return (
<div className={styles.WebDic}> <div className={styles.WebDic}>
...@@ -283,6 +287,7 @@ const WebDic = () => { ...@@ -283,6 +287,7 @@ const WebDic = () => {
<Button type="primary" size="small" onClick={() => setItem(1)}> <Button type="primary" size="small" onClick={() => setItem(1)}>
添加 添加
</Button> </Button>
<Search style={{width:"300px",marginLeft:"10px"}} onSearch={onSearch}/>
</div> </div>
{/* 一级条目 表格 */} {/* 一级条目 表格 */}
<Table <Table
......
import React, { useState, useEffect } from 'react' import React, { useState, useEffect } from 'react'
import { Descriptions } from 'antd' import { Button, Descriptions, Input } from 'antd'
import styles from './BaseConfig.less' import styles from './BaseConfig.less'
import { S_GetDataBaseConfig, GetTCPConfigInfo, GetDataBaseConfig, GetBasicInfo } from '@/services/platform/hostmanager' import { S_GetDataBaseConfig, GetTCPConfigInfo, GetDataBaseConfig, GetBasicInfo } from '@/services/platform/hostmanager'
...@@ -72,9 +72,16 @@ const BaseConfig = () => { ...@@ -72,9 +72,16 @@ const BaseConfig = () => {
} }
return ( return (
<div className={styles.base_container}> <div className={styles.base_container}>
<div style={{ backgroundColor: "white", padding: "10px", width: "400px" }}> <div style={{ backgroundColor: "white", padding: "10px", width: "100%" }}>
<Descriptions title="" bordered > <Descriptions title="" bordered >
<Descriptions.Item label="站点编号" span={3}>{currentSiteInfo}</Descriptions.Item> <Descriptions.Item label="站点编号" span={3}>
{
!currentSiteInfo?<Input value={currentSiteInfo} disabled={true} style={{with:"200px"}}/>:<div>
<Input value={currentSiteInfo} style={{with:"200px"}} disabled={true}/>
<Button>生成编号</Button>
</div>
}
</Descriptions.Item>
<Descriptions.Item label="服务器IP" span={3}>{currentDataBase.ip}</Descriptions.Item> <Descriptions.Item label="服务器IP" span={3}>{currentDataBase.ip}</Descriptions.Item>
<Descriptions.Item label="数据库名称" span={3}>{currentDataBase.dbName}</Descriptions.Item> <Descriptions.Item label="数据库名称" span={3}>{currentDataBase.dbName}</Descriptions.Item>
<Descriptions.Item label="登录名" span={1}>{currentDataBase.userName}</Descriptions.Item> <Descriptions.Item label="登录名" span={1}>{currentDataBase.userName}</Descriptions.Item>
......
...@@ -871,8 +871,8 @@ const UserManage = () => { ...@@ -871,8 +871,8 @@ const UserManage = () => {
// message.error(err); // message.error(err);
// }); // });
DeleteUserNew({ DeleteUserNew({
userID:`"${currentUser.userID}"`, userID:currentUser.userID,
ouID:`"${currentUser.OUID}"` ouID:currentUser.OUID
}).then(res => { }).then(res => {
if (res.code == 0) { if (res.code == 0) {
setDeleteUserVisible(false); setDeleteUserVisible(false);
......
...@@ -199,11 +199,11 @@ export default { ...@@ -199,11 +199,11 @@ export default {
}, },
], ],
}, },
{ // {
path: '/platformCenter/order', // path: '/platformCenter/order',
name: '业务平台', // name: '业务平台',
component: JumpContainer, // component: JumpContainer,
}, // },
{ {
path: '/platformCenter/notify', path: '/platformCenter/notify',
name: '消息平台', name: '消息平台',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment