You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
3.5 KiB
89 lines
3.5 KiB
let tuBiao = {
|
|
tableKey:"",
|
|
state: true,
|
|
unitList:[
|
|
{
|
|
uuid:"",
|
|
type:"cyl",
|
|
title:"柱状图",
|
|
y:[
|
|
{
|
|
lable:"订单ID",
|
|
showLable:"订单ID",
|
|
field:"uuid",
|
|
sort:1,
|
|
attribute:1 //当字段为时间类型时. 1:ymdhms;2:year;3:month;4:day;5:hour;6:minute;7:second;
|
|
}
|
|
],
|
|
x:[
|
|
{
|
|
lable:"销售额",
|
|
showLable:"销售额",
|
|
field:"xiaoshoue",
|
|
sort:1,
|
|
method:1, //当字段聚合方式. 1:求和;2:平均值;3:计数;4:去重计数;5:最大值;6:最小值
|
|
format:1 //当字段为时间类型时. 1:自动(原始值);2:整数;3:保留1位小数;4:保留2位小数;5:百分比;6:百分比1位小数;7:百分比2位小数;
|
|
}
|
|
],
|
|
filter:[ //过滤器
|
|
{
|
|
type:1, //字段类型 1: 数值;2:文本;3:时间
|
|
lable:"商品", //名称
|
|
field:"", //字段
|
|
conditions:"", //条件
|
|
},
|
|
{
|
|
type:2, //字段类型 1: 数值;2:文本;3:时间
|
|
lable:"成本", //名称
|
|
field:"", //字段
|
|
method:1, //聚合方式 1:求和;2:平均值;3:计数;4:去重计数;5:最大值;6:最小;
|
|
modality:1, //条件形式。 1:单条件;2:或条件;3:且条件
|
|
modalityList:[ //条件列表
|
|
{
|
|
equation:1, //表达式。1:等于;2:不等于;3:大于;4:小于;5:大于等于;6:小于等于;7:为空;8:不为空
|
|
value:""
|
|
}
|
|
]
|
|
},
|
|
{
|
|
type:3, //字段类型 1: 数值;2:文本;3:时间
|
|
lable:"商品", //名称
|
|
field:"", //字段
|
|
conditions:"", //条件
|
|
startTime:1, //开始时间
|
|
endTime:1 //结束时间
|
|
}
|
|
],
|
|
timelength:1,
|
|
search:{
|
|
state:false,
|
|
config:{
|
|
searchBut:false,
|
|
resetBut:false
|
|
},
|
|
factor:[
|
|
{
|
|
type:1, //纬度字段
|
|
lable:"订单ID",
|
|
field:"uuid",
|
|
isTime:false,
|
|
valur:1,
|
|
startTime:0,
|
|
endTime:0,
|
|
coor:"Y"
|
|
},
|
|
{
|
|
type:2, //度量
|
|
lable:"销售du'l",
|
|
field:"uuid",
|
|
isTime:false,
|
|
valur:1,
|
|
startTime:0,
|
|
endTime:0,
|
|
coor:"X"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|