|
|
@@ -2,7 +2,7 @@
|
|
|
* @Author: tengmingxue 1473375109@qq.com
|
|
|
* @Date: 2023-09-13 10:06:22
|
|
|
* @LastEditors: tengmingxue 1473375109@qq.com
|
|
|
- * @LastEditTime: 2024-02-23 17:10:32
|
|
|
+ * @LastEditTime: 2024-03-04 14:11:26
|
|
|
* @FilePath: \xld-gis-admin\src\views\dashboard\workbench\component\TopCardStatistic.vue
|
|
|
* @Description: 统计卡片
|
|
|
-->
|
|
|
@@ -36,9 +36,14 @@
|
|
|
</template>
|
|
|
<script lang="ts">
|
|
|
import { defineComponent, onMounted, toRefs, onUnmounted, nextTick, reactive } from 'vue';
|
|
|
-import { queryApiUseCountMouths,querySupportApp,querySourceAccess } from '/@/api/interface/interface';
|
|
|
-import {list} from '/@/api/authorize/authorize';
|
|
|
-import {GetIServerRequestCount} from '/@/api/dashboard/index';
|
|
|
+import {
|
|
|
+ queryApiUseCountMouths,
|
|
|
+ querySupportApp,
|
|
|
+ querySourceAccess,
|
|
|
+ QueryDRResourceFileSize,
|
|
|
+} from '/@/api/interface/interface';
|
|
|
+import { list } from '/@/api/authorize/authorize';
|
|
|
+import { GetIServerRequestCount } from '/@/api/dashboard/index';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'TopCardStatistic',
|
|
|
@@ -52,7 +57,7 @@ export default defineComponent({
|
|
|
|
|
|
setup(props) {
|
|
|
const data = reactive({
|
|
|
- interval:null,
|
|
|
+ interval: null,
|
|
|
statisticData: props.statisticData,
|
|
|
dataSize: 10000,
|
|
|
dataType: 5,
|
|
|
@@ -76,11 +81,20 @@ export default defineComponent({
|
|
|
// });
|
|
|
// console.log(supportNumRes)
|
|
|
}
|
|
|
- if(sysRes){
|
|
|
+ if (sysRes) {
|
|
|
analysisProject = sysRes.length;
|
|
|
}
|
|
|
data.analysisProject = analysisProject;
|
|
|
data.supportNum = supportNum;
|
|
|
+ //(1)数据容量统计 文件个数字段sumcount(SUMCOUNT),文件大小字段SUMSIZE
|
|
|
+ const sizeRes = await QueryDRResourceFileSize({}) as any;
|
|
|
+ if(sizeRes && sizeRes.length >0){
|
|
|
+ let sumSize = 0
|
|
|
+ sizeRes.map(item=>{
|
|
|
+ sumSize += item.SUMSIZE
|
|
|
+ })
|
|
|
+ data.dataSize = sumSize
|
|
|
+ }
|
|
|
|
|
|
// //(2)查询支撑应用
|
|
|
// const res2 = await querySupportApp() as any
|
|
|
@@ -91,7 +105,6 @@ export default defineComponent({
|
|
|
// //(3)查询资源访问
|
|
|
// const res3 = await querySourceAccess({}) as any
|
|
|
// if(res3 && res3.resp_cod === 0){}
|
|
|
-
|
|
|
};
|
|
|
|
|
|
onMounted(() => {
|