Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigDataSystem
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
bigDataSystem
Commits
e4ec2448
Commit
e4ec2448
authored
Nov 25, 2024
by
曹泽华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据服务 概览
parent
ceeb52ed
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
998 additions
and
20 deletions
+998
-20
index.vue
src/views/dataService/Overview/index.vue
+682
-4
ipRank.vue
src/views/dataService/Overview/ipRank.vue
+43
-0
useByRank.vue
src/views/dataService/Overview/useByRank.vue
+43
-0
useErrorRank.vue
src/views/dataService/Overview/useErrorRank.vue
+43
-0
useTotalRank.vue
src/views/dataService/Overview/useTotalRank.vue
+43
-0
view.data.ts
src/views/dataService/Overview/view.data.ts
+71
-0
viewData.ts
src/views/dataService/Overview/viewData.ts
+55
-0
index.vue
src/views/dataService/serviceMonitor/index.vue
+15
-13
monitor.data.ts
src/views/dataService/serviceMonitor/monitor.data.ts
+3
-3
No files found.
src/views/dataService/Overview/index.vue
View file @
e4ec2448
This diff is collapsed.
Click to expand it.
src/views/dataService/Overview/ipRank.vue
0 → 100644
View file @
e4ec2448
<
template
>
<PageWrapper>
<BasicTable
@
register=
"registerTable"
/>
</PageWrapper>
</
template
>
<
script
lang=
"ts"
setup
>
import
PageWrapper
from
'@/components/Page/src/PageWrapper.vue'
;
import
BasicTable
from
'@/components/Table/src/BasicTable.vue'
;
import
{
useTable
}
from
'@/components/Table'
;
import
{
IPTableList
}
from
'./viewData'
;
import
{
IPColumns
}
from
'./view.data'
;
const
[
registerTable
,
{
reload
,
updateTableDataRecord
,
getSearchInfo
,
getForm
,
getRowSelection
},
]
=
useTable
({
scroll
:
{
y
:
500
},
api
:
async
(
params
)
=>
{
const
response
=
{
pageNu
:
'1'
,
pageSize
:
'10'
,
pages
:
'1'
,
total
:
IPTableList
.
length
,
code
:
''
,
message
:
''
,
data
:
IPTableList
,
};
return
{
...
response
};
},
rowKey
:
'businessId'
,
rowSelection
:
false
,
pagination
:
false
,
showIndexColumn
:
false
,
columns
:
IPColumns
,
useSearchForm
:
false
,
showTableSetting
:
false
,
bordered
:
true
,
});
</
script
>
<
style
scoped
></
style
>
src/views/dataService/Overview/useByRank.vue
0 → 100644
View file @
e4ec2448
<
template
>
<PageWrapper>
<BasicTable
@
register=
"registerTable"
/>
</PageWrapper>
</
template
>
<
script
lang=
"ts"
setup
>
import
PageWrapper
from
'@/components/Page/src/PageWrapper.vue'
;
import
BasicTable
from
'@/components/Table/src/BasicTable.vue'
;
import
{
useTable
}
from
'@/components/Table'
;
import
{
useByTableList
}
from
'./viewData'
;
import
{
useByColumns
}
from
'./view.data'
;
const
[
registerTable
,
{
reload
,
updateTableDataRecord
,
getSearchInfo
,
getForm
,
getRowSelection
},
]
=
useTable
({
scroll
:
{
y
:
500
},
api
:
async
(
params
)
=>
{
const
response
=
{
pageNu
:
'1'
,
pageSize
:
'10'
,
pages
:
'1'
,
total
:
useByTableList
.
length
,
code
:
''
,
message
:
''
,
data
:
useByTableList
,
};
return
{
...
response
};
},
rowKey
:
'businessId'
,
rowSelection
:
false
,
pagination
:
false
,
showIndexColumn
:
false
,
columns
:
useByColumns
,
useSearchForm
:
false
,
showTableSetting
:
false
,
bordered
:
true
,
})
;
</
script
>
<
style
scoped
></
style
>
src/views/dataService/Overview/useErrorRank.vue
0 → 100644
View file @
e4ec2448
<
template
>
<PageWrapper>
<BasicTable
@
register=
"registerTable"
/>
</PageWrapper>
</
template
>
<
script
lang=
"ts"
setup
>
import
PageWrapper
from
'@/components/Page/src/PageWrapper.vue'
;
import
BasicTable
from
'@/components/Table/src/BasicTable.vue'
;
import
{
useTable
}
from
'@/components/Table'
;
import
{
errorTableList
}
from
'./viewData'
;
import
{
errorColumns
}
from
'./view.data'
;
const
[
registerTable
,
{
reload
,
updateTableDataRecord
,
getSearchInfo
,
getForm
,
getRowSelection
},
]
=
useTable
({
scroll
:
{
y
:
500
},
api
:
async
(
params
)
=>
{
const
response
=
{
pageNu
:
'1'
,
pageSize
:
'10'
,
pages
:
'1'
,
total
:
errorTableList
.
length
,
code
:
''
,
message
:
''
,
data
:
errorTableList
,
};
return
{
...
response
};
},
rowKey
:
'businessId'
,
rowSelection
:
false
,
pagination
:
false
,
showIndexColumn
:
false
,
columns
:
errorColumns
,
useSearchForm
:
false
,
showTableSetting
:
false
,
bordered
:
true
,
})
;
</
script
>
<
style
scoped
></
style
>
src/views/dataService/Overview/useTotalRank.vue
0 → 100644
View file @
e4ec2448
<
template
>
<PageWrapper>
<BasicTable
@
register=
"registerTable"
/>
</PageWrapper>
</
template
>
<
script
lang=
"ts"
setup
>
import
PageWrapper
from
'@/components/Page/src/PageWrapper.vue'
;
import
BasicTable
from
'@/components/Table/src/BasicTable.vue'
;
import
{
useTable
}
from
'@/components/Table'
;
import
{
totalTableList
}
from
'./viewData'
;
import
{
totalColumns
}
from
'./view.data'
;
const
[
registerTable
,
{
reload
,
updateTableDataRecord
,
getSearchInfo
,
getForm
,
getRowSelection
},
]
=
useTable
({
scroll
:
{
y
:
500
},
api
:
async
(
params
)
=>
{
const
response
=
{
pageNu
:
'1'
,
pageSize
:
'10'
,
pages
:
'1'
,
total
:
totalTableList
.
length
,
code
:
''
,
message
:
''
,
data
:
totalTableList
,
};
return
{
...
response
};
},
rowKey
:
'businessId'
,
rowSelection
:
false
,
pagination
:
false
,
showIndexColumn
:
false
,
columns
:
totalColumns
,
useSearchForm
:
false
,
showTableSetting
:
false
,
bordered
:
true
,
})
;
</
script
>
<
style
scoped
></
style
>
src/views/dataService/Overview/view.data.ts
View file @
e4ec2448
export
const
totalColumns
=
[
{
title
:
'排名'
,
dataIndex
:
'ranking'
,
},
{
title
:
'API名称'
,
dataIndex
:
'apiName'
,
},
{
title
:
'调用次数'
,
dataIndex
:
'useNum'
,
},
{
title
:
'响应时间'
,
dataIndex
:
'responseTime'
,
},
];
export
const
errorColumns
=
[
{
title
:
'排名'
,
dataIndex
:
'ranking'
,
},
{
title
:
'API名称'
,
dataIndex
:
'apiName'
,
},
{
title
:
'调用次数'
,
dataIndex
:
'useNum'
,
},
{
title
:
'调用失败率'
,
dataIndex
:
'useError'
,
},
{
title
:
'响应时间'
,
dataIndex
:
'responseTime'
,
},
];
export
const
useByColumns
=
[
{
title
:
'排名'
,
dataIndex
:
'ranking'
,
},
{
title
:
'调用方'
,
dataIndex
:
'useBy'
,
},
{
title
:
'调用次数'
,
dataIndex
:
'useNum'
,
},
];
export
const
IPColumns
=
[
{
title
:
'排名'
,
dataIndex
:
'ranking'
,
},
{
title
:
'IP地址'
,
dataIndex
:
'ipAddress'
,
},
{
title
:
'调用次数'
,
dataIndex
:
'useNum'
,
},
];
src/views/dataService/Overview/viewData.ts
View file @
e4ec2448
export
const
totalTableList
=
[
{
ranking
:
'1'
,
apiName
:
'oracle_sql'
,
useNum
:
'1次'
,
responseTime
:
'2030ms'
,
},{
ranking
:
'2'
,
apiName
:
'test'
,
useNum
:
'2次'
,
responseTime
:
'12ms'
,
},
];
export
const
errorTableList
=
[
{
ranking
:
'1'
,
apiName
:
'oracle_sql'
,
useNum
:
'1次'
,
useError
:
'100%'
,
responseTime
:
'2030ms'
,
},{
ranking
:
'2'
,
apiName
:
'test'
,
useNum
:
'2次'
,
useError
:
'0%'
,
responseTime
:
'12ms'
,
},
];
export
const
useByTableList
=
[
{
ranking
:
'1'
,
useBy
:
'admin'
,
useNum
:
'2'
,
},
{
ranking
:
'2'
,
useBy
:
'user'
,
useNum
:
'1'
,
},
];
export
const
IPTableList
=
[
{
ranking
:
'1'
,
ipAddress
:
'172.26.5.31'
,
useNum
:
'2'
,
},
{
ranking
:
'2'
,
ipAddress
:
'172.18.30.18'
,
useNum
:
'1'
,
},
];
src/views/dataService/serviceMonitor/index.vue
View file @
e4ec2448
<
template
>
<
template
>
<PageWrapper
title=
"供电单位用电量"
contentFullHeight
fixedHeight
>
<PageWrapper
title=
"供电单位用电量"
fixedHeight
>
<template
#
extra
>
<template
#
extra
>
<a-button
type=
"primary"
@
click=
"handleLog"
>
调用日志
</a-button>
<a-button
type=
"primary"
@
click=
"handleLog"
>
调用日志
</a-button>
</
template
>
</
template
>
...
@@ -9,16 +8,20 @@
...
@@ -9,16 +8,20 @@
<ModelTree
class=
"w-1/4 xl:w-1/5"
@
select=
"handleSelect"
/>
<ModelTree
class=
"w-1/4 xl:w-1/5"
@
select=
"handleSelect"
/>
<div
class=
"w-3/4 xl:w-4/5"
>
<div
class=
"w-3/4 xl:w-4/5"
>
<div
style=
"display: flex; flex-direction: column"
>
<div
style=
"display: flex; flex-direction: column"
>
<BasicTable
@
register=
"registerTable"
:searchInfo=
"searchInfo"
:rowSelection=
"rowSelection"
>
<BasicTable
@
register=
"registerTable"
:searchInfo=
"searchInfo"
:rowSelection=
"rowSelection"
>
<template
#
bodyCell=
"
{ column, record }">
<template
#
bodyCell=
"
{ column, record }">
<template
v-if=
"column.key === 'action'"
>
<template
v-if=
"column.key === 'action'"
>
<TableAction
<TableAction
:actions=
"[
:actions=
"[
{
{
icon: 'ant-design:stop-outlined',
icon: 'ant-design:stop-outlined',
onClick: handleEdit.bind(null, record),
onClick: handleEdit.bind(null, record),
},
},
]"
]"
/>
/>
</
template
>
</
template
>
</template>
</template>
...
@@ -28,20 +31,20 @@
...
@@ -28,20 +31,20 @@
<div
style=
"display: flex"
>
<div
style=
"display: flex"
>
<div
class=
"w-1/3"
style=
"margin-left: 20px"
>
<div
class=
"w-1/3"
style=
"margin-left: 20px"
>
<div
style=
"border-left: 3px solid #1396e9; margin-top: 20px; font-size: 15px"
<div
style=
"border-left: 3px solid #1396e9; margin-top: 20px; font-size: 15px"
>
实时总流量
</div
>
实时总流量
</div
>
>
<div
style=
"margin-top: 10px; width: 100%; height: 100%; text-align: center"
>
<div
style=
"margin-top: 10px; width: 100%; height: 100%; text-align: center"
>
<img
src=
"../../../assets/images/serviceMinotor.png"
style=
"width: 68%"
/>
<img
src=
"../../../assets/images/serviceMinotor.png"
style=
"width: 68%"
/>
<div
style=
"font-size: 18px"
>
SLB
</div>
<div
style=
"font-size: 18px"
>
SLB
</div>
<div
<div
><span
style=
"font-size: 23px; font-weight: bold"
>
{{ APIRate }}
</span
><span
style=
"font-size: 23px; font-weight: bold"
>
{{ APIRate }}
</span
><span
style=
"font-size: 18px; margin-left: 5px"
>
MB/S
</span></div
><span
style=
"font-size: 18px; margin-left: 5px"
>
MB/S
</span></div
>
>
</div>
</div>
</div>
</div>
<div
class=
"w-2/3"
>
<div
class=
"w-2/3"
>
<div
style=
"border-left: 3px solid #1396e9; font-size: 15px; margin-top: 20px"
<div
style=
"border-left: 3px solid #1396e9; font-size: 15px; margin-top: 20px"
>
流量统计
</div
>
流量统计
</div
>
>
<div
id=
"echarts2"
style=
"width: 100%; height: 300px"
></div>
<div
id=
"echarts2"
style=
"width: 100%; height: 300px"
></div>
</div>
</div>
...
@@ -50,7 +53,6 @@
...
@@ -50,7 +53,6 @@
</div>
</div>
</div>
</div>
</div>
</div>
</template>
</template>
</PageWrapper>
</PageWrapper>
</template>
</template>
...
...
src/views/dataService/serviceMonitor/monitor.data.ts
View file @
e4ec2448
...
@@ -7,7 +7,7 @@ export const searchFormSchema: FormSchema[] = [
...
@@ -7,7 +7,7 @@ export const searchFormSchema: FormSchema[] = [
field
:
'APIName'
,
field
:
'APIName'
,
label
:
'调用方'
,
label
:
'调用方'
,
component
:
'Select'
,
component
:
'Select'
,
colProps
:
{
span
:
4
},
colProps
:
{
span
:
8
},
componentProps
:
{
componentProps
:
{
options
:
[
options
:
[
{
value
:
'admin'
,
label
:
'admin'
},
{
value
:
'admin'
,
label
:
'admin'
},
...
@@ -21,7 +21,7 @@ export const searchFormSchema: FormSchema[] = [
...
@@ -21,7 +21,7 @@ export const searchFormSchema: FormSchema[] = [
field
:
'callTime'
,
field
:
'callTime'
,
label
:
'调用时间'
,
label
:
'调用时间'
,
component
:
'RangePicker'
,
component
:
'RangePicker'
,
colProps
:
{
span
:
4
},
colProps
:
{
span
:
8
},
defaultValue
:
[
moment
().
subtract
(
7
,
'days'
).
format
(
'YYYY-MM-DD'
),
moment
().
format
(
'YYYY-MM-DD'
)],
defaultValue
:
[
moment
().
subtract
(
7
,
'days'
).
format
(
'YYYY-MM-DD'
),
moment
().
format
(
'YYYY-MM-DD'
)],
componentProps
:
{
componentProps
:
{
...
@@ -31,7 +31,7 @@ export const searchFormSchema: FormSchema[] = [
...
@@ -31,7 +31,7 @@ export const searchFormSchema: FormSchema[] = [
field
:
'callUseTime'
,
field
:
'callUseTime'
,
label
:
'调用有效期'
,
label
:
'调用有效期'
,
component
:
'DatePicker'
,
component
:
'DatePicker'
,
colProps
:
{
span
:
4
},
colProps
:
{
span
:
8
},
},
},
];
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment