From 23bc62ca35f9e2bef38b18dd66616d20c72ed6fc Mon Sep 17 00:00:00 2001
From: xuhuajiao <13476289682@163.com>
Date: Fri, 29 May 2026 10:31:12 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=A9=E7=94=A8=E7=99=BB=E8=AE=B0=E7=BB=9F?=
=?UTF-8?q?=E8=AE=A1=20=E9=83=A8=E9=97=A8=E9=80=89=E6=8B=A9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/system/dept.js | 12 +++++-
.../usageCountStatistics/index.vue | 2 +-
.../utilizeRegistrationStatistics/index.vue | 39 +++++++++++++++++--
3 files changed, 47 insertions(+), 6 deletions(-)
diff --git a/src/api/system/dept.js b/src/api/system/dept.js
index c02dd1b..5a593c9 100644
--- a/src/api/system/dept.js
+++ b/src/api/system/dept.js
@@ -1,5 +1,5 @@
import request from '@/utils/request'
-
+import qs from 'qs'
export function getDepts(params) {
return request({
url: 'api/depts/initDeptsList',
@@ -56,5 +56,13 @@ export function FetchSonDepts(params) {
params
})
}
+// 根据全宗集合获取全部部门
+// http://192.168.99.63:11200/api/depts/initDeptsAllByFondsId?fondsIds=2&fondsIds=3
+export function FetchInitDeptsAllByFondsId(params) {
+ return request({
+ url: 'api/depts/initDeptsAllByFondsId' + '?' + qs.stringify(params, { indices: false }),
+ method: 'get'
+ })
+}
-export default { add, edit, del, getDepts, getDeptSuperior, FetchUpdateDeptsStatus, FetchSonDepts }
+export default { add, edit, del, getDepts, getDeptSuperior, FetchUpdateDeptsStatus, FetchSonDepts, FetchInitDeptsAllByFondsId }
diff --git a/src/views/archivesStatistics/usageCountStatistics/index.vue b/src/views/archivesStatistics/usageCountStatistics/index.vue
index 0fb8efb..e6b1687 100644
--- a/src/views/archivesStatistics/usageCountStatistics/index.vue
+++ b/src/views/archivesStatistics/usageCountStatistics/index.vue
@@ -30,7 +30,7 @@
:value="item.id"
/>
-
+
查询
重置
diff --git a/src/views/archivesStatistics/utilizeRegistrationStatistics/index.vue b/src/views/archivesStatistics/utilizeRegistrationStatistics/index.vue
index da95f72..23ef0b1 100644
--- a/src/views/archivesStatistics/utilizeRegistrationStatistics/index.vue
+++ b/src/views/archivesStatistics/utilizeRegistrationStatistics/index.vue
@@ -8,6 +8,7 @@
collapse-tags
placeholder="请选择所属全宗"
style="width: 320px;"
+ @change="handleFondsChange"
>
+
+
+
import { FetchFondsAll } from '@/api/system/fonds'
import { FetchBorrowdRegisterStatisticsList } from '@/api/statistics/statistics'
+import { FetchInitDeptsAllByFondsId } from '@/api/system/dept'
import DateRangePicker from '@/components/DateRangePicker'
import qs from 'qs'
import { exportFile } from '@/utils/index'
@@ -105,7 +119,9 @@ export default {
{ value: 'borrowReason', label: '借阅目的' }
],
inputSelect: '',
- query: {}
+ query: {},
+ deptOptions: [],
+ deptId: ''
}
},
computed: {
@@ -157,6 +173,8 @@ export default {
this.blurryTime = []
this.inputSelect = this.options[0].value
this.query = {}
+ this.deptId = null
+ this.deptOptions = []
this.page.page = 0
this.getBorrowdRegisterStatisticsList()
},
@@ -165,6 +183,20 @@ export default {
this.fondsOptions = res
})
},
+ handleFondsChange(val) {
+ this.deptId = null
+ this.deptOptions = []
+ if (val && val.length > 0) {
+ this.getDeptDatas()
+ }
+ },
+ getDeptDatas() {
+ FetchInitDeptsAllByFondsId({
+ fondsIds: this.fondsIds
+ }).then(res => {
+ this.deptOptions = res
+ })
+ },
getBorrowdRegisterStatisticsList() {
this.loading = true
FetchBorrowdRegisterStatisticsList({
@@ -174,7 +206,8 @@ export default {
pageNo: this.page.page,
pageSize: this.page.size,
search: this.query.search || null,
- borrowReason: this.query.borrowReason || null
+ borrowReason: this.query.borrowReason || null,
+ deptId: this.deptId || null
}).then(res => {
this.allData = res.records
this.page.total = res.total