fix -- 修复流程新增无法修改流程名称问题
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="process-design" :style="'display: flex; height:' + height">
|
<div class="process-design" :style="'display: flex; height:' + height">
|
||||||
<bpmn-process-designer
|
<bpmn-process-designer
|
||||||
:key="`designer-${reloadIndex}`"
|
|
||||||
v-model="xmlString"
|
v-model="xmlString"
|
||||||
v-bind="controlForm"
|
v-bind="controlForm"
|
||||||
keyboard
|
keyboard
|
||||||
@@ -17,7 +16,7 @@
|
|||||||
@event="handlerEvent"
|
@event="handlerEvent"
|
||||||
@save="onSaveProcess"
|
@save="onSaveProcess"
|
||||||
/>
|
/>
|
||||||
<bmpn-process-penal :key="`penal-${reloadIndex}`" :bpmn-modeler="modeler" :prefix="controlForm.prefix" class="process-panel" />
|
<bmpn-process-penal :bpmn-modeler="modeler" :prefix="controlForm.prefix" class="process-panel" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -52,11 +51,10 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
height: document.documentElement.clientHeight - 94.5 + "px;",
|
height: document.documentElement.clientHeight - 94.5 + "px;",
|
||||||
reloadIndex: 0,
|
|
||||||
xmlString: this.bpmnXml,
|
xmlString: this.bpmnXml,
|
||||||
modeler: null,
|
modeler: null,
|
||||||
controlForm: {
|
controlForm: {
|
||||||
processId: this.designerForm.processId || '',
|
processId: this.designerForm.processKey || '',
|
||||||
processName: this.designerForm.processName || '',
|
processName: this.designerForm.processName || '',
|
||||||
simulation: false,
|
simulation: false,
|
||||||
labelEditing: false,
|
labelEditing: false,
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
</el-header>
|
</el-header>
|
||||||
<el-main>
|
<el-main>
|
||||||
<div v-show="activeStep === 0">
|
<div v-if="activeStep === 0">
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-form size="small" label-width="80px">
|
<el-form size="small" label-width="80px">
|
||||||
<el-form-item label="流程标识">
|
<el-form-item label="流程标识">
|
||||||
@@ -48,16 +48,15 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-show="activeStep === 1">
|
<div v-if="activeStep === 1">
|
||||||
<process-designer
|
<process-designer
|
||||||
ref="modelDesigner"
|
ref="modelDesigner"
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:key="`designer-${loadIndex}`"
|
|
||||||
:bpmnXml="bpmnXml"
|
:bpmnXml="bpmnXml"
|
||||||
:designerForm="designerForm"
|
:designerForm="designerForm"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div v-show="activeStep === 2">
|
<div v-if="activeStep === 2">
|
||||||
<el-result :icon="result.icon" :title="result.title" :subTitle="result.describe">
|
<el-result :icon="result.icon" :title="result.title" :subTitle="result.describe">
|
||||||
<template slot="extra">
|
<template slot="extra">
|
||||||
<el-button type="primary" size="medium" @click="onClose()">关闭</el-button>
|
<el-button type="primary" size="medium" @click="onClose()">关闭</el-button>
|
||||||
|
|||||||
Reference in New Issue
Block a user