fix:新增看板数据产品调用情况
Showing
3 changed files
with
43 additions
and
23 deletions
| ... | @@ -428,6 +428,15 @@ export const getApiDetail = (params) => request({ | ... | @@ -428,6 +428,15 @@ export const getApiDetail = (params) => request({ |
| 428 | method: 'get', | 428 | method: 'get', |
| 429 | }) | 429 | }) |
| 430 | 430 | ||
| 431 | // 跨服务掉加工交付接口 获取API调用次数 | ||
| 432 | export const getApiInvokeCount = (data) => request({ | ||
| 433 | url: `http://localhost:9000/delivery/ms-daop-jgjf-data-open-service/home-page/dam/call-api-stat`, | ||
| 434 | // 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}`, | ||
| 435 | method: 'post', | ||
| 436 | data | ||
| 437 | }) | ||
| 438 | |||
| 439 | |||
| 431 | // export const getTenantInfo = (params) => request({ | 440 | // export const getTenantInfo = (params) => request({ |
| 432 | // // url: `${import.meta.env.VITE_APP_PERSONAL_URL}/tenant/getByGuid/${params}`, | 441 | // // url: `${import.meta.env.VITE_APP_PERSONAL_URL}/tenant/getByGuid/${params}`, |
| 433 | // // url: `http://localhost:9000/circulation/ms-data-circulation-portal-service/enterprise/detail-by-name`, | 442 | // // url: `http://localhost:9000/circulation/ms-data-circulation-portal-service/enterprise/detail-by-name`, | ... | ... |
| ... | @@ -15,7 +15,6 @@ import { | ... | @@ -15,7 +15,6 @@ import { |
| 15 | getAssetDetail | 15 | getAssetDetail |
| 16 | } from "@/api/modules/dataTransaction"; | 16 | } from "@/api/modules/dataTransaction"; |
| 17 | import { getDamCatalogTable } from '@/api/modules/dataAsset'; | 17 | import { getDamCatalogTable } from '@/api/modules/dataAsset'; |
| 18 | import { da } from 'element-plus/es/locale'; | ||
| 19 | const route = useRoute() | 18 | const route = useRoute() |
| 20 | const userStore = useUserStore(); | 19 | const userStore = useUserStore(); |
| 21 | const searchItemList = ref([ | 20 | const searchItemList = ref([ | ... | ... |
| ... | @@ -19,6 +19,7 @@ import useUserStore from "@/store/modules/user"; | ... | @@ -19,6 +19,7 @@ import useUserStore from "@/store/modules/user"; |
| 19 | import Moment from "moment"; | 19 | import Moment from "moment"; |
| 20 | import platformIndexNewBigScreen from "./platformIndexNewBigScreen.vue"; | 20 | import platformIndexNewBigScreen from "./platformIndexNewBigScreen.vue"; |
| 21 | import { getDownFileSignByUrl, obsDownloadRequest, parseAndDecodeUrl } from "@/api/modules/obsService"; | 21 | import { getDownFileSignByUrl, obsDownloadRequest, parseAndDecodeUrl } from "@/api/modules/obsService"; |
| 22 | import { getApiInvokeCount } from "@/api/modules/dataAsset"; | ||
| 22 | // import platformIndex from "./data_asset/platformIndex.vue"; | 23 | // import platformIndex from "./data_asset/platformIndex.vue"; |
| 23 | 24 | ||
| 24 | const router = useRouter(); | 25 | const router = useRouter(); |
| ... | @@ -333,8 +334,8 @@ const financingTableInfo = ref({ | ... | @@ -333,8 +334,8 @@ const financingTableInfo = ref({ |
| 333 | minHeight: '60px', | 334 | minHeight: '60px', |
| 334 | fields: [ | 335 | fields: [ |
| 335 | { | 336 | { |
| 336 | label: "资产名称", | 337 | label: "产品名称", |
| 337 | field: "daName", | 338 | field: "apiName", |
| 338 | width: 140, | 339 | width: 140, |
| 339 | // type: "text_btn", | 340 | // type: "text_btn", |
| 340 | // columClass: 'text_btn', | 341 | // columClass: 'text_btn', |
| ... | @@ -342,24 +343,24 @@ const financingTableInfo = ref({ | ... | @@ -342,24 +343,24 @@ const financingTableInfo = ref({ |
| 342 | }, | 343 | }, |
| 343 | // { label: "授信日期", field: "creditGrantingTime", width: 110 }, | 344 | // { label: "授信日期", field: "creditGrantingTime", width: 110 }, |
| 344 | { | 345 | { |
| 345 | label: "授信金额(万元)", | 346 | label: "调用次数", |
| 346 | field: "creditGrantingMoney", | 347 | field: "callApiCount", |
| 347 | width: 140, | 348 | width: 140, |
| 348 | align: "right", | 349 | align: "right", |
| 349 | getName: (scope) => { | 350 | // getName: (scope) => { |
| 350 | return changeNum(scope.row.creditGrantingMoney ?? 0, 2, true) + '万元'; | 351 | // return changeNum(scope.row.creditGrantingMoney ?? 0, 2, true) + '万元'; |
| 351 | }, | 352 | // }, |
| 352 | }, | ||
| 353 | { | ||
| 354 | label: "授信期限(月)", | ||
| 355 | field: "creditGrantingTerm", | ||
| 356 | width: 90, | ||
| 357 | align: "right", | ||
| 358 | getName: (scope) => { | ||
| 359 | return changeNum(scope.row.creditGrantingTerm ?? 0) + '月'; | ||
| 360 | }, | ||
| 361 | }, | 353 | }, |
| 362 | { label: "授信主体", field: "creditGrantingGenerality", minWidth: 100 }, | 354 | // { |
| 355 | // label: "授信期限(月)", | ||
| 356 | // field: "creditGrantingTerm", | ||
| 357 | // width: 90, | ||
| 358 | // align: "right", | ||
| 359 | // getName: (scope) => { | ||
| 360 | // return changeNum(scope.row.creditGrantingTerm ?? 0) + '月'; | ||
| 361 | // }, | ||
| 362 | // }, | ||
| 363 | { label: "最近调用时间", field: "invokeStartTime", minWidth: 100 }, | ||
| 363 | ], | 364 | ], |
| 364 | data: [], | 365 | data: [], |
| 365 | showPage: false, | 366 | showPage: false, |
| ... | @@ -369,18 +370,25 @@ const financingTableInfo = ref({ | ... | @@ -369,18 +370,25 @@ const financingTableInfo = ref({ |
| 369 | loading1: false, | 370 | loading1: false, |
| 370 | }); | 371 | }); |
| 371 | 372 | ||
| 373 | // 数据产品调用情况 | ||
| 374 | // const getDataInfo = async () => { | ||
| 375 | // const params = { | ||
| 376 | // startTime: startTime.value || '', | ||
| 377 | // endTime: endTime.value || '', | ||
| 378 | // } | ||
| 379 | // const res: any = await getApiInvokeCount(params); | ||
| 380 | // } | ||
| 372 | const getFinancingTableData = () => { | 381 | const getFinancingTableData = () => { |
| 373 | financingTableInfo.value.loading1 = true; | 382 | financingTableInfo.value.loading1 = true; |
| 374 | getFinanceInfo({ | 383 | const params = { |
| 375 | pageSize: 200, | ||
| 376 | pageIndex: 1, | ||
| 377 | startTime: startTime.value || '', | 384 | startTime: startTime.value || '', |
| 378 | endTime: endTime.value || '', | 385 | endTime: endTime.value || '', |
| 379 | }).then((res: any) => { | 386 | } |
| 387 | getApiInvokeCount(params).then((res: any) => { | ||
| 380 | financingTableInfo.value.loading1 = false; | 388 | financingTableInfo.value.loading1 = false; |
| 381 | if (res.code == proxy.$passCode) { | 389 | if (res.code == proxy.$passCode) { |
| 382 | let data = res.data || {}; | 390 | let data = res.data || {}; |
| 383 | financingTableInfo.value.data = data.records || []; | 391 | financingTableInfo.value.data = data || []; |
| 384 | } else { | 392 | } else { |
| 385 | ElMessage.error(res.msg); | 393 | ElMessage.error(res.msg); |
| 386 | } | 394 | } |
| ... | @@ -670,6 +678,9 @@ watch( | ... | @@ -670,6 +678,9 @@ watch( |
| 670 | handleChangeTime(daterange.value); | 678 | handleChangeTime(daterange.value); |
| 671 | }, | 679 | }, |
| 672 | ); | 680 | ); |
| 681 | |||
| 682 | |||
| 683 | |||
| 673 | const handleDatePickerChange = (val) => { | 684 | const handleDatePickerChange = (val) => { |
| 674 | // 更新开始时间和结束时间 | 685 | // 更新开始时间和结束时间 |
| 675 | startTime.value = val[0]; | 686 | startTime.value = val[0]; |
| ... | @@ -695,6 +706,7 @@ const handleDatePickerChange = (val) => { | ... | @@ -695,6 +706,7 @@ const handleDatePickerChange = (val) => { |
| 695 | filterDate.value = ''; | 706 | filterDate.value = ''; |
| 696 | }; | 707 | }; |
| 697 | 708 | ||
| 709 | |||
| 698 | const startTime = ref() | 710 | const startTime = ref() |
| 699 | const endTime = ref() | 711 | const endTime = ref() |
| 700 | const handleChangeTime = (val) => { | 712 | const handleChangeTime = (val) => { | ... | ... |
-
Please register or sign in to post a comment