097ecf69 by xukangle

fix:新增看板数据产品调用情况

1 parent 3c612f52
......@@ -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`,
......
......@@ -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([
......
......@@ -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: "daName",
label: "产品名称",
field: "apiName",
width: 140,
// type: "text_btn",
// columClass: 'text_btn',
......@@ -342,24 +343,24 @@ const financingTableInfo = ref({
},
// { label: "授信日期", field: "creditGrantingTime", width: 110 },
{
label: "授信金额(万元)",
field: "creditGrantingMoney",
label: "调用次数",
field: "callApiCount",
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) => {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!