From 153c436536cce9b9aa948e09cfc5e8102a1c904f Mon Sep 17 00:00:00 2001 From: "wangmingyong@163.com" Date: Tue, 1 Dec 2026 18:03:22 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../report/statistics-check-evaluation.ts | 16 +- .../statistics_check_evaluation/index.vue | 19 ++- .../statistics_check_evaluation/mock.ts | 156 ------------------ .../efcode/trend/scan-district/index.vue | 51 ++++-- .../views/efcode/trend/scan-domain/index.vue | 10 +- .../efcode/trend/scan-enforcer/index.vue | 10 +- 6 files changed, 78 insertions(+), 184 deletions(-) delete mode 100644 zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/report/statistics_check_evaluation/mock.ts diff --git a/zdxt-web-client/zdxt-admin-plus-ui/src/api/efcode/report/statistics-check-evaluation.ts b/zdxt-web-client/zdxt-admin-plus-ui/src/api/efcode/report/statistics-check-evaluation.ts index 53139b46..88d48095 100644 --- a/zdxt-web-client/zdxt-admin-plus-ui/src/api/efcode/report/statistics-check-evaluation.ts +++ b/zdxt-web-client/zdxt-admin-plus-ui/src/api/efcode/report/statistics-check-evaluation.ts @@ -72,22 +72,28 @@ export interface LawFeedbackQuery { /** 执法反馈统计行 */ export interface CheckEvaluationRow { id: string; - /** 所属区 */ - districtName?: string; + /** 所属区编码 */ + code?: string; + /** 所属区名称 */ + name?: string; /** 执法单位 */ bureauDeptName?: string; - /** 执法人员(姓名+执法证号) */ - lawEnforcerDisplay?: string; /** 执法人员姓名 */ lawEnforcer?: string; + /** 其他执法人员(行政) */ + lawEnforcerTwo?: string; + /** 其他执法人员(非行政) */ + lawEnforcerOther?: string; /** 执法时间 */ enforcementTime?: string; /** 被执法企业 */ enterpriseName?: string; + /** 统一社会信用代码 */ + enterpriseNumber?: string; /** 执法事项 */ lawEnforcementItemText?: string; /** 反馈时间 */ - feedbackTime?: string; + createTime?: string; /** 反馈内容 */ feedbackContent?: string; /** 满意程度:1-不满意 2-较满意 3-非常满意 */ diff --git a/zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/report/statistics_check_evaluation/index.vue b/zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/report/statistics_check_evaluation/index.vue index d96bbcc8..ccf706bf 100644 --- a/zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/report/statistics_check_evaluation/index.vue +++ b/zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/report/statistics_check_evaluation/index.vue @@ -4,7 +4,6 @@ import { ElMessage } from 'element-plus'; import { getDicts } from '@/api/system/dict/data'; import { listLawFeedback, getLawFeedbackDetail, exportLawFeedback } from '@/api/efcode/report/statistics-check-evaluation'; import type { LawFeedbackQuery, CheckEvaluationRow } from '@/api/efcode/report/statistics-check-evaluation'; -import { MOCK_FEEDBACK_TOTAL, mockFeedbackRows } from './mock'; // ======================== 所属区字典 ======================== const areaOptions = ref([]); @@ -33,7 +32,7 @@ const feedbackQuery = reactive({ const feedbackList = ref([]); const feedbackTotal = ref(0); const feedbackPageNum = ref(1); -const feedbackPageSize = ref(50); +const feedbackPageSize = ref(20); // 反馈详情弹窗 const detailVisible = ref(false); @@ -88,9 +87,7 @@ const loadFeedbackList = async () => { feedbackList.value = res.rows || []; feedbackTotal.value = Number(res.total) || 0; } catch (e) { - // 接口未就绪时展示模拟数据 - feedbackList.value = mockFeedbackRows; - feedbackTotal.value = MOCK_FEEDBACK_TOTAL; + ElMessage.error('执法反馈列表加载失败'); } finally { loading1.value = false; } @@ -112,7 +109,7 @@ const resetFeedbackQuery = () => { feedbackQuery.enforcementRange = undefined; feedbackQuery.feedbackRange = undefined; feedbackPageNum.value = 1; - feedbackPageSize.value = 50; + feedbackPageSize.value = 20; loadFeedbackList(); }; @@ -252,13 +249,17 @@ const downloadBlob = (res: any, filename: string) => { - + - + + + - + diff --git a/zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/trend/scan-domain/index.vue b/zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/trend/scan-domain/index.vue index ce79cc02..896d145a 100644 --- a/zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/trend/scan-domain/index.vue +++ b/zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/trend/scan-domain/index.vue @@ -178,6 +178,12 @@ const handleSelectionChange = (selection: EnforcerRow[]) => { selectedRows.value = selection; }; +/** 序号:跨页累加 */ +const indexMethod = (index: number) => (queryParams.pageNum - 1) * queryParams.pageSize + index + 1; + +/** 详情序号:跨页累加 */ +const detailIndexMethod = (index: number) => (detailPage.value - 1) * detailPageSize.value + index + 1; + /** 执法次数列排序 */ const handleSortChange = (sortObj: { prop: string; order: 'ascending' | 'descending' | null }) => { if (sortObj.prop === 'zfcs' && sortObj.order) { @@ -320,7 +326,7 @@ onMounted(() => { @sort-change="handleSortChange" > - + @@ -348,7 +354,7 @@ onMounted(() => { - + 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 68ace09b..9074edef 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 @@ -172,6 +172,12 @@ const handleSelectionChange = (selection: EnforcerRow[]) => { selectedRows.value = selection; }; +/** 序号:跨页累加 */ +const indexMethod = (index: number) => (queryParams.pageNum - 1) * queryParams.pageSize + index + 1; + +/** 详情序号:跨页累加 */ +const detailIndexMethod = (index: number) => (detailPage.value - 1) * detailPageSize.value + index + 1; + /** 执法次数列排序 */ const handleSortChange = (sortObj: { prop: string; order: 'ascending' | 'descending' | null }) => { if (sortObj.prop === 'zfcs' && sortObj.order) { @@ -313,7 +319,7 @@ onMounted(() => { @sort-change="handleSortChange" > - + @@ -342,7 +348,7 @@ onMounted(() => { - +