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
5eb41543
authored
Nov 12, 2024
by
GoldenZqqq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 解决发起流程页面左侧分类与右侧流程分组顺序不统一问题
parent
52a8c46a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
src/views/bpm/processInstance/create/index.vue
+12
-2
No files found.
src/views/bpm/processInstance/create/index.vue
View file @
5eb41543
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
:ref=
"`category-${categoryCode}`"
:ref=
"`category-${categoryCode}`"
>
>
<h3
class=
"text-18px font-bold mb-10px mt-5px"
>
<h3
class=
"text-18px font-bold mb-10px mt-5px"
>
{{ getCategoryName(categoryCode) }}
{{ getCategoryName(categoryCode
as any
) }}
</h3>
</h3>
<div
class=
"grid grid-cols-3 gap3"
>
<div
class=
"grid grid-cols-3 gap3"
>
<el-tooltip
<el-tooltip
...
@@ -175,7 +175,17 @@ const handleQuery = () => {
...
@@ -175,7 +175,17 @@ const handleQuery = () => {
/** 流程定义的分组 */
/** 流程定义的分组 */
const
processDefinitionGroup
:
any
=
computed
(()
=>
{
const
processDefinitionGroup
:
any
=
computed
(()
=>
{
if
(
!
processDefinitionList
.
value
?.
length
)
return
{}
if
(
!
processDefinitionList
.
value
?.
length
)
return
{}
return
groupBy
(
filteredProcessDefinitionList
.
value
,
'category'
)
const
grouped
=
groupBy
(
filteredProcessDefinitionList
.
value
,
'category'
)
const
orderedGroup
=
{}
// 按照 categoryList 的顺序重新组织数据
categoryList
.
value
.
forEach
((
category
:
any
)
=>
{
if
(
grouped
[
category
.
code
])
{
orderedGroup
[
category
.
code
]
=
grouped
[
category
.
code
]
}
})
return
orderedGroup
})
})
/** 左侧分类切换 */
/** 左侧分类切换 */
...
...
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