|
@@ -68,13 +68,11 @@ const resetBaseInfo = () => {
|
|
|
console.log(bpmnElement.value, 'bpmnElement')
|
|
|
|
|
|
bpmnElement.value = bpmnInstances()?.bpmnElement
|
|
|
- console.log(bpmnElement.value, 'resetBaseInfo11111111111')
|
|
|
elementBaseInfo.value = bpmnElement.value.businessObject
|
|
|
needProps.value['type'] = bpmnElement.value.businessObject.$type
|
|
|
// elementBaseInfo.value['typess'] = bpmnElement.value.businessObject.$type
|
|
|
|
|
|
// elementBaseInfo.value = JSON.parse(JSON.stringify(bpmnElement.value.businessObject))
|
|
|
- console.log(elementBaseInfo.value, 'elementBaseInfo22222222222')
|
|
|
}
|
|
|
const handleKeyUpdate = (value) => {
|
|
|
// 校验 value 的值,只有 XML NCName 通过的情况下,才进行赋值。否则,会导致流程图报错,无法绘制的问题
|
|
@@ -121,7 +119,6 @@ const updateBaseInfo = (key) => {
|
|
|
// id: elementBaseInfo.value[key]
|
|
|
// // di: { id: `${elementBaseInfo.value[key]}_di` }
|
|
|
// }
|
|
|
- console.log(elementBaseInfo, 'elementBaseInfo11111111111')
|
|
|
needProps.value = { ...elementBaseInfo.value, ...needProps.value }
|
|
|
|
|
|
if (key === 'id') {
|
|
@@ -144,14 +141,12 @@ onMounted(() => {
|
|
|
console.log(props.model, 'props.model')
|
|
|
handleKeyUpdate(props.model.key)
|
|
|
handleNameUpdate(props.model.name)
|
|
|
- console.log(props, 'propsssssssssssssssssssss')
|
|
|
}, 1000)
|
|
|
})
|
|
|
|
|
|
watch(
|
|
|
() => props.businessObject,
|
|
|
(val) => {
|
|
|
- console.log(val, 'val11111111111111111111')
|
|
|
if (val) {
|
|
|
// nextTick(() => {
|
|
|
resetBaseInfo()
|