【代码优化】 发起流程页面时,加 Loading 遮罩

pull/619/head
jason 2024-12-13 22:37:42 +08:00
parent 0ab7f2342c
commit 9f0f5b0e6c
1 changed files with 5 additions and 5 deletions

View File

@ -8,8 +8,8 @@
<!-- 中间主要内容 tab -->
<el-tabs v-model="activeTab">
<!-- 表单信息 -->
<el-tab-pane label="表单填写" name="form">
<div class="form-scroll-area">
<el-tab-pane label="表单填写" name="form" >
<div class="form-scroll-area" v-loading="processInstanceStartLoading">
<el-scrollbar>
<el-row>
<el-col :span="17">
@ -90,7 +90,7 @@ const props = defineProps<{
selectProcessDefinition: any
}>()
const emit = defineEmits(['cancel'])
const processInstanceStartLoading = ref(false) //
const { push, currentRoute } = useRouter() //
const message = useMessage() //
const { delView } = useTagsViewStore() //
@ -193,7 +193,7 @@ const submitForm = async () => {
}
//
fApi.value.btn.loading(true)
processInstanceStartLoading.value = true
try {
await ProcessInstanceApi.createProcessInstance({
processDefinitionId: props.selectProcessDefinition.id,
@ -208,7 +208,7 @@ const submitForm = async () => {
name: 'BpmProcessInstanceMy'
})
} finally {
fApi.value.btn.loading(false)
processInstanceStartLoading.value = false
}
}