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