diff --git a/src/views/resource_screen/index.vue b/src/views/resource_screen/index.vue index 7ddb953..ad776a0 100644 --- a/src/views/resource_screen/index.vue +++ b/src/views/resource_screen/index.vue @@ -154,14 +154,14 @@ export default { } // 云资源统计 const getResource = async () => { - const res = await getResourceCount({ type: state.vendorType, isPublic: state.isPublic }) + const res = await getResourceCount({ vendorType: state.vendorType, isPublic: state.isPublic }) if (res.success) { state.resourceCount = res.data } } // 云主机状态 const getHostCount = async () => { - const res = await getHostStatus({ type: state.vendorType, isPublic: state.isPublic }) + const res = await getHostStatus({ vendorType: state.vendorType, isPublic: state.isPublic }) if (res.success) { state.hostCount = res.data } @@ -175,14 +175,14 @@ export default { } // 申请趋势 const getApplyCount = async () => { - const res = await getResourceApply({ type: state.vendorType, isPublic: state.isPublic }) + const res = await getResourceApply({ vendorType: state.vendorType, isPublic: state.isPublic }) if (res.success) { state.applyTrendData = res.data } } // 使用趋势 const getUsedCount = async () => { - const res = await getResourceTrend({ type: state.vendorType, isPublic: state.isPublic }) + const res = await getResourceTrend({ vendorType: state.vendorType, isPublic: state.isPublic }) if (res.success) { state.usedTrendData = res.data }