Skip to content

前端编辑Cluster时报错, 保存时 也报错 #11

@foreverhot1019

Description

@foreverhot1019
  1. 维护Cluster时,维护了HttpClient,但是报错 ClusterId未赋值,后端验证报错

  2. Cluster列表,无法点击编辑,selectInfo.healthCheck.passive.enabled 没有值导致,弹出也报错

  3. 编辑Cluster,保存 后端报错,疑似数据状态 不同步
    `handleEdit(row) {
    row["IsEdit"] = true;
    if (
    .isEmpty(row.healthCheck)) {
    row.healthCheck = {}
    }
    if (!.isEmpty(row.httpRequest)) {
    row.httpRequest.enabled = true;
    }
    if (!
    .isEmpty(row.httpClient)) {
    row.httpClient.enabled = true;
    }
    if (.isEmpty(row.healthCheck.active)) {
    row.healthCheck.active = {}
    }
    if (
    .isEmpty(row.healthCheck.passive)) {
    row.healthCheck.passive = {}
    }
    if (!_.isBoolean(row.healthCheck.active.enabled) && .isEmpty(row.healthCheck.active.enabled)) {
    row.healthCheck.active.enabled = false;
    }
    if (!
    .isBoolean(row.healthCheck.passive.enabled) && _.isEmpty(row.healthCheck.passive.enabled)) {
    row.healthCheck.passive.enabled = false;
    }

    this.currentCluster = _.cloneDeep(row);
    this.showClusterModal = true;
    },`

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions