diff --git a/src/pages/materialsStation/toolsLease/toolsLeaseAdd.vue b/src/pages/materialsStation/toolsLease/toolsLeaseAdd.vue index e7f551f..504d56f 100644 --- a/src/pages/materialsStation/toolsLease/toolsLeaseAdd.vue +++ b/src/pages/materialsStation/toolsLease/toolsLeaseAdd.vue @@ -358,6 +358,10 @@ const getAgreementInfoById = async () => { // 获取工具器 const getEquipmentList = async (params) => { console.log('🚀 ~ getEquipmentList ~ params:', params) + uni.showLoading({ + title: '加载中...', + mask: true, // 遮罩层 + }) try { const res = await getTypeTreeList({ agreementIdList: params, proId: formData.proId, teamName: formData.teamName }) if (res.data.length > 0) { @@ -366,6 +370,8 @@ const getEquipmentList = async (params) => { } } catch (error) { console.log('🚀 ~ getMachineListApi ~ error:', error) + } finally { + uni.hideLoading() } } function formatEquipmentTree(list) {