Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
097ecf69
authored
2025-02-11 16:23:10 +0800
by
xukangle
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:新增看板数据产品调用情况
1 parent
3c612f52
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
23 deletions
src/api/modules/dataAsset.ts
src/views/data_transaction/entryManagement.vue
src/views/indexNewBigScreen.vue
src/api/modules/dataAsset.ts
View file @
097ecf6
...
...
@@ -428,6 +428,15 @@ export const getApiDetail = (params) => request({
method
:
'get'
,
})
// 跨服务掉加工交付接口 获取API调用次数
export
const
getApiInvokeCount
=
(
data
)
=>
request
({
url
:
`http://localhost:9000/delivery/ms-daop-jgjf-data-open-service/home-page/dam/call-api-stat`
,
// url: `http://192.168.6.22:29900/delivery/ms-daop-jgjf-data-open-service/home-page/dam/call-api-stat?startTime=${params.startTime}&endTime=${params.endTime}`,
method
:
'post'
,
data
})
// export const getTenantInfo = (params) => request({
// // url: `${import.meta.env.VITE_APP_PERSONAL_URL}/tenant/getByGuid/${params}`,
// // url: `http://localhost:9000/circulation/ms-data-circulation-portal-service/enterprise/detail-by-name`,
...
...
src/views/data_transaction/entryManagement.vue
View file @
097ecf6
...
...
@@ -15,7 +15,6 @@ import {
getAssetDetail
}
from
"@/api/modules/dataTransaction"
;
import
{
getDamCatalogTable
}
from
'@/api/modules/dataAsset'
;
import
{
da
}
from
'element-plus/es/locale'
;
const
route
=
useRoute
()
const
userStore
=
useUserStore
();
const
searchItemList
=
ref
([
...
...
src/views/indexNewBigScreen.vue
View file @
097ecf6
...
...
@@ -19,6 +19,7 @@ import useUserStore from "@/store/modules/user";
import
Moment
from
"moment"
;
import
platformIndexNewBigScreen
from
"./platformIndexNewBigScreen.vue"
;
import
{
getDownFileSignByUrl
,
obsDownloadRequest
,
parseAndDecodeUrl
}
from
"@/api/modules/obsService"
;
import
{
getApiInvokeCount
}
from
"@/api/modules/dataAsset"
;
// import platformIndex from "./data_asset/platformIndex.vue";
const
router
=
useRouter
();
...
...
@@ -333,8 +334,8 @@ const financingTableInfo = ref({
minHeight
:
'60px'
,
fields
:
[
{
label
:
"
资产
名称"
,
field
:
"
da
Name"
,
label
:
"
产品
名称"
,
field
:
"
api
Name"
,
width
:
140
,
// type: "text_btn",
// columClass: 'text_btn',
...
...
@@ -342,24 +343,24 @@ const financingTableInfo = ref({
},
// { label: "授信日期", field: "creditGrantingTime", width: 110 },
{
label
:
"
授信金额(万元)
"
,
field
:
"c
reditGrantingMoney
"
,
label
:
"
调用次数
"
,
field
:
"c
allApiCount
"
,
width
:
140
,
align
:
"right"
,
getName
:
(
scope
)
=>
{
return
changeNum
(
scope
.
row
.
creditGrantingMoney
??
0
,
2
,
true
)
+
'万元'
;
},
},
{
label
:
"授信期限(月)"
,
field
:
"creditGrantingTerm"
,
width
:
90
,
align
:
"right"
,
getName
:
(
scope
)
=>
{
return
changeNum
(
scope
.
row
.
creditGrantingTerm
??
0
)
+
'月'
;
},
// getName: (scope) => {
// return changeNum(scope.row.creditGrantingMoney ?? 0, 2, true) + '万元';
// },
},
{
label
:
"授信主体"
,
field
:
"creditGrantingGenerality"
,
minWidth
:
100
},
// {
// label: "授信期限(月)",
// field: "creditGrantingTerm",
// width: 90,
// align: "right",
// getName: (scope) => {
// return changeNum(scope.row.creditGrantingTerm ?? 0) + '月';
// },
// },
{
label
:
"最近调用时间"
,
field
:
"invokeStartTime"
,
minWidth
:
100
},
],
data
:
[],
showPage
:
false
,
...
...
@@ -369,18 +370,25 @@ const financingTableInfo = ref({
loading1
:
false
,
});
// 数据产品调用情况
// const getDataInfo = async () => {
// const params = {
// startTime: startTime.value || '',
// endTime: endTime.value || '',
// }
// const res: any = await getApiInvokeCount(params);
// }
const
getFinancingTableData
=
()
=>
{
financingTableInfo
.
value
.
loading1
=
true
;
getFinanceInfo
({
pageSize
:
200
,
pageIndex
:
1
,
const
params
=
{
startTime
:
startTime
.
value
||
''
,
endTime
:
endTime
.
value
||
''
,
}).
then
((
res
:
any
)
=>
{
}
getApiInvokeCount
(
params
).
then
((
res
:
any
)
=>
{
financingTableInfo
.
value
.
loading1
=
false
;
if
(
res
.
code
==
proxy
.
$passCode
)
{
let
data
=
res
.
data
||
{};
financingTableInfo
.
value
.
data
=
data
.
records
||
[];
financingTableInfo
.
value
.
data
=
data
||
[];
}
else
{
ElMessage
.
error
(
res
.
msg
);
}
...
...
@@ -670,6 +678,9 @@ watch(
handleChangeTime
(
daterange
.
value
);
},
);
const
handleDatePickerChange
=
(
val
)
=>
{
// 更新开始时间和结束时间
startTime
.
value
=
val
[
0
];
...
...
@@ -695,6 +706,7 @@ const handleDatePickerChange = (val) => {
filterDate
.
value
=
''
;
};
const
startTime
=
ref
()
const
endTime
=
ref
()
const
handleChangeTime
=
(
val
)
=>
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment