fix: modify
parent
1b8a63a24d
commit
ca86c7fede
|
@ -746,28 +746,11 @@ export default {
|
|||
this.getVendor()
|
||||
},
|
||||
getVendor() {
|
||||
const params = JSON.parse(
|
||||
handleSearchParam({
|
||||
'name:LK': this.searchObj.name,
|
||||
dcId: this.searchObj.dcId
|
||||
})
|
||||
)
|
||||
// 转换参数格式
|
||||
const convertedParams = []
|
||||
params.forEach((item) => {
|
||||
const paramKeys = Object.keys(item.param)
|
||||
paramKeys.forEach((key) => {
|
||||
convertedParams.push({
|
||||
param: { [key]: item.param[key] },
|
||||
sign: item.sign
|
||||
})
|
||||
})
|
||||
})
|
||||
conditionCloudVendor({
|
||||
params: JSON.stringify(convertedParams),
|
||||
condition: JSON.stringify({
|
||||
condition: 'listByTypes',
|
||||
types: ['KVM', 'OPENSTACK', 'VMWARE', 'FUSIONCLOUD', 'HMC', 'MANAGEONE', 'KUBERNETES', 'TIANYI', 'HUAWEI', 'CAS', 'ALIYUN', 'TCE', 'ABCSTACK', 'AWS', 'HCSO', 'EASYSTACK', 'HWACCESS', 'APSARASTACK', 'ZSTACK', 'CNWARE', 'KINGCLOUD', 'SMARTX', 'QCLOUD', 'CLOUDOS', 'CTSTACK']
|
||||
condition: 'vendorTypes',
|
||||
types: ['KVM', 'OPENSTACK', 'VMWARE', 'FUSIONCLOUD', 'HMC', 'MANAGEONE', 'KUBERNETES', 'TIANYI', 'HUAWEI', 'CAS', 'ALIYUN', 'TCE', 'ABCSTACK', 'AWS', 'HCSO', 'EASYSTACK', 'HWACCESS', 'APSARASTACK', 'ZSTACK', 'CNWARE', 'KINGCLOUD', 'SMARTX', 'QCLOUD', 'CLOUDOS', 'CTSTACK'],
|
||||
dcId: this.searchObj.dcId
|
||||
})
|
||||
}).then((data) => {
|
||||
if (data.success) {
|
||||
|
|
Loading…
Reference in New Issue