This commit is contained in:
		
							parent
							
								
									93d1aebcea
								
							
						
					
					
						commit
						7a495050e0
					
				| 
						 | 
					@ -358,6 +358,10 @@ const getAgreementInfoById = async () => {
 | 
				
			||||||
// 获取工具器
 | 
					// 获取工具器
 | 
				
			||||||
const getEquipmentList = async (params) => {
 | 
					const getEquipmentList = async (params) => {
 | 
				
			||||||
  console.log('🚀 ~ getEquipmentList ~ params:', params)
 | 
					  console.log('🚀 ~ getEquipmentList ~ params:', params)
 | 
				
			||||||
 | 
					  uni.showLoading({
 | 
				
			||||||
 | 
					    title: '加载中...',
 | 
				
			||||||
 | 
					    mask: true, // 遮罩层
 | 
				
			||||||
 | 
					  })
 | 
				
			||||||
  try {
 | 
					  try {
 | 
				
			||||||
    const res = await getTypeTreeList({ agreementIdList: params, proId: formData.proId, teamName: formData.teamName })
 | 
					    const res = await getTypeTreeList({ agreementIdList: params, proId: formData.proId, teamName: formData.teamName })
 | 
				
			||||||
    if (res.data.length > 0) {
 | 
					    if (res.data.length > 0) {
 | 
				
			||||||
| 
						 | 
					@ -366,6 +370,8 @@ const getEquipmentList = async (params) => {
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  } catch (error) {
 | 
					  } catch (error) {
 | 
				
			||||||
    console.log('🚀 ~ getMachineListApi ~ error:', error)
 | 
					    console.log('🚀 ~ getMachineListApi ~ error:', error)
 | 
				
			||||||
 | 
					  } finally {
 | 
				
			||||||
 | 
					    uni.hideLoading()
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
function formatEquipmentTree(list) {
 | 
					function formatEquipmentTree(list) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue