Browse Source

非结构化数据对接

tengmingxue 1 year ago
parent
commit
b7cf370929

+ 19 - 1
src/api/interface/interface.ts

@@ -38,7 +38,9 @@ enum Api {
     //(12)组件支撑次数
     GetSupportModule = '/datasearch-center/space/getSRResourceGroup',
     //(12)获取Iserver统计数据
-    GetIserverUseCountByType = '/external-service-center/IServer/getIServerCountData'
+    GetIserverUseCountByType = '/external-service-center/IServer/getIServerCountData',
+    //(13)
+    GetDataStoreData = '/interface-center/monitor/getDataStoreData',
 }
 
 /**
@@ -338,4 +340,20 @@ export function DataStoreGroupByStatistics(params) {
     })
 }
 
+/**
+ * @description
+*/
+
+export function QueryDataStoreData(params) {
+    return new Promise<void>((resolve) => {
+        defHttp.get({ url: Api.GetDataStoreData, params })
+            .then((r) => {
+                if (r.resp_code == 0 && r.datas && r.datas.length) {
+                    resolve(r.datas);
+                } else {
+                    resolve();
+                }
+            })
+    })
+}
 

+ 5 - 2
src/views/dashboard/workbench/component/UnstructuredStatistic.vue

@@ -2,7 +2,7 @@
  * @Author: tengmingxue 1473375109@qq.com
  * @Date: 2023-09-13 10:06:22
  * @LastEditors: tengmingxue 1473375109@qq.com
- * @LastEditTime: 2024-01-26 16:41:02
+ * @LastEditTime: 2024-02-29 20:41:28
  * @FilePath: \xld-gis-admin\src\views\dashboard\workbench\component\TopCardStatistic.vue
  * @Description: 统计卡片
 -->
@@ -312,7 +312,7 @@
 </template>
     <script lang="ts">
 import { defineComponent, onMounted, toRefs, onUnmounted, nextTick, reactive } from 'vue';
-import { DataStoreGroupByStatistics } from '/@/api/interface/interface';
+import { DataStoreGroupByStatistics,QueryDataStoreData } from '/@/api/interface/interface';
 
 export default defineComponent({
   name: 'UnstructuredStatistic',
@@ -346,6 +346,9 @@ export default defineComponent({
         data.file.size = parseFloat(parseInt(res[0]['size']) / (1024 * 1024 * 1024)).toFixed(2);
       }
       console.log('文件数据统计', res, data.file);
+      const result = await QueryDataStoreData({})
+      console.log('文件数据',result)
+      debugger
     };
     onMounted(() => {
       queryData();