fix 执行监听器
This commit is contained in:
@ -10,7 +10,7 @@
|
|||||||
:formatter="(row) => listenerTypeObject[row.listenerType]"
|
:formatter="(row) => listenerTypeObject[row.listenerType]"
|
||||||
/>
|
/>
|
||||||
<el-table-column label="操作" width="90px">
|
<el-table-column label="操作" width="90px">
|
||||||
<template slot-scope="{ row, $index }">
|
<template #default="{ row, $index }">
|
||||||
<el-button size="small" link @click="openListenerForm(row, $index)"
|
<el-button size="small" link @click="openListenerForm(row, $index)"
|
||||||
>编辑</el-button
|
>编辑</el-button
|
||||||
>
|
>
|
||||||
@ -18,7 +18,7 @@
|
|||||||
<el-button
|
<el-button
|
||||||
size="small"
|
size="small"
|
||||||
link
|
link
|
||||||
style="color: #ff4d4f"
|
type="danger"
|
||||||
@click="removeListener(row, $index)"
|
@click="removeListener(row, $index)"
|
||||||
>移除</el-button
|
>移除</el-button
|
||||||
>
|
>
|
||||||
@ -159,9 +159,9 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
<el-divider />
|
<el-divider />
|
||||||
<p class="listener-filed__title">
|
<p class="listener-filed__title">
|
||||||
<div class="span"
|
<span class="span">
|
||||||
><el-icon><Menu /></el-icon>注入字段:</div
|
<el-icon> <Menu /> </el-icon>注入字段:
|
||||||
>
|
</span>
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
size="small"
|
||||||
type="primary"
|
type="primary"
|
||||||
@ -192,7 +192,7 @@
|
|||||||
:formatter="(row) => row.string || row.expression"
|
:formatter="(row) => row.string || row.expression"
|
||||||
/>
|
/>
|
||||||
<el-table-column label="操作" width="100px">
|
<el-table-column label="操作" width="100px">
|
||||||
<template slot-scope="{ row, $index }">
|
<template #default="{ row, $index }">
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
size="small"
|
||||||
link
|
link
|
||||||
@ -202,8 +202,8 @@
|
|||||||
<el-divider direction="vertical" />
|
<el-divider direction="vertical" />
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
size="small"
|
||||||
|
type="danger"
|
||||||
link
|
link
|
||||||
style="color: #ff4d4f"
|
|
||||||
@click="removeListenerField(row, $index)"
|
@click="removeListenerField(row, $index)"
|
||||||
>移除</el-button
|
>移除</el-button
|
||||||
>
|
>
|
||||||
@ -335,8 +335,9 @@ function resetListenersList() {
|
|||||||
otherExtensionList = [];
|
otherExtensionList = [];
|
||||||
bpmnElementListeners =
|
bpmnElementListeners =
|
||||||
bpmnElement.businessObject?.extensionElements?.values?.filter(
|
bpmnElement.businessObject?.extensionElements?.values?.filter(
|
||||||
(ex) => ex.$type === `${prefix.value}:ExecutionListener`
|
(ex) => ex.$type === `${prefix}:ExecutionListener`
|
||||||
) ?? [];
|
) ?? [];
|
||||||
|
debugger;
|
||||||
elementListenersList.value = bpmnElementListeners.map((listener) =>
|
elementListenersList.value = bpmnElementListeners.map((listener) =>
|
||||||
initListenerType(listener)
|
initListenerType(listener)
|
||||||
);
|
);
|
||||||
@ -431,7 +432,7 @@ async function saveListenerConfig() {
|
|||||||
const listenerObject = createListenerObject(
|
const listenerObject = createListenerObject(
|
||||||
listenerForm.value,
|
listenerForm.value,
|
||||||
false,
|
false,
|
||||||
prefix.value
|
prefix
|
||||||
);
|
);
|
||||||
if (editingListenerIndex.value === -1) {
|
if (editingListenerIndex.value === -1) {
|
||||||
bpmnElementListeners.push(listenerObject);
|
bpmnElementListeners.push(listenerObject);
|
||||||
@ -447,7 +448,7 @@ async function saveListenerConfig() {
|
|||||||
// 保存其他配置
|
// 保存其他配置
|
||||||
otherExtensionList =
|
otherExtensionList =
|
||||||
bpmnElement.businessObject?.extensionElements?.values?.filter(
|
bpmnElement.businessObject?.extensionElements?.values?.filter(
|
||||||
(ex) => ex.$type !== `${prefix.value}:ExecutionListener`
|
(ex) => ex.$type !== `${prefix}:ExecutionListener`
|
||||||
) ?? [];
|
) ?? [];
|
||||||
updateElementExtensions(
|
updateElementExtensions(
|
||||||
bpmnElement,
|
bpmnElement,
|
||||||
|
@ -401,7 +401,6 @@ function resetListenersList() {
|
|||||||
bpmnElement.businessObject?.extensionElements?.values?.filter(
|
bpmnElement.businessObject?.extensionElements?.values?.filter(
|
||||||
(ex) => ex.$type === `${prefix}:TaskListener`
|
(ex) => ex.$type === `${prefix}:TaskListener`
|
||||||
) ?? [];
|
) ?? [];
|
||||||
// debugger;
|
|
||||||
elementListenersList.value = bpmnElementListeners.map((listener) =>
|
elementListenersList.value = bpmnElementListeners.map((listener) =>
|
||||||
initListenerType(listener)
|
initListenerType(listener)
|
||||||
);
|
);
|
||||||
|
@ -46,11 +46,11 @@ watch(
|
|||||||
);
|
);
|
||||||
|
|
||||||
function updateDocumentation() {
|
function updateDocumentation() {
|
||||||
(bpmnElement && bpmnElement.id === this.id) ||
|
(bpmnElement && bpmnElement.id === id.value) ||
|
||||||
(bpmnElement = window.bpmnInstances.elementRegistry.get(this.id));
|
(bpmnElement = window.bpmnInstances.elementRegistry.get(id.value));
|
||||||
const documentation = window.bpmnInstances.bpmnFactory.create(
|
const documentation = window.bpmnInstances.bpmnFactory.create(
|
||||||
"bpmn:Documentation",
|
"bpmn:Documentation",
|
||||||
{ text: this.documentation }
|
{ text: documentation.value }
|
||||||
);
|
);
|
||||||
window.bpmnInstances.modeling.updateProperties(bpmnElement, {
|
window.bpmnInstances.modeling.updateProperties(bpmnElement, {
|
||||||
documentation: [documentation],
|
documentation: [documentation],
|
||||||
|
@ -77,13 +77,25 @@
|
|||||||
<h4><b>多实例审批方式</b></h4>
|
<h4><b>多实例审批方式</b></h4>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-radio-group v-model="multiLoopType" @change="changeMultiLoopType">
|
<el-radio-group v-model="multiLoopType" @change="changeMultiLoopType">
|
||||||
<el-row><el-radio label="Null">无</el-radio></el-row>
|
|
||||||
<el-row
|
<el-row
|
||||||
|
:style="{
|
||||||
|
width: '100%',
|
||||||
|
}"
|
||||||
|
>
|
||||||
|
<el-radio label="Null">无</el-radio>
|
||||||
|
</el-row>
|
||||||
|
<el-row
|
||||||
|
:style="{
|
||||||
|
width: '100%',
|
||||||
|
}"
|
||||||
><el-radio label="SequentialMultiInstance"
|
><el-radio label="SequentialMultiInstance"
|
||||||
>会签(需所有审批人同意)</el-radio
|
>会签(需所有审批人同意)</el-radio
|
||||||
></el-row
|
></el-row
|
||||||
>
|
>
|
||||||
<el-row
|
<el-row
|
||||||
|
:style="{
|
||||||
|
width: '100%',
|
||||||
|
}"
|
||||||
><el-radio label="ParallelMultiInstance"
|
><el-radio label="ParallelMultiInstance"
|
||||||
>或签(一名审批人同意即可)</el-radio
|
>或签(一名审批人同意即可)</el-radio
|
||||||
></el-row
|
></el-row
|
||||||
|
Reference in New Issue
Block a user