38 lines
2.2 KiB
JSON
38 lines
2.2 KiB
JSON
{
|
|
"tblname": "world_sync_log",
|
|
"params": {
|
|
"browserfields": {
|
|
"title": "同步日志",
|
|
"fields": [
|
|
{"name": "batch_id", "title": "批次号", "width": 130, "sortable": true},
|
|
{"name": "sync_code", "title": "同步编码", "width": 130},
|
|
{"name": "sync_name", "title": "同步名称", "width": 160},
|
|
{"name": "sync_type", "title": "类型", "width": 90},
|
|
{"name": "sync_status", "title": "状态", "width": 90},
|
|
{"name": "total_count", "title": "总数", "width": 70},
|
|
{"name": "success_count", "title": "成功", "width": 70},
|
|
{"name": "fail_count", "title": "失败", "width": 70},
|
|
{"name": "begin_time", "title": "开始时间", "width": 150},
|
|
{"name": "end_time", "title": "结束时间", "width": 150},
|
|
{"name": "created_at", "title": "创建时间", "width": 150, "sortable": true}
|
|
]
|
|
},
|
|
"editable": {
|
|
"fields": [
|
|
{"name": "sync_code", "label": "同步编码", "uitype": "text", "required": true},
|
|
{"name": "sync_name", "label": "同步名称", "uitype": "text"},
|
|
{"name": "sync_type", "label": "同步类型", "uitype": "select", "options": [{"value": "full", "label": "全量同步"}, {"value": "incremental", "label": "增量同步"}], "value": "incremental"},
|
|
{"name": "sync_status", "label": "状态", "uitype": "select", "options": [{"value": "pending", "label": "待执行"}, {"value": "running", "label": "执行中"}, {"value": "success", "label": "成功"}, {"value": "failed", "label": "失败"}], "value": "pending"},
|
|
{"name": "source_type", "label": "源类型", "uitype": "text"},
|
|
{"name": "source_id", "label": "源ID", "uitype": "text"},
|
|
{"name": "target_type", "label": "目标类型", "uitype": "text"},
|
|
{"name": "target_id", "label": "目标ID", "uitype": "text"},
|
|
{"name": "error_msg", "label": "错误信息", "uitype": "textarea"}
|
|
]
|
|
},
|
|
"new_data_url": "{{entire_url('/world_sync/api/sync_log_create.dspy')}}",
|
|
"update_data_url": "{{entire_url('/world_sync/api/sync_log_update.dspy')}}",
|
|
"delete_data_url": "{{entire_url('/world_sync/api/sync_log_delete.dspy')}}"
|
|
}
|
|
}
|