From 716e816a6697fca4e1b7ec7fc2051a92887410d9 Mon Sep 17 00:00:00 2001 From: Hungerdream <1710233908@qq.com> Date: Fri, 31 Jul 2026 18:12:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20=E6=9C=8D=E5=8A=A1=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E6=94=AF=E6=8C=81=E4=B8=80=E4=B8=BB=E5=A4=9A=E4=BB=8E?= =?UTF-8?q?=E4=BA=A4=E4=BB=98=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - MySQL 新增'一主多从'模式:有序多选主机、replica_count(1-7)输入、动态拓扑预览 - precheck 校验库存主机数与选择数量,支持留空自动调度 - 交付负载携带 topology/replica_count/target_hosts,已交付主机解析 target_host_ips 列表 - 主机选择占位符退化为常量,移除冗余三元表达式 --- frontend/src/api/delivery.ts | 4 + frontend/src/views/service/Catalog.vue | 199 ++++++++++++++++++++++--- 2 files changed, 180 insertions(+), 23 deletions(-) diff --git a/frontend/src/api/delivery.ts b/frontend/src/api/delivery.ts index 5698b03..9aa1180 100644 --- a/frontend/src/api/delivery.ts +++ b/frontend/src/api/delivery.ts @@ -25,9 +25,11 @@ export interface CreateMySQLDeliveryPayload { instance_name: string mysql_version: string topology: string + replica_count?: number mysql_port?: number data_disk: string target_host?: string + target_hosts?: string[] cpu_milli: number memory_mi: number storage_gi: number @@ -77,6 +79,8 @@ export interface DeliveryTask { instance_name: string target_host?: string target_host_ip?: string + target_hosts?: string + target_host_ips?: string mysql_port?: number postgresql_port?: number status: string diff --git a/frontend/src/views/service/Catalog.vue b/frontend/src/views/service/Catalog.vue index 1b84470..4ac0e52 100644 --- a/frontend/src/views/service/Catalog.vue +++ b/frontend/src/views/service/Catalog.vue @@ -101,9 +101,9 @@ -