From 57ff474ce03e3b99ccb4f8e95b4dd2b7d77fc88b Mon Sep 17 00:00:00 2001 From: zjl Date: Mon, 16 Dec 2024 19:22:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=8E=A7=E5=88=B6=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/dashboard/console.ts | 38 ++++++++++++++++++++++++--- src/views/dashboard/console/index.vue | 31 ++++++++++++++++++++-- 2 files changed, 63 insertions(+), 6 deletions(-) diff --git a/src/api/dashboard/console.ts b/src/api/dashboard/console.ts index 753788d..13011a9 100644 --- a/src/api/dashboard/console.ts +++ b/src/api/dashboard/console.ts @@ -31,8 +31,38 @@ export interface TypeConsole { //获取主控台信息 export function getConsoleInfo() { - return http.request({ - url: '/dashboard/console', - method: 'get', - }); + return consoleInfo; } + +/** + * 模拟控制台数据 + */ +const consoleInfo = { + //访问量 + visits: { + dayVisits: 32335, + rise: 48, + decline: 85, + amount: 948113, + }, + //销售额 + saleroom: { + weekSaleroom: 90758, + amount: 411553, + degree: 38.245882, + }, + //订单量 + orderLarge: { + weekLarge: 35704, + rise: 28, + decline: 28, + amount: 480578, + }, + //成交额度 + volume: { + weekLarge: 67800, + rise: 96, + decline: 81, + amount: 826814, + }, +}; diff --git a/src/views/dashboard/console/index.vue b/src/views/dashboard/console/index.vue index f1cb63a..45e6a29 100644 --- a/src/views/dashboard/console/index.vue +++ b/src/views/dashboard/console/index.vue @@ -292,7 +292,8 @@