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

perf: 菜单

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