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
138d535e
authored
Nov 20, 2024
by
GoldenZqqq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 发起流程页面-进入页面时左侧第一个分类没有active样式bug修复
parent
7b8e4ea2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
src/views/bpm/processInstance/create/index.vue
+5
-6
No files found.
src/views/bpm/processInstance/create/index.vue
View file @
138d535e
...
@@ -137,12 +137,6 @@ const getCategoryList = async () => {
...
@@ -137,12 +137,6 @@ const getCategoryList = async () => {
try
{
try
{
// 流程分类
// 流程分类
categoryList
.
value
=
await
CategoryApi
.
getCategorySimpleList
()
categoryList
.
value
=
await
CategoryApi
.
getCategorySimpleList
()
// 等待流程定义数据加载完成后再设置默认选中分类
await
nextTick
()
// 选中第一个有流程的分类
if
(
availableCategories
.
value
.
length
>
0
)
{
categoryActive
.
value
=
availableCategories
.
value
[
0
]
}
}
finally
{
}
finally
{
}
}
}
}
...
@@ -156,6 +150,11 @@ const getProcessDefinitionList = async () => {
...
@@ -156,6 +150,11 @@ const getProcessDefinitionList = async () => {
})
})
// 初始化过滤列表为全部流程定义
// 初始化过滤列表为全部流程定义
filteredProcessDefinitionList
.
value
=
processDefinitionList
.
value
filteredProcessDefinitionList
.
value
=
processDefinitionList
.
value
// 在获取完所有数据后,设置第一个有效分类为激活状态
if
(
availableCategories
.
value
.
length
>
0
&&
!
categoryActive
.
value
?.
code
)
{
categoryActive
.
value
=
availableCategories
.
value
[
0
]
}
}
finally
{
}
finally
{
}
}
}
}
...
...
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