Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9f0f5b0e
authored
Dec 13, 2024
by
jason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【代码优化】 发起流程页面时,加 Loading 遮罩
parent
0ab7f234
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/views/bpm/processInstance/create/ProcessDefinitionDetail.vue
+5
-5
No files found.
src/views/bpm/processInstance/create/ProcessDefinitionDetail.vue
View file @
9f0f5b0e
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
<!-- 中间主要内容 tab 栏 -->
<!-- 中间主要内容 tab 栏 -->
<el-tabs
v-model=
"activeTab"
>
<el-tabs
v-model=
"activeTab"
>
<!-- 表单信息 -->
<!-- 表单信息 -->
<el-tab-pane
label=
"表单填写"
name=
"form"
>
<el-tab-pane
label=
"表单填写"
name=
"form"
>
<div
class=
"form-scroll-area"
>
<div
class=
"form-scroll-area"
v-loading=
"processInstanceStartLoading"
>
<el-scrollbar>
<el-scrollbar>
<el-row>
<el-row>
<el-col
:span=
"17"
>
<el-col
:span=
"17"
>
...
@@ -90,7 +90,7 @@ const props = defineProps<{
...
@@ -90,7 +90,7 @@ const props = defineProps<{
selectProcessDefinition
:
any
selectProcessDefinition
:
any
}
>
()
}
>
()
const
emit
=
defineEmits
([
'cancel'
])
const
emit
=
defineEmits
([
'cancel'
])
const
processInstanceStartLoading
=
ref
(
false
)
// 流程实例发起中
const
{
push
,
currentRoute
}
=
useRouter
()
// 路由
const
{
push
,
currentRoute
}
=
useRouter
()
// 路由
const
message
=
useMessage
()
// 消息弹窗
const
message
=
useMessage
()
// 消息弹窗
const
{
delView
}
=
useTagsViewStore
()
// 视图操作
const
{
delView
}
=
useTagsViewStore
()
// 视图操作
...
@@ -193,7 +193,7 @@ const submitForm = async () => {
...
@@ -193,7 +193,7 @@ const submitForm = async () => {
}
}
// 提交请求
// 提交请求
fApi
.
value
.
btn
.
loading
(
true
)
processInstanceStartLoading
.
value
=
true
try
{
try
{
await
ProcessInstanceApi
.
createProcessInstance
({
await
ProcessInstanceApi
.
createProcessInstance
({
processDefinitionId
:
props
.
selectProcessDefinition
.
id
,
processDefinitionId
:
props
.
selectProcessDefinition
.
id
,
...
@@ -208,7 +208,7 @@ const submitForm = async () => {
...
@@ -208,7 +208,7 @@ const submitForm = async () => {
name
:
'BpmProcessInstanceMy'
name
:
'BpmProcessInstanceMy'
})
})
}
finally
{
}
finally
{
fApi
.
value
.
btn
.
loading
(
false
)
processInstanceStartLoading
.
value
=
false
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment