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
fea238ef
authored
Jan 18, 2025
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【代码优化】Bpm:编辑流程时,“谁可以发起”默认就是“全体”
parent
7349a0d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
src/views/bpm/model/form/BasicInfo.vue
+3
-2
src/views/bpm/model/form/index.vue
+4
-3
No files found.
src/views/bpm/model/form/BasicInfo.vue
View file @
fea238ef
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
<el-radio-group
v-model=
"modelData.visible"
>
<el-radio-group
v-model=
"modelData.visible"
>
<el-radio
<el-radio
v-for=
"dict in getBoolDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING)"
v-for=
"dict in getBoolDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING)"
:key=
"dict.value"
:key=
"dict.value
as string
"
:value=
"dict.value"
:value=
"dict.value"
>
>
{{
dict
.
label
}}
{{
dict
.
label
}}
...
@@ -132,10 +132,11 @@
...
@@ -132,10 +132,11 @@
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
{
DICT_TYPE
,
getBoolDictOptions
,
getIntDictOptions
}
from
'@/utils/dict'
import
{
DICT_TYPE
,
getBoolDictOptions
,
getIntDictOptions
}
from
'@/utils/dict'
import
{
UserVO
}
from
'@/api/system/user'
import
{
UserVO
}
from
'@/api/system/user'
import
{
CategoryVO
}
from
'@/api/bpm/category'
const
props
=
defineProps
({
const
props
=
defineProps
({
categoryList
:
{
categoryList
:
{
type
:
Array
,
type
:
Array
as
PropType
<
CategoryVO
[]
>
,
required
:
true
required
:
true
},
},
userList
:
{
userList
:
{
...
...
src/views/bpm/model/form/index.vue
View file @
fea238ef
...
@@ -78,7 +78,7 @@ import { useRoute, useRouter } from 'vue-router'
...
@@ -78,7 +78,7 @@ import { useRoute, useRouter } from 'vue-router'
import
{
useMessage
}
from
'@/hooks/web/useMessage'
import
{
useMessage
}
from
'@/hooks/web/useMessage'
import
*
as
ModelApi
from
'@/api/bpm/model'
import
*
as
ModelApi
from
'@/api/bpm/model'
import
*
as
FormApi
from
'@/api/bpm/form'
import
*
as
FormApi
from
'@/api/bpm/form'
import
{
CategoryApi
}
from
'@/api/bpm/category'
import
{
CategoryApi
,
CategoryVO
}
from
'@/api/bpm/category'
import
*
as
UserApi
from
'@/api/system/user'
import
*
as
UserApi
from
'@/api/system/user'
import
{
useUserStoreWithOut
}
from
'@/store/modules/user'
import
{
useUserStoreWithOut
}
from
'@/store/modules/user'
import
{
BpmModelFormType
,
BpmModelType
}
from
'@/utils/constants'
import
{
BpmModelFormType
,
BpmModelType
}
from
'@/utils/constants'
...
@@ -136,7 +136,6 @@ const formData: any = ref({
...
@@ -136,7 +136,6 @@ const formData: any = ref({
formCustomViewPath
:
''
,
formCustomViewPath
:
''
,
visible
:
true
,
visible
:
true
,
startUserType
:
undefined
,
startUserType
:
undefined
,
managerUserType
:
undefined
,
startUserIds
:
[],
startUserIds
:
[],
managerUserIds
:
[]
managerUserIds
:
[]
})
})
...
@@ -149,7 +148,7 @@ provide('modelData', formData)
...
@@ -149,7 +148,7 @@ provide('modelData', formData)
// 数据列表
// 数据列表
const
formList
=
ref
([])
const
formList
=
ref
([])
const
categoryList
=
ref
([])
const
categoryList
=
ref
<
CategoryVO
[]
>
([])
const
userList
=
ref
<
UserApi
.
UserVO
[]
>
([])
const
userList
=
ref
<
UserApi
.
UserVO
[]
>
([])
/** 初始化数据 */
/** 初始化数据 */
...
@@ -158,6 +157,7 @@ const initData = async () => {
...
@@ -158,6 +157,7 @@ const initData = async () => {
if
(
modelId
)
{
if
(
modelId
)
{
// 修改场景
// 修改场景
formData
.
value
=
await
ModelApi
.
getModel
(
modelId
)
formData
.
value
=
await
ModelApi
.
getModel
(
modelId
)
formData
.
value
.
startUserType
=
formData
.
value
.
startUserIds
?.
length
>
0
?
1
:
0
// 复制场景
// 复制场景
if
(
route
.
params
.
type
===
'copy'
)
{
if
(
route
.
params
.
type
===
'copy'
)
{
delete
formData
.
value
.
id
delete
formData
.
value
.
id
...
@@ -166,6 +166,7 @@ const initData = async () => {
...
@@ -166,6 +166,7 @@ const initData = async () => {
}
}
}
else
{
}
else
{
// 新增场景
// 新增场景
formData
.
value
.
startUserType
=
0
// 全体
formData
.
value
.
managerUserIds
.
push
(
userStore
.
getUser
.
id
)
formData
.
value
.
managerUserIds
.
push
(
userStore
.
getUser
.
id
)
}
}
...
...
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