提交 7d1566b1 authored 作者: lidongxu's avatar lidongxu

feat(plan): 给上传修改计划添加loading效果

同上
上级 085b5089
// cover some element-ui styles
body .el-loading-mask{
z-index: 10000 !important;
}
.el-breadcrumb__inner,
.el-breadcrumb__inner a {
font-weight: 400 !important;
......
......@@ -403,7 +403,7 @@ import { v4 as uuidv4 } from 'uuid';
import store from '@/store'
import { parseTime } from '@/utils'
import { ElMessage, ElMessageBox } from 'element-plus';
const { proxy } = getCurrentInstance();
// 城市经理状态为 true
const cityManagerPrivilege = computed(() => {
return store.state?.value?.user?.userInfo?.privilegeId == 1
......@@ -692,7 +692,7 @@ const tableRowTimeOutClassName = ({ row }) => {
// 上传计划表格
const uploadFile = async (file) => {
proxy.$modal.loading("正在上传数据,请稍后...");
// 拼接当前月数为文件夹名
const date = new Date()
const month = date.getMonth() + 1
......@@ -705,7 +705,7 @@ const uploadFile = async (file) => {
planTableList.value = res.data.table
confirmExcelUUID.value = res.data.uuid
dialogVisible.value = true
proxy.$modal.closeLoading();
return true
}
......@@ -1096,6 +1096,7 @@ const selEmployee = () => {
// 批量表格修改计划
const uploadChangeFile = async (file) => {
proxy.$modal.loading("正在上传数据,请稍后...");
// 拼接当前月数为文件夹名
const date = new Date()
const month = date.getMonth() + 1
......@@ -1107,7 +1108,7 @@ const uploadChangeFile = async (file) => {
planTableList.value = res.data.table
confirmExcelUUID.value = res.data.uuid
dialogVisible.value = true
proxy.$modal.closeLoading();
return true
}
</script>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论