diff --git a/src/views/homePage/ordinaryHome/utilizationOverview.vue b/src/views/homePage/ordinaryHome/utilizationOverview.vue index b151a8b3f1d574489717ad6e552f08735054e42b..6f7298f7261f58aa7b3bfff1b0d79c6bb6599515 100644 --- a/src/views/homePage/ordinaryHome/utilizationOverview.vue +++ b/src/views/homePage/ordinaryHome/utilizationOverview.vue @@ -218,7 +218,7 @@ export default { let { vdcCpuUsedData, vdcMemUsedData, vdcStorageUsedData } = pageData; // CPU分配比 let cpuFpbChart = { - nama: this.cpuUtilization.title, // CPU分配比 + name: this.cpuUtilization.title, // CPU分配比 data: [ { value: vdcCpuUsedData.allocateChild, @@ -242,7 +242,7 @@ export default { // 内存分配比 let memoryFpbChart = { - nama: this.memoryUtilization.title, // CPU分配比 + name: this.memoryUtilization.title, // CPU分配比 data: [ { value: vdcMemUsedData.allocateChild, @@ -268,7 +268,7 @@ export default { // 存储分配比 let storageFpbChart = { - nama: this.storageUtilization.title, // CPU分配比 + name: this.storageUtilization.title, // CPU分配比 data: [ { value: vdcMemUsedData.allocateChild, diff --git a/src/views/homePage/utilizationOverview.vue b/src/views/homePage/utilizationOverview.vue index 7c49dceb8c575e237aa4781a02d1b5acbdabb71b..924cc25fd08088160e19adc9bf6b3838f2f57777 100644 --- a/src/views/homePage/utilizationOverview.vue +++ b/src/views/homePage/utilizationOverview.vue @@ -260,7 +260,7 @@ export default { let { cpuData, memData, storageData } = pageData; // CPU利用率 let cpuLylChart = { - nama: this.cpuUtilization.title, // CPU利用率 + name: this.cpuUtilization.title, // CPU利用率 value: this.calculatePercentage(cpuData.usedCpu, cpuData.totalCpu), }; this.cpuUtilization.usedCpu = cpuData.usedCpu; @@ -274,7 +274,7 @@ export default { // 内存利用率 let memoryLylChart = { - nama: this.memoryUtilization.title, // CPU利用率 + name: this.memoryUtilization.title, // CPU利用率 value: this.calculatePercentage(memData.usedMem, memData.totalMem), }; this.memoryUtilization.usedMem = memData.usedMem; @@ -288,7 +288,7 @@ export default { // 存储利用率 let storageLylChart = { - nama: this.storageUtilization.title, // CPU利用率 + name: this.storageUtilization.title, // CPU利用率 value: this.calculatePercentage( storageData.usedStorage, storageData.totalStorage diff --git a/src/views/network/drawer/createNetworkConfigDrawer.vue b/src/views/network/drawer/createNetworkConfigDrawer.vue index 42b22eab5044499275c41f479b83f68afbd5f5e7..d588199b5ee8a696460f9aac3a3ba48df6943dda 100644 --- a/src/views/network/drawer/createNetworkConfigDrawer.vue +++ b/src/views/network/drawer/createNetworkConfigDrawer.vue @@ -170,11 +170,11 @@ export default { mcNetworkConfig().then((res) => { this.virtualSwitchList = res.virtualSwitchList; this.addressPoolList = res.addressPoolList; - let defauleAddressPool = this.addressPoolList.find( + let defaultAddressPool = this.addressPoolList.find( (item) => item.defaultPool === true ); - if (defauleAddressPool) { - this.createNeworkFormData.addressPool = defauleAddressPool.name; + if (defaultAddressPool) { + this.createNeworkFormData.addressPool = defaultAddressPool.name; } this.securityGroupList = res.securityGroupList; }); diff --git a/src/views/operate/organizationMgr/orgdetail/outline.vue b/src/views/operate/organizationMgr/orgdetail/outline.vue index 6728a622472f964ae0090f3d66ab97e600142280..065589f9000b4739bcf6e6369b9934f11ccbad8c 100644 --- a/src/views/operate/organizationMgr/orgdetail/outline.vue +++ b/src/views/operate/organizationMgr/orgdetail/outline.vue @@ -276,7 +276,7 @@ export default { drowChart() { // cpu分配比 let cpufpb = { - nama: this.$t("common.details.CPUallocationRatio"), // "cpu分配比", + name: this.$t("common.details.CPUallocationRatio"), // "cpu分配比", value: this.calculatePercentage( this.pageInfo.allocationCpu, this.pageInfo.totalCpu @@ -285,7 +285,7 @@ export default { this.cpufpbChart.option = this.getpersentoption(cpufpb); // 内存分配比 let memfpb = { - nama: this.$t("common.details.memoryAllocationRatio"), // "内存分配比", + name: this.$t("common.details.memoryAllocationRatio"), // "内存分配比", value: this.calculatePercentage( this.pageInfo.allocationMem, this.pageInfo.totalMem @@ -294,7 +294,7 @@ export default { this.memfpbChart.option = this.getpersentoption(memfpb); // 存储分配比 let storagefpb = { - nama: this.$t("common.details.storageAllocationRatio"), // "存储分配比", + name: this.$t("common.details.storageAllocationRatio"), // "存储分配比", value: this.calculatePercentage( this.pageInfo.allocationStorage, this.pageInfo.totalStorage @@ -304,7 +304,7 @@ export default { // 饼图 let wlzjinfo = { - nama: this.$t("authorityMgr.userNum"), // "用户数", + name: this.$t("authorityMgr.userNum"), // "用户数", data: [ { value: this.pageInfo.activeUser, @@ -325,7 +325,7 @@ export default { this.wlzjChart.option = this.geibingoption(wlzjinfo); let yfwqinfo = { - nama: this.$t("authorityMgr.serverVmNum"), // "云服务器", + name: this.$t("authorityMgr.serverVmNum"), // "云服务器", data: [ { value: this.pageInfo.machineOnline, diff --git a/src/views/resource/availabilityZone/detailPage/clusterSummary.vue b/src/views/resource/availabilityZone/detailPage/clusterSummary.vue index 3567324438a9cacdf645517f8e6dcbc081c8529d..0e0b9fab86f0fd584ef08e1246954fae524f7478 100644 --- a/src/views/resource/availabilityZone/detailPage/clusterSummary.vue +++ b/src/views/resource/availabilityZone/detailPage/clusterSummary.vue @@ -265,7 +265,7 @@ export default { this.pageInfo = this.dataInfo; // cpu分配比 let cpufpb = { - nama: this.$t("common.details.CPUallocationRatio"), // "cpu分配比", + name: this.$t("common.details.CPUallocationRatio"), // "cpu分配比", value: this.calculatePercentage( this.pageInfo.cpuUsed, this.pageInfo.cpuTotal @@ -274,7 +274,7 @@ export default { this.cpufpbChart.option = this.getpersentoption(cpufpb); // 内存分配比 let memfpb = { - nama: this.$t("common.details.memoryAllocationRatio"), // "内存分配比", + name: this.$t("common.details.memoryAllocationRatio"), // "内存分配比", value: this.calculatePercentage( this.pageInfo.memUsed, this.pageInfo.memTotal @@ -283,7 +283,7 @@ export default { this.memfpbChart.option = this.getpersentoption(memfpb); // 存储分配比 let storagefpb = { - nama: this.$t("common.details.storageAllocationRatio"), // "存储分配比", + name: this.$t("common.details.storageAllocationRatio"), // "存储分配比", value: this.calculatePercentage( this.pageInfo.storageUsed, this.pageInfo.storageTotal @@ -292,7 +292,7 @@ export default { this.storagefpbChart.option = this.getpersentoption(storagefpb); // 饼图 let wljqinfo = { - nama: this.$t("resourceMgr.zoneClusterDesc"), // "物理集群", + name: this.$t("resourceMgr.zoneClusterDesc"), // "物理集群", data: [ { value: this.pageInfo.clusterOnline, @@ -313,7 +313,7 @@ export default { this.wljqChart.option = this.geibingoption(wljqinfo); let wlzjinfo = { - nama: this.$t("resourceMgr.clusterPhysicalHost"), // "物理主机", + name: this.$t("resourceMgr.clusterPhysicalHost"), // "物理主机", data: [ { value: this.pageInfo.physicalHostOnline, @@ -334,7 +334,7 @@ export default { this.wlzjChart.option = this.geibingoption(wlzjinfo); let yfwqinfo = { - nama: this.$t("authorityMgr.serverVmNum"), // "云服务器", + name: this.$t("authorityMgr.serverVmNum"), // "云服务器", data: [ { value: this.pageInfo.machineOnline, diff --git a/src/views/resource/ecs/components/detail/detail-summary.vue b/src/views/resource/ecs/components/detail/detail-summary.vue index 232ad43b999cf6355e404426b2e75580afb3c5a9..6ca4a69b09ba06707682c8977a4943363a9bf4b3 100644 --- a/src/views/resource/ecs/components/detail/detail-summary.vue +++ b/src/views/resource/ecs/components/detail/detail-summary.vue @@ -193,19 +193,19 @@ export default { // CPU利用率 let cpufpb = { - nama: this.$t("common.details.CPUUtilization"), // "CPU利用率", + name: this.$t("common.details.CPUUtilization"), // "CPU利用率", value: this.resourceUsedInfo.cpuPercent, }; this.cpufpbChart.option = this.getpersentoption(cpufpb); // 内存利用率 let memfpb = { - nama: this.$t("common.details.memoryUtilization"), // "内存利用率", + name: this.$t("common.details.memoryUtilization"), // "内存利用率", value: this.resourceUsedInfo.memoryPercent, }; this.memfpbChart.option = this.getpersentoption(memfpb); // 存储利用率 let storagefpb = { - nama: this.$t("common.details.storageUtilization"), // "存储利用率", + name: this.$t("common.details.storageUtilization"), // "存储利用率", value: this.resourceUsedInfo.diskPercent, }; this.storagefpbChart.option = this.getpersentoption(storagefpb); diff --git a/src/views/resource/physicalCluster/detailPage/clusterSummary.vue b/src/views/resource/physicalCluster/detailPage/clusterSummary.vue index 05e0589762b062f51cef74f22052b4cbaa28620b..72dfb645b7a5b610edf08bc99b554683065ac373 100644 --- a/src/views/resource/physicalCluster/detailPage/clusterSummary.vue +++ b/src/views/resource/physicalCluster/detailPage/clusterSummary.vue @@ -253,7 +253,7 @@ export default { // cpu百分比图 let cpufpb = { - nama: this.$t("common.details.CPUUtilization"), // "CPU利用率", + name: this.$t("common.details.CPUUtilization"), // "CPU利用率", value: this.calculatePercentage( this.resourceUsedInfo.cpuUsed, this.resourceUsedInfo.cpuTotal @@ -262,7 +262,7 @@ export default { this.cpufpbChart.option = this.getpersentoption(cpufpb); // 内存分配比 let memfpb = { - nama: this.$t("common.details.memoryUtilization"), // "内存利用率", + name: this.$t("common.details.memoryUtilization"), // "内存利用率", value: this.calculatePercentage( this.resourceUsedInfo.memUsed, this.resourceUsedInfo.memTotal @@ -271,7 +271,7 @@ export default { this.memfpbChart.option = this.getpersentoption(memfpb); // 存储分配比 let storagefpb = { - nama: this.$t("common.details.storageUtilization"), // "存储利用率", + name: this.$t("common.details.storageUtilization"), // "存储利用率", value: this.calculatePercentage( this.resourceUsedInfo.storageUsed, this.resourceUsedInfo.storageTotal diff --git a/src/views/resource/physicalCluster/index.vue b/src/views/resource/physicalCluster/index.vue index 40bede5f8794cc25e28b8d4cf70b5cf6bcbb5518..8c70823050d165fee6436009d123567ebdcbe2ae 100644 --- a/src/views/resource/physicalCluster/index.vue +++ b/src/views/resource/physicalCluster/index.vue @@ -319,13 +319,13 @@ export default { }, // 删除 deleteInfo(row) { - let clusterEdleteConfirm = this.$t("resourceMgr.clusterEdleteConfirm"); // 确定删除该物理集群吗? - let clusterEdleteSuccess = this.$t("resourceMgr.clusterEdleteSuccess"); // "删除物理集群成功!" + let clusterDeleteConfirm = this.$t("resourceMgr.clusterDeleteConfirm"); // 确定删除该物理集群吗? + let clusterDeleteSuccess = this.$t("resourceMgr.clusterDeleteSuccess"); // "删除物理集群成功!" let params = { clusterId: row.clusterId, }; - this.$confirm(clusterEdleteConfirm, this.$t("common.tips"), { + this.$confirm(clusterDeleteConfirm, this.$t("common.tips"), { confirmButtonText: this.$t("common.confirm"), cancelButtonText: this.$t("common.cancel"), type: "warning", @@ -333,7 +333,7 @@ export default { .then(() => { deleteCluster(params) .then((res) => { - this.alertTips(clusterEdleteSuccess, "success"); + this.alertTips(clusterDeleteSuccess, "success"); this.renderTable(); }) .catch((err) => { diff --git a/src/views/resource/vdcPage/detailPage/clusterSummary.vue b/src/views/resource/vdcPage/detailPage/clusterSummary.vue index e536782965e886c21eed686768cd14c61e47899b..e9826ccde10ee81ad95060630273431d071a6d47 100644 --- a/src/views/resource/vdcPage/detailPage/clusterSummary.vue +++ b/src/views/resource/vdcPage/detailPage/clusterSummary.vue @@ -292,7 +292,7 @@ export default { this.pageInfo = this.dataInfo; // cpu分配比 let cpufpb = { - nama: this.$t("common.details.CPUallocationRatio"), // "cpu分配比", + name: this.$t("common.details.CPUallocationRatio"), // "cpu分配比", data: [ { value: this.pageInfo.allocationCpu, @@ -317,7 +317,7 @@ export default { this.cpufpbChart.option = this.getbingoption(cpufpb); // 内存分配比 let memfpb = { - nama: this.$t("common.details.memoryAllocationRatio"), // "内存分配比", + name: this.$t("common.details.memoryAllocationRatio"), // "内存分配比", data: [ { value: this.pageInfo.allocationMem, @@ -342,7 +342,7 @@ export default { this.memfpbChart.option = this.getbingoption(memfpb); // 存储分配比 let storagefpb = { - nama: this.$t("common.details.storageAllocationRatio"), // "存储分配比", + name: this.$t("common.details.storageAllocationRatio"), // "存储分配比", data: [ { value: this.pageInfo.allocationStorage, @@ -384,7 +384,7 @@ export default { } let fpb = { - nama: this.$t("common.details.storageAllocationRatio"), // "存储分配比", + name: this.$t("common.details.storageAllocationRatio"), // "存储分配比", data: [ { value: element.allocationChild,