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
730e287d
authored
Apr 19, 2023
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化“流程表单:使用异步组件的方式动态加载业务表单指定的查看表单的组件”的命名
parent
d87c02b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/views/bpm/processInstance/detail/index.vue
+6
-3
No files found.
src/views/bpm/processInstance/detail/index.vue
View file @
730e287d
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
</el-col>
</el-col>
<!-- 情况二:业务表单 -->
<!-- 情况二:业务表单 -->
<div
v-if=
"processInstance?.processDefinition?.formType === 20"
>
<div
v-if=
"processInstance?.processDefinition?.formType === 20"
>
<
auto
Component
:id=
"processInstance.businessKey"
/>
<
BusinessForm
Component
:id=
"processInstance.businessKey"
/>
</div>
</div>
</el-card>
</el-card>
...
@@ -183,8 +183,9 @@ const getDetail = () => {
...
@@ -183,8 +183,9 @@ const getDetail = () => {
// 2. 获得流程任务列表(审批记录)
// 2. 获得流程任务列表(审批记录)
getTaskList
()
getTaskList
()
}
}
const
autoComponent
=
ref
(
null
)
// 异步组件
/** 加载流程实例 */
/** 加载流程实例 */
const
BusinessFormComponent
=
ref
(
null
)
// 异步组件
const
getProcessInstance
=
async
()
=>
{
const
getProcessInstance
=
async
()
=>
{
try
{
try
{
processInstanceLoading
.
value
=
true
processInstanceLoading
.
value
=
true
...
@@ -194,7 +195,7 @@ const getProcessInstance = async () => {
...
@@ -194,7 +195,7 @@ const getProcessInstance = async () => {
return
return
}
}
processInstance
.
value
=
data
processInstance
.
value
=
data
autoComponent
.
value
=
registerComponent
(
data
.
processDefinition
.
formCustomViewPath
)
// 设置表单信息
// 设置表单信息
const
processDefinition
=
data
.
processDefinition
const
processDefinition
=
data
.
processDefinition
if
(
processDefinition
.
formType
===
10
)
{
if
(
processDefinition
.
formType
===
10
)
{
...
@@ -209,6 +210,8 @@ const getProcessInstance = async () => {
...
@@ -209,6 +210,8 @@ const getProcessInstance = async () => {
fApi
.
value
?.
fapi
?.
resetBtn
.
show
(
false
)
fApi
.
value
?.
fapi
?.
resetBtn
.
show
(
false
)
fApi
.
value
?.
fapi
?.
disabled
(
true
)
fApi
.
value
?.
fapi
?.
disabled
(
true
)
})
})
}
else
{
BusinessFormComponent
.
value
=
registerComponent
(
data
.
processDefinition
.
formCustomViewPath
)
}
}
// 加载流程图
// 加载流程图
...
...
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