import ajax from './ajax'
import { LOCATION_URL } from '@/config/config'

// 1. 定义基础路径
// const BASE_URL = '/huiqicha'
const BASE_URL = LOCATION_URL

//业务指标
export const getIndicator = () => ajax(BASE_URL + `/dashboard/index` , 'GET');
//总行代办
export const headList = (params) => ajax(BASE_URL + `/dashboard/campaign/head?isFinish=${params.isFinish}&pageSize=${params.pageSize}&pageNum=${params.pageNum}&orderByColumn=${params.orderByColumn}` , 'GET');
//支行代办
export const branchList = (params) => ajax(BASE_URL + `/dashboard/campaign/branch?isFinish=${params.isFinish}&pageSize=${params.pageSize}&pageNum=${params.pageNum}&orderByColumn=${params.orderByColumn}` , 'GET');
//客户经理待办
export const managerList = () => ajax(BASE_URL + `/dashboard/campaign/manager` , 'GET');
//预警
export const warnList = () => ajax(BASE_URL + `/dashboard/warn/list` , 'GET');
//贷款
export const loanWarnList = (params) => ajax(BASE_URL + `/dashboard/loan/warn/list?custIdName=${params.custIdName}&custType=${params.custType}&pageSize=${params.pageSize}&pageNum=${params.pageNum}` , 'GET');
export const warnRespList = (params) => ajax(BASE_URL + `/dashboard/warnResp/list?custIdName=${params.custIdName}&custType=${params.custType}&pageSize=${params.pageSize}&pageNum=${params.pageNum}&type=${params.type}` , 'GET');
