diff --git a/zdxt-web-client/zdxt-admin-plus-ui/src/api/efcode/report/law-enforcer.ts b/zdxt-web-client/zdxt-admin-plus-ui/src/api/efcode/report/law-enforcer.ts index 79541362..b4460d52 100644 --- a/zdxt-web-client/zdxt-admin-plus-ui/src/api/efcode/report/law-enforcer.ts +++ b/zdxt-web-client/zdxt-admin-plus-ui/src/api/efcode/report/law-enforcer.ts @@ -6,7 +6,7 @@ const BASE_URL = '/web/supervision/report/lawEnfOfficer'; /** 执法人员行 */ export interface EnforcerRow { id: number | string; - lawEnforcerId?: string | number; // 后端主键 — 详情接口入参 + lawEnforcerId?: string | number; // 后端主键 — 详情接口入参 enforcerName?: string; areaName?: string; bureauName?: string; @@ -29,12 +29,10 @@ export interface LawEnforcerDetailRow { export interface LawEnforcerListQuery { pageNum?: number; pageSize?: number; - lawEnforcer?: string; // 执法人员姓名(模糊) - districtName?: string; // 所属区名称 - bureauDeptName?: string; // 所属领域/单位名称 - enforcementTime?: string; // 精确到月的时间过滤(后端为 Date,仅月度可用) - beginTime?: string; // 开始时间(YYYY-MM-DD) - endTime?: string; // 结束时间(YYYY-MM-DD) + lawEnforcer?: string; // 执法人员姓名(模糊) + districtName?: string; // 所属区名称 + bureauDeptName?: string; // 所属领域/单位名称 + enforcementTime?: string; // 过滤时间(如 "2026" / "2026-Q3" / "2026-10" ) orderByColumn?: string; isAsc?: string; } @@ -44,11 +42,10 @@ export const listLawEnforcer = (params: LawEnforcerListQuery): AxiosPromise<{ ro return request({ url: `${BASE_URL}/list`, method: 'get', params }); }; -/** 执法人员详情查询参数:lawEnforcerId + 时间区间 + 分页字段 */ +/** 执法人员详情查询参数:lawEnforcerId + enforcementTime + 分页字段 */ export interface LawEnforcerDetailQuery { lawEnforcerId: string | number; - beginTime?: string; - endTime?: string; + enforcementTime?: string; pageNum?: number; pageSize?: number; } @@ -58,13 +55,10 @@ export const listLawEnforcerDetails = (params: LawEnforcerDetailQuery): AxiosPro return request({ url: `${BASE_URL}/details`, method: 'get', params }); }; -/** 执法人员列表导出参数:与列表查询保持一致 */ +/** 执法人员列表导出参数:lawEnforcer + enforcementTime */ export interface LawEnforcerExportQuery { lawEnforcer?: string; - districtName?: string; // 所属区名称 - bureauDeptName?: string; // 所属领域/单位名称 - beginTime?: string; // 开始时间(YYYY-MM-DD) - endTime?: string; // 结束时间(YYYY-MM-DD) + enforcementTime?: string; } /** 执法人员列表导出:web/supervision/report/lawEnfOfficer/export */ @@ -72,51 +66,13 @@ export const exportLawEnforcer = (params: LawEnforcerExportQuery): AxiosPromise< return request({ url: `${BASE_URL}/export`, method: 'post', params, responseType: 'blob' }); }; -// ======================== 领域报表接口 ======================== - -/** 执法人员-领域 列表查询参数 */ -export interface LawEnforcerDomainListQuery { - pageNum?: number; - pageSize?: number; - lawEnforcer?: string; // 执法人员关键字 - domainName?: string; // 所属领域名称 - enforcementTime?: string; // 精确到月的时间过滤 - beginTime?: string; - endTime?: string; - orderByColumn?: string; - isAsc?: string; -} - -/** 执法人员-领域 列表 */ -export const listLawEnforcerDomain = (params: LawEnforcerDomainListQuery): AxiosPromise<{ rows: EnforcerRow[]; total: number }> => { - return request({ url: `${BASE_URL}/listDomain`, method: 'get', params }); -}; - -/** 执法人员-领域 列表导出参数 */ -export interface LawEnforcerDomainExportQuery { - lawEnforcer?: string; - domainName?: string; - beginTime?: string; - endTime?: string; -} - -/** 执法人员-领域 列表导出 */ -export const exportLawEnforcerDomain = (params: LawEnforcerDomainExportQuery): AxiosPromise => { - return request({ url: `${BASE_URL}/exportDomain`, method: 'post', params, responseType: 'blob' }); -}; - -/** 执法人员-领域 详情查询参数 */ -export interface LawEnforcerDomainDetailQuery { +/** 执法人员详情导出参数:lawEnforcerId + enforcementTime */ +export interface LawEnforcerDetailExportQuery { lawEnforcerId: string | number; - domainName?: string; enforcementTime?: string; - beginTime?: string; - endTime?: string; - pageNum?: number; - pageSize?: number; } -/** 执法人员-领域 详情(后端路径拼写为 detatilsDomain) */ -export const listLawEnforcerDomainDetails = (params: LawEnforcerDomainDetailQuery): AxiosPromise<{ rows: LawEnforcerDetailRow[]; total: number }> => { - return request({ url: `${BASE_URL}/detatilsDomain`, method: 'get', params }); +/** 执法人员详情导出:web/supervision/report/lawEnfOfficer/exportDetails */ +export const exportLawEnforcerDetails = (params: LawEnforcerDetailExportQuery): AxiosPromise => { + return request({ url: `${BASE_URL}/exportDetails`, method: 'post', params, responseType: 'blob' }); }; diff --git a/zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/trend/scan-enforcer/index.vue b/zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/trend/scan-enforcer/index.vue index 9074edef..0d1ba90c 100644 --- a/zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/trend/scan-enforcer/index.vue +++ b/zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/trend/scan-enforcer/index.vue @@ -1,32 +1,36 @@ @@ -252,49 +281,62 @@ onMounted(() => {
- + - + - - + + + + - - - + + - - + - + - + - - - @@ -307,22 +349,22 @@ onMounted(() => {
-
+
- + - - + +