fix : 修复数据loading加载

This commit is contained in:
2024-03-05 22:59:09 +08:00
parent 4ec7558a31
commit 3b42035892
9 changed files with 57 additions and 22 deletions

View File

@@ -364,12 +364,12 @@ const handleChangeMenu = (e) => {
const getList = () => {
const loading = ElLoading.service({
lock: true,
text: '正在加载系统资源',
text: '正在加载系统资源...',
background: 'rgba(0, 0, 0, 0.7)',
customClass:'allLoading'
})
getEquipmentList(tunnelId).then(res => {
if (res.code === 1000) {
loading.close()
fanData.value = res.data.frequencyChangerList
res.data.windPressureSensorList.forEach(item => {
item.offset = item.offset + 4000
@@ -390,6 +390,7 @@ const getList = () => {
}
})
}
loading.close()
})
}
const getTunnel = () => {