From 2134f6573fd622fb2aaf8367b14bc26335e3f2e1 Mon Sep 17 00:00:00 2001 From: lewis_yan Date: Thu, 2 Apr 2026 18:31:42 +0800 Subject: [PATCH] refactor(dashboard): unify buyer and supplier dashboards with right sidebar - Replace notification card with home image and quick navigation - Add welcome header text to both dashboards - Fix dashboard API URL to use /api prefix consistently - Adjust task table to flex-grow and fill available height - Reduce quick nav icon and padding sizes - Update responsive breakpoints --- web/src/api/pisadmin/dashboard.ts | 6 +- .../pisadmin/dashboard/BuyerDashboard.vue | 215 +++++++++++++----- .../pisadmin/dashboard/SupplierDashboard.vue | 179 +++++++++++++-- 3 files changed, 320 insertions(+), 80 deletions(-) diff --git a/web/src/api/pisadmin/dashboard.ts b/web/src/api/pisadmin/dashboard.ts index e849f0a..ee80014 100644 --- a/web/src/api/pisadmin/dashboard.ts +++ b/web/src/api/pisadmin/dashboard.ts @@ -1,8 +1,10 @@ -import request from '/@/utils/request'; +import { request } from '/@/utils/service'; + +const apiPrefix = '/api/pisadmin/dashboard/'; export function getDashboard() { return request({ - url: '/pisadmin/dashboard/', + url: apiPrefix, method: 'get', }); } diff --git a/web/src/views/pisadmin/dashboard/BuyerDashboard.vue b/web/src/views/pisadmin/dashboard/BuyerDashboard.vue index 9d2fc21..e0bed46 100644 --- a/web/src/views/pisadmin/dashboard/BuyerDashboard.vue +++ b/web/src/views/pisadmin/dashboard/BuyerDashboard.vue @@ -1,5 +1,11 @@