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
Unverified
Commit
22e97ef6
authored
Mar 15, 2025
by
芋道源码
Committed by
Gitee
Mar 15, 2025
Browse files
Options
Browse Files
Download
Plain Diff
!733 fix: 代码评审修改
Merge pull request !733 from Lesan/feature/bpm-流程前后置通知
parents
b452b08a
5c6cd4dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
src/views/bpm/model/form/ExtraSettings.vue
+18
-18
No files found.
src/views/bpm/model/form/ExtraSettings.vue
View file @
22e97ef6
...
@@ -147,16 +147,16 @@
...
@@ -147,16 +147,16 @@
<div
class=
"flex flex-col w-100%"
>
<div
class=
"flex flex-col w-100%"
>
<div
class=
"flex"
>
<div
class=
"flex"
>
<el-switch
<el-switch
v-model=
"pr
eProcessNotify
Enable"
v-model=
"pr
ocessBeforeTrigger
Enable"
@
change=
"handlePreProcessNotifyEnableChange"
@
change=
"handlePreProcessNotifyEnableChange"
/>
/>
<div
class=
"ml-80px"
>
流程启动后通知
</div>
<div
class=
"ml-80px"
>
流程启动后通知
</div>
</div>
</div>
<HttpRequestSetting
<HttpRequestSetting
v-if=
"pr
eProcessNotify
Enable"
v-if=
"pr
ocessBeforeTrigger
Enable"
v-model:setting=
"modelData.pr
eProcessNotify
Setting"
v-model:setting=
"modelData.pr
ocessBeforeTrigger
Setting"
:responseEnable=
"true"
:responseEnable=
"true"
:formItemPrefix=
"'pr
eProcessNotify
Setting'"
:formItemPrefix=
"'pr
ocessBeforeTrigger
Setting'"
/>
/>
</div>
</div>
</el-form-item>
</el-form-item>
...
@@ -167,16 +167,16 @@
...
@@ -167,16 +167,16 @@
<div
class=
"flex flex-col w-100%"
>
<div
class=
"flex flex-col w-100%"
>
<div
class=
"flex"
>
<div
class=
"flex"
>
<el-switch
<el-switch
v-model=
"p
ostProcessNotify
Enable"
v-model=
"p
rocessAfterTrigger
Enable"
@
change=
"handlePostProcessNotifyEnableChange"
@
change=
"handlePostProcessNotifyEnableChange"
/>
/>
<div
class=
"ml-80px"
>
流程启动后通知
</div>
<div
class=
"ml-80px"
>
流程启动后通知
</div>
</div>
</div>
<HttpRequestSetting
<HttpRequestSetting
v-if=
"p
ostProcessNotify
Enable"
v-if=
"p
rocessAfterTrigger
Enable"
v-model:setting=
"modelData.p
ostProcessNotify
Setting"
v-model:setting=
"modelData.p
rocessAfterTrigger
Setting"
:responseEnable=
"true"
:responseEnable=
"true"
:formItemPrefix=
"'p
ostProcessNotify
Setting'"
:formItemPrefix=
"'p
rocessAfterTrigger
Setting'"
/>
/>
</div>
</div>
</el-form-item>
</el-form-item>
...
@@ -247,32 +247,32 @@ const numberExample = computed(() => {
...
@@ -247,32 +247,32 @@ const numberExample = computed(() => {
})
})
/** 是否开启流程前置通知 */
/** 是否开启流程前置通知 */
const
pr
eProcessNotify
Enable
=
ref
(
false
)
const
pr
ocessBeforeTrigger
Enable
=
ref
(
false
)
const
handlePreProcessNotifyEnableChange
=
(
val
:
boolean
|
string
|
number
)
=>
{
const
handlePreProcessNotifyEnableChange
=
(
val
:
boolean
|
string
|
number
)
=>
{
if
(
val
)
{
if
(
val
)
{
modelData
.
value
.
pr
eProcessNotify
Setting
=
{
modelData
.
value
.
pr
ocessBeforeTrigger
Setting
=
{
url
:
''
,
url
:
''
,
header
:
[],
header
:
[],
body
:
[],
body
:
[],
response
:
[]
response
:
[]
}
}
}
else
{
}
else
{
modelData
.
value
.
pr
eProcessNotify
Setting
=
null
modelData
.
value
.
pr
ocessBeforeTrigger
Setting
=
null
}
}
}
}
/** 是否开启流程后置通知 */
/** 是否开启流程后置通知 */
const
p
ostProcessNotify
Enable
=
ref
(
false
)
const
p
rocessAfterTrigger
Enable
=
ref
(
false
)
const
handlePostProcessNotifyEnableChange
=
(
val
:
boolean
|
string
|
number
)
=>
{
const
handlePostProcessNotifyEnableChange
=
(
val
:
boolean
|
string
|
number
)
=>
{
if
(
val
)
{
if
(
val
)
{
modelData
.
value
.
p
ostProcessNotify
Setting
=
{
modelData
.
value
.
p
rocessAfterTrigger
Setting
=
{
url
:
''
,
url
:
''
,
header
:
[],
header
:
[],
body
:
[],
body
:
[],
response
:
[]
response
:
[]
}
}
}
else
{
}
else
{
modelData
.
value
.
p
ostProcessNotify
Setting
=
null
modelData
.
value
.
p
rocessAfterTrigger
Setting
=
null
}
}
}
}
...
@@ -335,11 +335,11 @@ const initData = () => {
...
@@ -335,11 +335,11 @@ const initData = () => {
summary
:
[]
summary
:
[]
}
}
}
}
if
(
modelData
.
value
.
pr
eProcessNotify
Setting
)
{
if
(
modelData
.
value
.
pr
ocessBeforeTrigger
Setting
)
{
pr
eProcessNotify
Enable
.
value
=
true
pr
ocessBeforeTrigger
Enable
.
value
=
true
}
}
if
(
modelData
.
value
.
p
ostProcessNotify
Setting
)
{
if
(
modelData
.
value
.
p
rocessAfterTrigger
Setting
)
{
p
ostProcessNotify
Enable
.
value
=
true
p
rocessAfterTrigger
Enable
.
value
=
true
}
}
}
}
defineExpose
({
initData
})
defineExpose
({
initData
})
...
...
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