Commit 53b6354a authored by 陈前坚's avatar 陈前坚

perf: 菜单

parent 7e5d151d
......@@ -117,6 +117,11 @@ const ServiceLog = () => {
},
];
// 在起止时间任意一个变化后获取数据
useEffect(() => {
if (startTime && endTime) {
countInterval();
}
}, [startTime, endTime]);
useEffect(() => {
// countInterval();
if (startTime && endTime) {
......@@ -246,7 +251,7 @@ const ServiceLog = () => {
<Option value="-1">错误</Option>
</Select>
<Search
// allowClear
allowClear
style={{ width: 200, marginLeft: '20px' }}
placeholder="请输入接口名称"
onSearch={() => {
......
......@@ -69,21 +69,6 @@ const ServiceLog = () => {
dataIndex: 'IP',
key: 'IP',
},
{
title: '请求方法',
dataIndex: 'Method',
key: 'Method',
},
{
title: '查询参数',
dataIndex: 'QueryString',
key: 'QueryString',
},
{
title: '请求体',
dataIndex: 'Body',
key: 'Body',
},
{
title: '返回状态',
dataIndex: 'Result',
......@@ -99,6 +84,27 @@ const ServiceLog = () => {
title: '错误信息',
dataIndex: 'ErrorMsg',
key: 'ErrorMsg',
render: record => {
if (!record) {
return '-';
}
return record;
},
},
{
title: '请求方法',
dataIndex: 'Method',
key: 'Method',
},
{
title: '查询参数',
dataIndex: 'QueryString',
key: 'QueryString',
},
{
title: '请求体',
dataIndex: 'Body',
key: 'Body',
},
{
title: '耗时/ms',
......@@ -118,7 +124,11 @@ const ServiceLog = () => {
];
// 在起止时间任意一个变化后获取数据
useEffect(() => {
// countInterval();
if (startTime && endTime) {
countInterval(); // 根据起止时间计算时间间隔
}
}, [startTime, endTime]);
useEffect(() => {
if (startTime && endTime) {
setLoading(true);
getData('/TrafficStatistics', setVisitedCount); // 访问量统计
......@@ -246,7 +256,7 @@ const ServiceLog = () => {
<Option value="-1">错误</Option>
</Select>
<Search
// allowClear
allowClear
style={{ width: 200, marginLeft: '20px' }}
placeholder="请输入接口名称"
onSearch={() => {
......
......@@ -14,7 +14,7 @@ const dictionary = () => {
<TabPane tab="通用数据字典" key="1">
<WebDic />
</TabPane>
<TabPane tab="app数据字典" key="2" type="card">
<TabPane tab="App数据字典" key="2" type="card">
<AppDic />
</TabPane>
</Tabs>
......
......@@ -76,12 +76,6 @@ export default {
component: BlankLayout,
authority: adminAuthority,
routes: [
// {
// path: '/dbm/solution',
// name: '数据库解决方案',
// authority: superAuthority,
// component: CurrentSolution,
// },
{
path: '/dbm/dbInit',
name: '数据库连接',
......@@ -156,6 +150,28 @@ export default {
},
],
},
{
path: '/platformCenter/iot',
name: '物联网平台',
component: BaseFrameContainer,
tabs: [
{
tabName: '模型类型',
url:
'/web4/?widget=configuration/ConfigurationsOperationV1/ModelTypeManage/ModelTypeManage|hideMap=true',
},
{
tabName: '模型文件',
url:
'/web4/?widget=configuration/ConfigurationsOperationV1/ModelFileManage/ModelFileManage|hideMap=true',
},
{
tabName: '画板管理',
url:
'/web4/?widget=configuration/ConfigurationsOperationV1/DrawBoardManage/DrawBoardManage|hideMap=true',
},
],
},
// {
// path: '/platformCenter/order',
// name: '工单平台',
......@@ -194,7 +210,7 @@ export default {
},
{
path: '/platformCenter/dictionary',
name: '数据字典',
name: '数据中心',
component: Dictionary,
},
],
......@@ -208,12 +224,12 @@ export default {
routes: [
{
path: '/productCenter/web',
name: 'web配置',
name: 'Web配置',
component: WebConfigPage,
},
{
path: '/productCenter/app',
name: 'app配置',
name: 'App配置',
component: AppConfigPage,
},
{
......
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