fix: Fix edit port qos policy & fip
1. fix edit port qos policy 2. fix edit fip Change-Id: Ic16ca06fb0494b231547f886562924b5c849f6cc
This commit is contained in:
parent
94b3d6ed7e
commit
5afd75a690
@ -42,7 +42,14 @@ export class Edit extends ModalAction {
|
|||||||
description: this.item.description,
|
description: this.item.description,
|
||||||
qos_policy_id: {
|
qos_policy_id: {
|
||||||
selectedRowKeys: item.qos_policy_id ? [item.qos_policy_id] : [],
|
selectedRowKeys: item.qos_policy_id ? [item.qos_policy_id] : [],
|
||||||
selectedRows: item.qos_policy_id ? [{ name: item.qos_policy_id }] : [],
|
selectedRows: item.qos_policy_id
|
||||||
|
? [
|
||||||
|
{
|
||||||
|
key: item.qos_policy_id,
|
||||||
|
name: item.qos_policy_id,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
: [],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -70,15 +70,19 @@ export default class ModifyQoS extends ModalAction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get defaultValue() {
|
get defaultValue() {
|
||||||
|
const enableQosPolicy = this.item.qos_policy_id !== null;
|
||||||
return {
|
return {
|
||||||
enableQosPolicy: this.item.qos_policy_id !== null,
|
enableQosPolicy,
|
||||||
qos_policy_id: {
|
qos_policy_id: {
|
||||||
selectedRowKeys: [this.item.qos_policy_id],
|
selectedRowKeys: enableQosPolicy ? [this.item.qos_policy_id] : [],
|
||||||
selectedRows: [
|
selectedRows: enableQosPolicy
|
||||||
{
|
? [
|
||||||
name: this.item.qos_policy_id,
|
{
|
||||||
},
|
id: this.item.qos_policy_id,
|
||||||
],
|
name: this.item.qos_policy_id,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
: [],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user