fix(equipment): 修复设备保养配置查询逻辑

This commit is contained in:
zxy 2026-04-22 16:15:43 +08:00
parent 4987f328f2
commit 232e22d8d5
2 changed files with 12 additions and 2 deletions

View File

@ -142,8 +142,13 @@ export default {
itemList: data.itemList || []
}
this.loading = false
}).catch(() => {
}).catch((err) => {
this.loading = false
this.dialogVisible = false
this.$message({
type: 'error',
message: err.message || '获取数据失败'
})
})
},
getMainTypeLabel(value) {

View File

@ -295,8 +295,13 @@ export default {
})
}
this.loading = false
}).catch(() => {
}).catch((err) => {
this.loading = false
this.dialogVisible = false
this.$message({
type: 'error',
message: err.message || '获取数据失败'
})
})
},
loadDeptList() {