getDatas (statistics/rank.ts)

ruoyi-office-vben · apps/web-ele/src/api/crm/statistics/rank.ts · typescript · MIT
crm

Provides CRM statistics rank API calls for various ranking endpoints.

// Source: https://github.com/yuqing2026/ruoyi-office-vben | License: MIT | Copyright 2024-present, Vben
// Provided via justclaw.it.com; keep this notice with the code.
import type { PageParam } from '@vben/request';

import { requestClient } from '#/api/request';

export namespace CrmStatisticsRankApi {
  /** 排行统计响应 */
  export interface RankRespVO {
    count: number;
    nickname: string;
    deptName: string;
  }
}

export function getDatas(activeTabName: any, params: any) {
  switch (activeTabName) {
    case 'contactCountRank': {
      return getContactsCountRank(params);
    }
    case 'contractCountRank': {
      return getContractCountRank(params);
    }
    case 'contractPriceRank': {
      return getContractPriceRank(params);
    }
    case 'customerCountRank': {
      return g

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key