筛序项父子条件封装组件
组件代码:CustomTargetFilter
筛选项列表模拟数据
[
{
"children": [
{
"duration": {
"AUDIT": "新建审核中",
"CREATE": "新建",
"PROJECT_OFFLINE_BUDGET": "项目超出预算",
"AWEME_ACCOUNT_DISABLED": "关联抖音账号不可投",
"LIVE_ROOM_OFF": "关联直播间不可投",
"PROJECT_PREOFFLINE_BUDGET": "项目接近预算",
"DELETED": "已删除",
"AWEME_ANCHOR_DISABLED": "锚点不可投",
"PREOFFLINE_BUDGET": "广告接近预算",
"TIME_NO_REACH": "未到达投放时间",
"ADVERTISER_PREOFFLINE_BUDGET": "账号接近预算",
"DISABLED": "已暂停",
"REAUDIT": "修改审核中",
"DISABLE_BY_QUOTA": "已暂停(配额达限)",
"OFFLINE_BUDGET": "广告超出预算",
"ADVERTISER_OFFLINE_BUDGET": "账号超出预算",
"PRODUCT_OFFLINE": "关联商品不可投",
"PROJECT_DISABLED": "已被项目暂停",
"AUDIT_DENY": "审核不通过",
"TIME_DONE": "已完成",
"OFFLINE_BALANCE": "账户余额不足",
"FROZEN": "已终止",
"OK": "投放中",
"NO_SCHEDULE": "不在投放时段"
},
"condition": {
"in": "包含"
},
"metric_name": "广告状态",
"metric_field": "ad_status",
"metric_type": 1,
"metric_data_type": "STRING"
}
],
"group_name": "属性设置"
},
{
"children": [
{
"duration": {
"0": "当天",
"3": "过去3天",
"5": "过去5天",
"7": "过去7天",
"30": "过去3天(含当天)",
"50": "过去5天(含当天)",
"70": "过去7天(含当天)"
},
"condition": {
"gte": "大于等于",
"lte": "小于等于",
"between": "介于"
},
"metric_unit": [
{
"unit_name": "次",
"metric_id": 4,
"unit_key": "NUMBER"
}
],
"metric_name": "转化数(回传时间)",
"metric_field": "conver_callback_devices",
"metric_type": 2,
"metric_data_type": "NUMBER"
},
{
"duration": {
"0": "当天",
"3": "过去3天",
"5": "过去5天",
"7": "过去7天",
"30": "过去3天(含当天)",
"50": "过去5天(含当天)",
"70": "过去7天(含当天)"
},
"condition": {
"gte": "大于等于",
"lte": "小于等于",
"between": "介于"
},
"metric_unit": [
{
"unit_name": "次",
"metric_id": 3,
"unit_key": "NUMBER"
}
],
"metric_name": "转化数(计费时间)",
"metric_field": "conver_charge_devices",
"metric_type": 2,
"metric_data_type": "NUMBER"
},
{
"duration": {
"0": "当天",
"3": "过去3天",
"5": "过去5天",
"7": "过去7天",
"30": "过去3天(含当天)",
"50": "过去5天(含当天)",
"70": "过去7天(含当天)"
},
"condition": {
"gte": "大于等于",
"lte": "小于等于",
"between": "介于"
},
"metric_unit": [
{
"unit_name": "元",
"metric_id": 2,
"unit_key": "CHY"
}
],
"metric_name": "消耗",
"metric_field": "today_paper_cost",
"metric_type": 2,
"metric_data_type": "NUMBER"
}
],
"group_name": "媒体指标"
},
{
"children": [
{
"duration": {
"0": "当天",
"3": "过去3天",
"5": "过去5天",
"7": "过去7天",
"30": "过去3天(含当天)",
"50": "过去5天(含当天)",
"70": "过去7天(含当天)"
},
"condition": {
"gte": "大于等于",
"lte": "小于等于",
"between": "介于"
},
"metric_unit": [
{
"unit_name": "元",
"metric_id": 29,
"unit_key": "CHY"
}
],
"metric_name": "新增当日退款金额",
"metric_field": "new_refund_amounts",
"metric_type": 2,
"metric_data_type": "NUMBER"
},
{
"duration": {
"0": "当天",
"3": "过去3天",
"5": "过去5天",
"7": "过去7天",
"30": "过去3天(含当天)",
"50": "过去5天(含当天)",
"70": "过去7天(含当天)"
},
"condition": {
"gte": "大于等于",
"lte": "小于等于",
"between": "介于"
},
"metric_unit": [
{
"unit_name": "元",
"metric_id": 21,
"unit_key": "CHY"
}
],
"metric_name": "新增当日提现金额",
"metric_field": "new_withdrawal_amounts",
"metric_type": 2,
"metric_data_type": "NUMBER"
},
{
"duration": {
"0": "当天",
"3": "过去3天",
"5": "过去5天",
"7": "过去7天",
"30": "过去3天(含当天)",
"50": "过去5天(含当天)",
"70": "过去7天(含当天)"
},
"condition": {
"gte": "大于等于",
"lte": "小于等于",
"between": "介于"
},
"metric_unit": [
{
"unit_name": "元",
"metric_id": 13,
"unit_key": "CHY"
}
],
"metric_name": "新增当日付费金额",
"metric_field": "new_pay_amounts",
"metric_type": 2,
"metric_data_type": "NUMBER"
}
],
"group_name": "业务指标"
}
]
筛选列表已创建的数据(raw_rule_json)
{
"children": [
{
"metric_unit_key": "CHY",
"other_value": "",
"group_name": "媒体指标",
"metric_field": "today_paper_cost",
"metric_data_type": "NUMBER",
"logical": "and",
"duration": "0",
"condition": "gte",
"metric_name": "消耗",
"group_id": 1,
"metric_type": 2,
"details": [
{
"duration": "0",
"metric_unit_key": "CHY",
"other_value": "",
"condition": "gte",
"metric_name": "消耗",
"group_id": 1,
"group_name": "媒体指标",
"metric_field": "today_paper_cost",
"metric_type": 2,
"metric_data_type": "NUMBER",
"value": "45",
"metric_unit_name": "元"
}
],
"value": "1234",
"metric_unit_name": "元"
},
{
"other_value": "",
"group_name": "属性设置",
"metric_field": "ad_status",
"metric_data_type": "STRING",
"logical": "and",
"duration": "AUDIT,CREATE",
"condition": "in",
"metric_name": "广告状态",
"group_id": 0,
"children": [],
"metric_type": 1,
"details": [],
"value": ""
}
],
"logical": "or"
}