From ca86c7fedec215d0e834b960b0671643db097566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E5=90=AF=E9=BE=99?= Date: Thu, 7 Nov 2024 15:12:47 +0800 Subject: [PATCH] fix: modify --- .../src/views/compute/cloud/platform.vue | 23 +++---------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/webs/cms-web/src/views/compute/cloud/platform.vue b/webs/cms-web/src/views/compute/cloud/platform.vue index f606d5e..9c0d779 100644 --- a/webs/cms-web/src/views/compute/cloud/platform.vue +++ b/webs/cms-web/src/views/compute/cloud/platform.vue @@ -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) {