From 883c5fdb633714c7c49e93324a26d3a2e426ca1b Mon Sep 17 00:00:00 2001 From: tangweijie <877588133@qq.com> Date: Thu, 22 Jan 2026 12:23:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(evaluation):=20=E6=96=B0=E5=A2=9E=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E8=AF=A6=E6=83=85=E5=AF=BC=E5=87=BA=E5=8F=8A=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增导出单个模板及其维度信息的 API 和按钮 - 优化导出接口使用 POST 方法 - 仪表盘添加帮助说明提示功能 - 优化模板管理界面布局 --- pnpm-lock.yaml | 12 -- src/api/prison/evaluation/index.ts | 9 +- src/views/DashEntry/DashEntry.vue | 114 +++++++++++++++++- .../prison/evaluation-mgmt/template/index.vue | 45 ++++++- 4 files changed, 160 insertions(+), 20 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 59ed61ce..5ba0bd38 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -273,9 +273,6 @@ importers: postcss-html: specifier: ^1.6.0 version: 1.7.0 - postcss-pxtorem: - specifier: ^6.1.0 - version: 6.1.0(postcss@8.4.49) postcss-scss: specifier: ^4.0.9 version: 4.0.9(postcss@8.4.49) @@ -4581,11 +4578,6 @@ packages: resolution: {integrity: sha512-MfcMpSUIaR/nNgeVS8AyvyDugXlADjN9AcV7e5rDfrF1wduIAGSkL4q2+wgrZgA3sHVAHLDO9FuauHhZYW2nBw==} engines: {node: ^12 || >=14} - postcss-pxtorem@6.1.0: - resolution: {integrity: sha512-ROODSNci9ADal3zUcPHOF/K83TiCgNSPXQFSbwyPHNV8ioHIE4SaC+FPOufd8jsr5jV2uIz29v1Uqy1c4ov42g==} - peerDependencies: - postcss: ^8.0.0 - postcss-resolve-nested-selector@0.1.6: resolution: {integrity: sha512-0sglIs9Wmkzbr8lQwEyIzlDOOC9bGmfVKcJTaxv3vMmd3uo4o4DerC3En0bnmgceeql9BfC8hRkp7cg0fjdVqw==} @@ -10466,10 +10458,6 @@ snapshots: postcss: 8.4.49 postcss-safe-parser: 6.0.0(postcss@8.4.49) - postcss-pxtorem@6.1.0(postcss@8.4.49): - dependencies: - postcss: 8.4.49 - postcss-resolve-nested-selector@0.1.6: {} postcss-safe-parser@6.0.0(postcss@8.4.49): diff --git a/src/api/prison/evaluation/index.ts b/src/api/prison/evaluation/index.ts index 44f6f814..521d5fd3 100644 --- a/src/api/prison/evaluation/index.ts +++ b/src/api/prison/evaluation/index.ts @@ -172,7 +172,12 @@ export const EvaluationTemplateApi = { // 导出模板 exportTemplate: async (params: EvaluationTemplatePageParams) => { - return await request.download({ url: '/prison/evaluation-report/template/export-excel', params }) + return await request.download({ url: '/prison/evaluation-report/template/export-excel', params, method: 'POST' }) + }, + + // 导出单个模板及其维度信息 + exportTemplateWithDimensions: async (id: number) => { + return await request.download({ url: '/prison/evaluation-report/template/export-with-dimensions', params: { id } }) } } @@ -275,7 +280,7 @@ export const EvaluationReportApi = { // 导出报告 Excel exportReportExcel: async (params: EvaluationReportPageParams) => { - return await request.download({ url: '/prison/evaluation-report/report/export-excel', params }) + return await request.download({ url: '/prison/evaluation-report/report/export-excel', params, method: 'POST' }) }, // 根据报告ID获取维度数据列表 diff --git a/src/views/DashEntry/DashEntry.vue b/src/views/DashEntry/DashEntry.vue index 0f3af436..f6922b06 100644 --- a/src/views/DashEntry/DashEntry.vue +++ b/src/views/DashEntry/DashEntry.vue @@ -1,6 +1,66 @@