|
@@ -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>
|