|
@@ -118,9 +118,9 @@ const nativeChartConfig = {
|
|
|
//原生、数字化文件数量 图表数据
|
|
|
const isNativeLoading = ref(false)
|
|
|
const nativeChartData = ref([
|
|
|
- { title: '施工', key1: 100, key2: 50 },
|
|
|
- { title: '监理', key1: 60, key2: 80 },
|
|
|
- { title: '业主', key1: 4, key2: 30 },
|
|
|
+ { title: '施工', key1: 0, key2: 0 },
|
|
|
+ { title: '监理', key1: 0, key2: 0 },
|
|
|
+ { title: '业主', key1: 0, key2: 0 },
|
|
|
])
|
|
|
//获取原生文件数量
|
|
|
const getnativeChartData = async () => {
|
|
@@ -146,22 +146,11 @@ const hasBeenChartConfig = {
|
|
|
|
|
|
//已组案卷 图表数据
|
|
|
const isHasBeenLoading = ref(false)
|
|
|
-const hasBeenChartData = ref({
|
|
|
- key1: 3210, key2: 850, key3: 1203,
|
|
|
-})
|
|
|
-//档案年限占比fixedChartConfig
|
|
|
-const fixedChartConfig = {
|
|
|
- name: ['永久', '30年', '10年'],
|
|
|
- key: ['key1', 'key2', 'key3'],
|
|
|
- color: ['#DF868F', '#7727F5', '#74F9FD'],
|
|
|
- label: '档案年限占比',
|
|
|
-}
|
|
|
+const hasBeenChartData = ref({ key1: 0, key2: 0, key3: 0 })
|
|
|
//获取已组案卷
|
|
|
const gethasBeenChartData = async () => {
|
|
|
-
|
|
|
const { error, code, data } = await archivesStatsApi.getallArchiveByContractType({
|
|
|
projectId: projectId.value,
|
|
|
-
|
|
|
})
|
|
|
if (!error && code === 200) {
|
|
|
hasBeenChartData.value = getObjValue(data)
|
|
@@ -173,18 +162,17 @@ const gethasBeenChartData = async () => {
|
|
|
//档案年限占比 图表数据
|
|
|
const fixedChartRef = ref(null)
|
|
|
const isFixedLoading = ref(false)
|
|
|
-const fixedChartData = ref([
|
|
|
- { value: 1048, name: '永久' },
|
|
|
- { value: 735, name: '30年' },
|
|
|
- { value: 580, name: '20年' },
|
|
|
- { value: 484, name: '10年' },
|
|
|
- { value: 300, name: '5年' },
|
|
|
-])
|
|
|
+const fixedChartConfig = {
|
|
|
+ name: ['永久', '30年', '10年'],
|
|
|
+ key: ['key1', 'key2', 'key3'],
|
|
|
+ color: ['#DF868F', '#7727F5', '#74F9FD'],
|
|
|
+ label: '档案年限占比',
|
|
|
+}
|
|
|
+const fixedChartData = ref({ key1: 0, key2: 0, key3: 0 })
|
|
|
//获取档案年限
|
|
|
const getfixedChartData = async () => {
|
|
|
const { error, code, data } = await archivesStatsApi.getallArchiveAge({
|
|
|
projectId: projectId.value,
|
|
|
-
|
|
|
})
|
|
|
if (!error && code === 200) {
|
|
|
let objarr = getArrValue(data)
|
|
@@ -194,15 +182,13 @@ const getfixedChartData = async () => {
|
|
|
obj['key1'] = ele.value
|
|
|
} else if (ele.name === '30年') {
|
|
|
obj['key2'] = ele.value
|
|
|
- } else if (ele.name === '31年') {
|
|
|
+ } else if (ele.name === '10年') {
|
|
|
obj['key3'] = ele.value
|
|
|
}
|
|
|
-
|
|
|
})
|
|
|
-
|
|
|
fixedChartData.value = obj
|
|
|
} else {
|
|
|
- fixedChartData.value = {}
|
|
|
+ fixedChartData.value = { key1: 0, key2: 0, key3: 0 }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -218,13 +204,12 @@ const destroyChartConfig = {
|
|
|
//已销毁案卷 图表数据
|
|
|
const isDestroyLoading = ref(false)
|
|
|
const destroyChartData = ref({
|
|
|
- key1: 202, key2: 150, key3: 100,
|
|
|
+ key1: 0, key2: 0, key3: 0,
|
|
|
})
|
|
|
//获取已销毁案卷
|
|
|
const getdestroyChartData = async () => {
|
|
|
const { error, code, data } = await archivesStatsApi.getallArchiveDestory({
|
|
|
projectId: projectId.value,
|
|
|
-
|
|
|
})
|
|
|
if (!error && code === 200) {
|
|
|
destroyChartData.value = getObjValue(data)
|
|
@@ -239,7 +224,6 @@ const getallArchiveFileSize = async () => {
|
|
|
isSizeLoading.value = true
|
|
|
const { error, code, data } = await archivesStatsApi.getallArchiveSize({
|
|
|
projectId: projectId.value,
|
|
|
-
|
|
|
})
|
|
|
if (!error && code === 200) {
|
|
|
allArchiveFileSizedata.value = data
|
|
@@ -261,22 +245,18 @@ const gettableData = async () => {
|
|
|
const { error, code, data } = await archivesStatsApi.getArchiveTreeAndArchiveCount({
|
|
|
projectId: projectId.value,
|
|
|
nodeId:nodeId.value,
|
|
|
-
|
|
|
})
|
|
|
+ let resdata = getArrValue(data)
|
|
|
if (!error && code === 200) {
|
|
|
- let resdata = getArrValue(data)
|
|
|
tableData.value = resdata
|
|
|
isLoading.value = false
|
|
|
-
|
|
|
} else {
|
|
|
tableData.value = resdata
|
|
|
}
|
|
|
isLoading.value = false
|
|
|
-
|
|
|
}
|
|
|
const loadData = (tree, treeNode, resolve)=>{
|
|
|
archivesStatsApi.getArchiveTreeAndArchiveCount({ projectId: projectId.value, nodeId:tree.id }).then((response) => {
|
|
|
- console.log(response, 'response')
|
|
|
let resdata = getArrValue(response.data)
|
|
|
resolve(resdata)
|
|
|
})
|