文档
测试

获取预算历史记录折线图数据

GET
http://test.52miaosuan.com:8090/miaosuan/dashboard/business/budget/history?range_type=2&&date=2

接口描述

获取业务指标监控,如果统计口径是年度的话,需要调用 获取公司创建依赖的年份列表 接口

请求头

参数名
类型
描述
必填
user_id
int
用户编号
必填

请求参数

参数名
类型
描述
必填
range_type
int
折线图的统计口径,2 - 月度, 4 - 年度
必填
date
int
如果统计口径为年度,则为选择的年份,如2021,如果统计口径为月度,则为选择的月份,如2
必填

响应参数

参数名
类型
描述
必填
code
int
示例:0
必填
msg
string
示例:成功
必填
data
object
数据字典
必填
date_list
array
X轴的日期列表
必填
budget_bar_data
array
对应日期列表预算的创建数量
必填
finished_bar_data
array
对应日期列表预算的成单数量
必填

说明 / 示例

响应结果: ```json { "code": 0, "msg": "成功", "data": { "date_list": [ "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28" ], "budget_bar_data": [ 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], "finished_bar_data": [ 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] } } ```