Commit 4c828d2e by qinjianhui

fix: loading index 修改

parent cf8a62da
......@@ -38,3 +38,9 @@
:root {
--el-menu-icon-width: 0px;
}
.el-loading-mask.is-fullscreen {
z-index: 10000 !important;
}
.el-overlay {
z-index: 5000 !important;
}
......@@ -218,6 +218,11 @@ const formRules: FormRules = {
}
const loadUserList = async () => {
const loading = ElLoading.service({
lock: true,
text: '加载中...',
background: 'rgba(0, 0, 0, 0.7)',
})
try {
const res = await getUserListApi()
if (res.code === 200) {
......@@ -225,6 +230,8 @@ const loadUserList = async () => {
}
} catch (e) {
console.error(e)
} finally {
loading.close()
}
}
......@@ -289,12 +296,19 @@ const loadAllLocationList = async (
warehouseId: string | number | undefined,
) => {
if (!warehouseId) return
const loading = ElLoading.service({
lock: true,
text: '加载中...',
background: 'rgba(0, 0, 0, 0.7)',
})
try {
const res = await LocationInfoGetAll(warehouseId)
if (res.code !== 200) return
allLocationList.value = res.data || []
} catch (e) {
console.error(e)
} finally {
loading.close()
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment