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 @@