From f2764b396116fb1e994c3639f74d4d0b135ad3a3 Mon Sep 17 00:00:00 2001 From: tangweijie <877588133@qq.com> Date: Wed, 21 Jan 2026 17:27:51 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A7=9F=E6=88=B7?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/axios/service.ts | 5 +++++ src/views/Login/components/LoginForm.vue | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/src/config/axios/service.ts b/src/config/axios/service.ts index 75f6df0f..bea2d0fc 100644 --- a/src/config/axios/service.ts +++ b/src/config/axios/service.ts @@ -69,6 +69,11 @@ service.interceptors.request.use( config.headers['visit-tenant-id'] = visitTenantId } } + // 监狱系统:即使 tenantEnable 为 false,也尝试获取并设置租户 ID + const tenantId = getTenantId() + if (tenantId) { + config.headers['tenant-id'] = tenantId + } const method = config.method?.toUpperCase() // 防止 GET 请求缓存 if (method === 'GET') { diff --git a/src/views/Login/components/LoginForm.vue b/src/views/Login/components/LoginForm.vue index 084b8090..1f8b82a2 100644 --- a/src/views/Login/components/LoginForm.vue +++ b/src/views/Login/components/LoginForm.vue @@ -226,6 +226,12 @@ const getTenantId = async () => { if (loginData.tenantEnable === 'true') { const res = await LoginApi.getTenantIdByName(loginData.loginForm.tenantName) authUtil.setTenantId(res) + } else { + // 监狱系统:直接使用租户名作为租户ID进行设置 + const tenantName = loginData.loginForm.tenantName + if (tenantName) { + authUtil.setTenantId(Number(tenantName)) + } } } // 记住我 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 2/3] =?UTF-8?q?feat(evaluation):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E8=AF=A6=E6=83=85=E5=AF=BC=E5=87=BA=E5=8F=8A?= =?UTF-8?q?=E7=95=8C=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 @@