fix: 修改传参
							parent
							
								
									faf6bdedc8
								
							
						
					
					
						commit
						b1900c39b2
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
      }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue