fix: modify

develop
时启龙 2024-11-07 15:12:47 +08:00
parent 1b8a63a24d
commit ca86c7fede
1 changed files with 3 additions and 20 deletions

View File

@ -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) {