Explorar el Código

档案统计接口

duy hace 2 años
padre
commit
d5ffa5c7ac
Se han modificado 2 ficheros con 36 adiciones y 4 borrados
  1. 9 1
      src/api/modules/using/stats.js
  2. 27 3
      src/views/using/stats.vue

+ 9 - 1
src/api/modules/using/stats.js

@@ -28,6 +28,14 @@ export default {
         
         }, msg);
     },
- 
+    //获取原生文件数量getallnativeChartData
+    async getallnativeChartData(form, msg = true) {
+        return httpApi({
+            url: '/api//blade-archive/archiveFile/allArchiveFileByContractType',
+            method: 'get',
+            params: form,
+        
+        }, msg);
+    },
 }
 

+ 27 - 3
src/views/using/stats.vue

@@ -78,6 +78,7 @@ onMounted(() => {
     gethasBeenChartData()
     getfixedChartData()
     getdestroyChartData()
+    getnativeChartData()
 
 })
 
@@ -97,7 +98,18 @@ const nativeChartData = ref([
     {title: '监理', key1: 60, key2: 80},
     {title: '业主', key1: 4, key2: 30},
 ])
-
+//获取原生文件数量
+const getnativeChartData = async () => {
+    const { error, code, data } = await archivesStatsApi.getallnativeChartData({
+        projectId: projectId.value,
+       
+    });
+    if (!error && code === 200) {
+        nativeChartData.value = getArrValue(data);
+    } else {
+        nativeChartData.value = [];
+    }
+}
 
 //已组案卷 图表配置
 const hasBeenChartRef = ref(null)
@@ -139,7 +151,6 @@ const fixedChartData = ref([
 ])
 //获取档案年限
 const getfixedChartData = async () => {
-    isLoading.value = true
     const { error, code, data } = await archivesStatsApi.getallArchiveAge({
         projectId: projectId.value,
        
@@ -174,6 +185,7 @@ const getdestroyChartData = async () => {
     });
     if (!error && code === 200) {
         destroyChartData.value = getObjValue(data);
+        console.log(data,'已销毁');
     } else {
         destroyChartData.value = [];
     }
@@ -182,7 +194,19 @@ const getdestroyChartData = async () => {
 const isLoading = ref(false)
 const tableData = ref([])
 
-
+const loadData = async () => {
+    isLoading.value=true
+    const { error, code, data } = await archivesStatsApi.getallArchiveDestory({
+        projectId: projectId.value,
+       
+    });
+    if (!error && code === 200) {
+        // tableData.value = getObjValue(data);
+        console.log(data,'已销毁');
+    } else {
+        tableData.value = [];
+    }
+}
 
 
 </script>