diff --git a/src/locales/en-US/views/local-volumes/dialogs/MigrateDialog.json b/src/locales/en-US/views/local-volumes/dialogs/MigrateDialog.json index 839840e..bce1fbc 100644 --- a/src/locales/en-US/views/local-volumes/dialogs/MigrateDialog.json +++ b/src/locales/en-US/views/local-volumes/dialogs/MigrateDialog.json @@ -12,6 +12,9 @@ "localVolumeName": "LocalVolumeName", "state": "State", "node": "Node", + "schedulingPolicies": "Scheduling Policy", + "affinity": "Affinity-based scheduling", + "random": "Random scheduling", "noty": { "success": "Dispatched migration task successfully", "error": "Failed to dispatch migration task" diff --git a/src/locales/zh-CN/views/local-volumes/dialogs/MigrateDialog.json b/src/locales/zh-CN/views/local-volumes/dialogs/MigrateDialog.json index c79d305..d6911f7 100644 --- a/src/locales/zh-CN/views/local-volumes/dialogs/MigrateDialog.json +++ b/src/locales/zh-CN/views/local-volumes/dialogs/MigrateDialog.json @@ -12,6 +12,9 @@ "localVolumeName": "LV 名称", "state": "状态", "node": "节点", + "schedulingPolicies": "调度策略", + "affinity": "亲和性调度", + "random": "随机", "noty": { "success": "迁移任务下发成功", "error": "迁移任务下发失败" diff --git a/src/services/Metric.ts b/src/services/Metric.ts index d477a1a..d68c149 100644 --- a/src/services/Metric.ts +++ b/src/services/Metric.ts @@ -24,7 +24,7 @@ import { ContentType, HttpClient, RequestParams } from "./http-client"; export class Metric extends HttpClient { /** - * @description EventList 排序 resourceType枚举(Cluster;StorageNode;DiskNode;Pool;Volume;DiskVolume;Disk) sort枚举 (time、name、type) sortDir:升序"ASC" 降序"DESC" + * @description EventList 排序 resourceType枚举(Cluster;StorageNode;DiskNode;Pool;Volume;DiskVolume;Disk) sort枚举 (time、name、type) * * @tags Metric * @name EventsList diff --git a/src/services/Volume.ts b/src/services/Volume.ts index d20f46c..bef7ae5 100644 --- a/src/services/Volume.ts +++ b/src/services/Volume.ts @@ -106,7 +106,7 @@ export class Volume extends HttpClient diff --git a/src/services/data-contracts.ts b/src/services/data-contracts.ts index 731e943..fae939d 100644 --- a/src/services/data-contracts.ts +++ b/src/services/data-contracts.ts @@ -525,6 +525,7 @@ export interface ApiVolumeList { } export interface ApiVolumeMigrateInfo { + replicaAffinity?: string; selectedNode?: string; srcNode?: string; volumeName?: string; @@ -555,6 +556,7 @@ export interface ApiVolumeMigrateOperation { export interface ApiVolumeMigrateReqBody { abort?: boolean; + replicaAffinity?: string; selectedNode?: string; srcNode?: string; } @@ -2086,11 +2088,6 @@ export interface V1Alpha1SmartInfo { } export enum V1Alpha1State { - MountPointStateEmpty = "", - MountPointToBeMounted = "ToBeMounted", - MountPointToBeUnMount = "ToBeUnMount", - MountPointMounted = "Mounted", - MountPointNotReady = "NotReady", NodeStateReady = "Ready", NodeStateMaintain = "Maintain", NodeStateOffline = "Offline", @@ -2125,6 +2122,11 @@ export enum V1Alpha1State { DiskStateAvailable = "Available", DiskStateInUse = "InUse", DiskStateOffline = "Offline", + MountPointStateEmpty = "", + MountPointToBeMounted = "ToBeMounted", + MountPointToBeUnMount = "ToBeUnMount", + MountPointMounted = "Mounted", + MountPointNotReady = "NotReady", } export interface V1Alpha1StorageNodeCondition { diff --git a/src/views/local-volumes/dialogs/MigrateDialog.vue b/src/views/local-volumes/dialogs/MigrateDialog.vue index b002bcc..673c82b 100644 --- a/src/views/local-volumes/dialogs/MigrateDialog.vue +++ b/src/views/local-volumes/dialogs/MigrateDialog.vue @@ -92,6 +92,24 @@ /> + + + + + +