kllay hai 3 días
pai
achega
4cb6e37111
Modificáronse 2 ficheiros con 669 adicións e 193 borrados
  1. 64 4
      src/views/system/home/api.ts
  2. 605 189
      src/views/system/home/index.vue

+ 64 - 4
src/views/system/home/api.ts

@@ -1,11 +1,71 @@
 import { request } from '/@/utils/service';
 import { UserPageQuery, AddReq, DelReq, EditReq, InfoReq } from '@fast-crud/fast-crud';
 
-export const apiPrefix = '/api/system/login_log/';
-export function GetList(query: UserPageQuery) {
+
+
+export const apiPrefix = '/api/system/dashboard/';
+export function GetList() {
+	return request({
+		url: apiPrefix,
+		method: 'get',
+	});
+}
+
+
+
+export function GetOverviewList() {
+	return request({
+		url: apiPrefix+'overview_stats/',
+		method: 'get',
+	});
+}
+
+export function GetDeviceRankList() {
+	return request({
+		url: apiPrefix+'device_rankings/',
+		method: 'get',
+	});
+}
+
+
+export function GetBorrowRanking(params:object) {
+	return request({
+		url: apiPrefix+'device_rankings/',
+		method: 'get',
+		params:params
+	});
+}
+
+
+
+
+export function GetUtilizationList() {
+	return request({
+		url: apiPrefix+'utilization_trend/',
+		method: 'get',
+	});
+}
+
+
+export function GetBorrowTrends() {
+	return request({
+		url: apiPrefix+'borrow_trends/',
+		method: 'get',
+	});
+}
+
+export function GetActiveUsers() {
 	return request({
-		url: 'api/dashboard/stats',
+		url: apiPrefix+'active_users/',
 		method: 'get',
-		params: { ...query, tenant_id: 1 },
 	});
 }
+
+
+
+
+
+
+
+
+

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 605 - 189
src/views/system/home/index.vue


Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio