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

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

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