Commit 4c828d2e by qinjianhui

fix: loading index 修改

parent cf8a62da
...@@ -38,3 +38,9 @@ ...@@ -38,3 +38,9 @@
:root { :root {
--el-menu-icon-width: 0px; --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 = { ...@@ -218,6 +218,11 @@ const formRules: FormRules = {
} }
const loadUserList = async () => { const loadUserList = async () => {
const loading = ElLoading.service({
lock: true,
text: '加载中...',
background: 'rgba(0, 0, 0, 0.7)',
})
try { try {
const res = await getUserListApi() const res = await getUserListApi()
if (res.code === 200) { if (res.code === 200) {
...@@ -225,6 +230,8 @@ const loadUserList = async () => { ...@@ -225,6 +230,8 @@ const loadUserList = async () => {
} }
} catch (e) { } catch (e) {
console.error(e) console.error(e)
} finally {
loading.close()
} }
} }
...@@ -289,12 +296,19 @@ const loadAllLocationList = async ( ...@@ -289,12 +296,19 @@ const loadAllLocationList = async (
warehouseId: string | number | undefined, warehouseId: string | number | undefined,
) => { ) => {
if (!warehouseId) return if (!warehouseId) return
const loading = ElLoading.service({
lock: true,
text: '加载中...',
background: 'rgba(0, 0, 0, 0.7)',
})
try { try {
const res = await LocationInfoGetAll(warehouseId) const res = await LocationInfoGetAll(warehouseId)
if (res.code !== 200) return if (res.code !== 200) return
allLocationList.value = res.data || [] allLocationList.value = res.data || []
} catch (e) { } catch (e) {
console.error(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