From a26075d61bcf78b2abadfc77372b988ba7e5f920 Mon Sep 17 00:00:00 2001 From: bestlee Date: Thu, 8 Oct 2026 14:12:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=80=E6=9C=89=E9=A1=B5=E9=9D=A2=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E6=95=B0=E6=8D=AE=E6=97=B6=E6=98=BE=E7=A4=BA=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/auth/index.ts | 12 ++++++------ src/typings/api/auth.d.ts | 2 +- src/views/changeLedger/modules/list.vue | 4 +++- src/views/changeStatistics/index.vue | 3 +++ src/views/my/highRisk/modules/risk.vue | 8 +++++--- src/views/my/myTask/index.vue | 8 ++++---- src/views/my/pssr/index.vue | 4 +++- src/views/professionalStatistics/index.vue | 8 ++++++-- src/views/report/index.vue | 18 +++++++++++++++--- src/views/riskStatistics/index.vue | 3 +++ src/views/signStatistics/index.vue | 8 ++++++-- src/views/workshopStatistics/index.vue | 6 +++++- 12 files changed, 60 insertions(+), 24 deletions(-) diff --git a/src/store/modules/auth/index.ts b/src/store/modules/auth/index.ts index 31c4432..d7d046a 100644 --- a/src/store/modules/auth/index.ts +++ b/src/store/modules/auth/index.ts @@ -22,7 +22,7 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => { const token = ref(''); const userInfo: Api.Auth.UserInfo = reactive({ - userId: '', + user_id: 0, username: '', roles: [], buttons: [] @@ -56,12 +56,12 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => { /** Record the user ID of the previous login session Used to compare with the current user ID on next login */ function recordUserId() { - if (!userInfo.userId) { + if (!userInfo.user_id) { return; } // Store current user ID locally for next login comparison - localStg.set('lastLoginUserId', userInfo.userId); + localStg.set('lastLoginUserId', String(userInfo.user_id)); } /** @@ -70,14 +70,14 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => { * @returns {boolean} Whether to clear all tabs */ function checkTabClear(): boolean { - if (!userInfo.userId) { + if (!userInfo.user_id) { return false; } const lastLoginUserId = localStg.get('lastLoginUserId'); // Clear all tabs if current user is different from previous user - if (!lastLoginUserId || lastLoginUserId !== userInfo.userId) { + if (!lastLoginUserId || lastLoginUserId !== String(userInfo.user_id)) { localStg.remove('globalTabs'); tabStore.clearTabs(); @@ -155,7 +155,7 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => { // 同步 AI 插件用户身份(exchange 换 ai_token 用) setAiUser({ - platform_user_id: String(info.userId), + platform_user_id: String(info.user_id), align_key: info.username, display_name: info.username }); diff --git a/src/typings/api/auth.d.ts b/src/typings/api/auth.d.ts index 93f575b..d42fa94 100644 --- a/src/typings/api/auth.d.ts +++ b/src/typings/api/auth.d.ts @@ -12,7 +12,7 @@ declare namespace Api { } interface UserInfo { - userId: string; + user_id: number; username: string; roles: string[]; buttons: string[]; diff --git a/src/views/changeLedger/modules/list.vue b/src/views/changeLedger/modules/list.vue index 381151c..6d06632 100644 --- a/src/views/changeLedger/modules/list.vue +++ b/src/views/changeLedger/modules/list.vue @@ -527,7 +527,9 @@ onMounted(async () => { -
当前筛选条件下暂无变更记录
+
+ +
{
+
+ +
diff --git a/src/views/my/highRisk/modules/risk.vue b/src/views/my/highRisk/modules/risk.vue index 29b1c3e..af6b8e7 100644 --- a/src/views/my/highRisk/modules/risk.vue +++ b/src/views/my/highRisk/modules/risk.vue @@ -214,7 +214,7 @@ onMounted(async () => {
-
+
@@ -345,8 +345,10 @@ onMounted(async () => { 查看变更 查看分析记录
-
当前筛选条件下无新增高风险场景
-
+
+
+ +
{
-
-
- 暂无数据 -
+
{
+
+ +
diff --git a/src/views/my/pssr/index.vue b/src/views/my/pssr/index.vue index 52cd655..379050e 100644 --- a/src/views/my/pssr/index.vue +++ b/src/views/my/pssr/index.vue @@ -197,7 +197,9 @@ onMounted(() => {
-
暂无数据
+
+ +
{
-

暂无数据

+
+ +
考核目标 @@ -208,7 +210,9 @@ onMounted(() => {

更多高风险场景与分析记录见「高风险」页

-

暂无高风险在办

+
+ +
diff --git a/src/views/report/index.vue b/src/views/report/index.vue index 4f301dc..b9d3d4e 100644 --- a/src/views/report/index.vue +++ b/src/views/report/index.vue @@ -170,7 +170,7 @@ onMounted(() => {

各车间变更数量({{dateLabel}})

- +
@@ -214,7 +214,11 @@ onMounted(() => { - 暂无数据 + +
+ +
+ @@ -296,6 +300,9 @@ onMounted(() => { 查看 +
+ +
@@ -440,6 +447,9 @@ onMounted(() => { {{ e.days }} 天 +
+ +
@@ -536,7 +546,9 @@ onMounted(() => { {{ r.count }} 起 -
可用于申请端填报质量改进:TOP2 理由已纳入 AI 预识别检查项
+
+ +
diff --git a/src/views/riskStatistics/index.vue b/src/views/riskStatistics/index.vue index 2885016..ed38bf5 100644 --- a/src/views/riskStatistics/index.vue +++ b/src/views/riskStatistics/index.vue @@ -239,6 +239,9 @@ onMounted(() => { 超期 {{ o.overdue_days }} 天 催办 +
+ +
diff --git a/src/views/signStatistics/index.vue b/src/views/signStatistics/index.vue index bd39ed6..297eaf3 100644 --- a/src/views/signStatistics/index.vue +++ b/src/views/signStatistics/index.vue @@ -161,7 +161,9 @@ onMounted(() => {
-

暂无数据

+
+ +
考核目标 @@ -208,7 +210,9 @@ onMounted(() => {

更多高风险场景与分析记录见「高风险」页

-

暂无高风险在办

+
+ +
diff --git a/src/views/workshopStatistics/index.vue b/src/views/workshopStatistics/index.vue index 80c2ae2..f499e77 100644 --- a/src/views/workshopStatistics/index.vue +++ b/src/views/workshopStatistics/index.vue @@ -308,7 +308,11 @@ onMounted(() => { - 暂无数据 + +
+ +
+