mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 07:41:53 +08:00
部分绑定值问题
This commit is contained in:
parent
0d0554e76c
commit
548f8bc32c
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="panel-tab__content">
|
<div class="panel-tab__content">
|
||||||
<el-form :model="flowConditionForm" label-width="90px" size="mini">
|
<el-form :model="flowConditionForm" label-width="90px" size="small">
|
||||||
<el-form-item label="流转类型">
|
<el-form-item label="流转类型">
|
||||||
<el-select v-model="flowConditionForm.type" @change="updateFlowType">
|
<el-select v-model="flowConditionForm.type" @change="updateFlowType">
|
||||||
<el-option label="普通流转路径" value="normal" />
|
<el-option label="普通流转路径" value="normal" />
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="panel-tab__content">
|
<div class="panel-tab__content">
|
||||||
<el-table :data="elementListenersList" size="mini" border>
|
<el-table :data="elementListenersList" size="small" border>
|
||||||
<el-table-column label="序号" width="50px" type="index" />
|
<el-table-column label="序号" width="50px" type="index" />
|
||||||
<el-table-column label="事件类型" min-width="100px" prop="event" />
|
<el-table-column label="事件类型" min-width="100px" prop="event" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@ -9,7 +9,7 @@
|
|||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
:formatter="(row) => listenerTypeObject[row.listenerType]"
|
:formatter="(row) => listenerTypeObject[row.listenerType]"
|
||||||
/>
|
/>
|
||||||
<el-table-column label="操作" width="90px">
|
<el-table-column label="操作" width="130px">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button size="small" @click="openListenerForm(scope.row, scope.$index)"
|
<el-button size="small" @click="openListenerForm(scope.row, scope.$index)"
|
||||||
>编辑</el-button
|
>编辑</el-button
|
||||||
@ -141,7 +141,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<el-table
|
<el-table
|
||||||
:data="fieldsListOfListener"
|
:data="fieldsListOfListener"
|
||||||
size="mini"
|
size="small"
|
||||||
max-height="240"
|
max-height="240"
|
||||||
border
|
border
|
||||||
fit
|
fit
|
||||||
@ -161,7 +161,7 @@
|
|||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
:formatter="(row) => row.string || row.expression"
|
:formatter="(row) => row.string || row.expression"
|
||||||
/>
|
/>
|
||||||
<el-table-column label="操作" width="100px">
|
<el-table-column label="操作" width="130px">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button
|
<el-button
|
||||||
size="small"
|
size="small"
|
||||||
@ -394,8 +394,10 @@ const saveListenerConfig = async () => {
|
|||||||
elementListenersList.value.splice(editingListenerIndex.value, 1, listenerForm.value)
|
elementListenersList.value.splice(editingListenerIndex.value, 1, listenerForm.value)
|
||||||
}
|
}
|
||||||
// 保存其他配置
|
// 保存其他配置
|
||||||
|
console.log(bpmnElement.value, 'bpmnElement.value')
|
||||||
otherExtensionList.value =
|
otherExtensionList.value =
|
||||||
bpmnElement.value.businessObject?.extensionElements?.values?.filter(
|
bpmnElement.value.businessObject?.extensionElements?.filter(
|
||||||
|
// bpmnElement.value.businessObject?.extensionElements?.values?.filter(
|
||||||
(ex) => ex.$type !== `${prefix}:ExecutionListener`
|
(ex) => ex.$type !== `${prefix}:ExecutionListener`
|
||||||
) ?? []
|
) ?? []
|
||||||
console.log(bpmnElement.value, 'bpmnElement.value')
|
console.log(bpmnElement.value, 'bpmnElement.value')
|
||||||
@ -404,10 +406,20 @@ const saveListenerConfig = async () => {
|
|||||||
otherExtensionList.value.concat(bpmnElementListeners.value),
|
otherExtensionList.value.concat(bpmnElementListeners.value),
|
||||||
'otherExtensionList.value.concat(bpmnElementListeners.value).value'
|
'otherExtensionList.value.concat(bpmnElementListeners.value).value'
|
||||||
)
|
)
|
||||||
updateElementExtensions(
|
// updateElementExtensions(
|
||||||
toRaw(bpmnElement.value),
|
// bpmnElement.value,
|
||||||
toRaw(otherExtensionList.value.concat(bpmnElementListeners.value))
|
// // toRaw(bpmnElement.value),
|
||||||
)
|
// otherExtensionList.value.concat(bpmnElementListeners.value)
|
||||||
|
// // toRaw(otherExtensionList.value.concat(bpmnElementListeners.value))
|
||||||
|
// )
|
||||||
|
const extensions = window.bpmnInstances.moddle.create('bpmn:ExtensionElements', {
|
||||||
|
values: otherExtensionList.value.concat(bpmnElementListeners.value)
|
||||||
|
})
|
||||||
|
console.log(extensions, 'extensionsextensionsextensions')
|
||||||
|
console.log(extensions.values, 'extensionsextensionsextensions')
|
||||||
|
window.bpmnInstances.modeling.updateProperties(toRaw(bpmnElement.value), {
|
||||||
|
extensionElements: extensions.values
|
||||||
|
})
|
||||||
// 4. 隐藏侧边栏
|
// 4. 隐藏侧边栏
|
||||||
listenerFormModelVisible.value = false
|
listenerFormModelVisible.value = false
|
||||||
listenerForm.value = {}
|
listenerForm.value = {}
|
||||||
|
@ -338,8 +338,8 @@ const resetListenersList = () => {
|
|||||||
bpmnElement.value = window.bpmnInstances.bpmnElement
|
bpmnElement.value = window.bpmnInstances.bpmnElement
|
||||||
otherExtensionList.value = []
|
otherExtensionList.value = []
|
||||||
bpmnElementListeners.value =
|
bpmnElementListeners.value =
|
||||||
// bpmnElement.value.businessObject?.extensionElements?.filter(
|
|
||||||
bpmnElement.value.businessObject?.extensionElements?.filter(
|
bpmnElement.value.businessObject?.extensionElements?.filter(
|
||||||
|
// bpmnElement.value.businessObject?.extensionElements?.values.filter(
|
||||||
(ex) => ex.$type === `${prefix}:TaskListener`
|
(ex) => ex.$type === `${prefix}:TaskListener`
|
||||||
) ?? []
|
) ?? []
|
||||||
elementListenersList.value = bpmnElementListeners.value.map((listener) =>
|
elementListenersList.value = bpmnElementListeners.value.map((listener) =>
|
||||||
|
@ -25,22 +25,8 @@ const props = defineProps({
|
|||||||
const documentation = ref('')
|
const documentation = ref('')
|
||||||
const bpmnElement = ref()
|
const bpmnElement = ref()
|
||||||
const updateDocumentation = () => {
|
const updateDocumentation = () => {
|
||||||
console.log(props, 'props')
|
;(bpmnElement.value && bpmnElement.value.id === props.id) ||
|
||||||
console.log(window, 'window')
|
(bpmnElement.value = (window as any).bpmnInstances.elementRegistry.get(props.id))
|
||||||
console.log(
|
|
||||||
window.bpmnInstances.elementRegistry.get(props.id),
|
|
||||||
'window.bpmnInstances.elementRegistry.get(props.id)'
|
|
||||||
)
|
|
||||||
console.log(bpmnElement.value, 'bpmnElement.value ')
|
|
||||||
if (bpmnElement.value && bpmnElement.value.id === props.id) {
|
|
||||||
bpmnElement.value = window?.bpmnInstances.elementRegistry.get(props.id)
|
|
||||||
}
|
|
||||||
console.log(
|
|
||||||
bpmnElement.value,
|
|
||||||
'bpmnElement.value bpmnElement.value bpmnElement.value bpmnElement.value bpmnElement.value bpmnElement.value '
|
|
||||||
)
|
|
||||||
// (bpmnElement.value && bpmnElement.value.id === props.id) ||
|
|
||||||
// (bpmnElement.value = window.bpmnInstances.elementRegistry.get(props.id))
|
|
||||||
const documentations = window.bpmnInstances.bpmnFactory.create('bpmn:Documentation', {
|
const documentations = window.bpmnInstances.bpmnFactory.create('bpmn:Documentation', {
|
||||||
text: documentation.value
|
text: documentation.value
|
||||||
})
|
})
|
||||||
|
@ -86,8 +86,8 @@ const resetAttributesList = () => {
|
|||||||
bpmnElement.value = window.bpmnInstances.bpmnElement
|
bpmnElement.value = window.bpmnInstances.bpmnElement
|
||||||
otherExtensionList.value = [] // 其他扩展配置
|
otherExtensionList.value = [] // 其他扩展配置
|
||||||
bpmnElementProperties.value =
|
bpmnElementProperties.value =
|
||||||
// bpmnElement.value.businessObject?.extensionElements?.filter((ex) => {
|
bpmnElement.value.businessObject?.extensionElements?.filter((ex) => {
|
||||||
bpmnElement.value.businessObject?.extensionElements?.values.filter((ex) => {
|
// bpmnElement.value.businessObject?.extensionElements?.values.filter((ex) => {
|
||||||
if (ex.$type !== `${prefix}:Properties`) {
|
if (ex.$type !== `${prefix}:Properties`) {
|
||||||
otherExtensionList.value.push(ex)
|
otherExtensionList.value.push(ex)
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="panel-tab__content">
|
<div class="panel-tab__content">
|
||||||
<el-form size="mini" label-width="90px">
|
<el-form size="small" label-width="90px">
|
||||||
<el-form-item label="异步延续">
|
<el-form-item label="异步延续">
|
||||||
<el-checkbox
|
<el-checkbox
|
||||||
v-model="taskConfigForm.asyncBefore"
|
v-model="taskConfigForm.asyncBefore"
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
append-to-body
|
append-to-body
|
||||||
destroy-on-close
|
destroy-on-close
|
||||||
>
|
>
|
||||||
<el-form :model="newMessageForm" size="mini" label-width="90px">
|
<el-form :model="newMessageForm" size="small" label-width="90px">
|
||||||
<el-form-item label="消息ID">
|
<el-form-item label="消息ID">
|
||||||
<el-input v-model="newMessageForm.id" clearable />
|
<el-input v-model="newMessageForm.id" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -43,7 +43,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<el-button size="mini" type="primary" @click="createNewMessage">确 认</el-button>
|
<el-button size="small" type="primary" @click="createNewMessage">确 认</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user