feat: 大屏改为纯流式自适应布局,新增KPI带与产线动态拓扑地图

This commit is contained in:
SunYF
2026-10-28 10:10:17 +08:00
parent 1f10c3091e
commit 4d3c4e2c3a
131 changed files with 18118 additions and 1728 deletions
+42
View File
@@ -201,6 +201,44 @@ var (
},
},
}
// BackupRecordColumns holds the columns for the "backup_record" table.
BackupRecordColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt, Increment: true},
{Name: "executed_at", Type: field.TypeInt64, Comment: "备份执行时刻(unix秒)"},
{Name: "range_start", Type: field.TypeInt64, Comment: "备份范围开始(unix秒,含)"},
{Name: "range_end", Type: field.TypeInt64, Comment: "备份范围结束(unix秒,含)"},
{Name: "backup_path", Type: field.TypeString, Comment: "备份包(zip)在目标盘的完整路径"},
{Name: "total_size", Type: field.TypeInt64, Comment: "备份包总字节数", Default: 0},
{Name: "items_json", Type: field.TypeString, Comment: "各数据项及大小(JSON数组:[{name,rows,bytes}])"},
{Name: "status", Type: field.TypeString, Size: 16, Comment: "success/failed/partial", Default: "success"},
{Name: "operator", Type: field.TypeString, Size: 64, Comment: "操作人", Default: ""},
{Name: "checksum", Type: field.TypeString, Size: 64, Comment: "备份包校验和(sha256,基于 manifest)", Default: ""},
{Name: "scope", Type: field.TypeString, Size: 8, Comment: "写入方 mes/wms", Default: "mes"},
}
// BackupRecordTable holds the schema information for the "backup_record" table.
BackupRecordTable = &schema.Table{
Name: "backup_record",
Comment: "BackupRecord 备份记录:备份到外部存储写一条,清理前校验时间窗覆盖",
Columns: BackupRecordColumns,
PrimaryKey: []*schema.Column{BackupRecordColumns[0]},
Indexes: []*schema.Index{
{
Name: "backuprecord_range_start",
Unique: false,
Columns: []*schema.Column{BackupRecordColumns[2]},
},
{
Name: "backuprecord_range_end",
Unique: false,
Columns: []*schema.Column{BackupRecordColumns[3]},
},
{
Name: "backuprecord_status",
Unique: false,
Columns: []*schema.Column{BackupRecordColumns[7]},
},
},
}
// CallPoolColumns holds the columns for the "call_pool" table.
CallPoolColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt, Increment: true},
@@ -1359,6 +1397,7 @@ var (
AlertRuleTable,
AssociationTraceTable,
AttachmentTable,
BackupRecordTable,
CallPoolTable,
DailyPlanTable,
DockTable,
@@ -1410,6 +1449,9 @@ func init() {
AttachmentTable.Annotation = &entsql.Annotation{
Table: "attachment",
}
BackupRecordTable.Annotation = &entsql.Annotation{
Table: "backup_record",
}
CallPoolTable.Annotation = &entsql.Annotation{
Table: "call_pool",
}