mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 09:11:52 +08:00
修改 bpmn 的 ElementBaseInfo.vue ,解决基础元素的表单问题
This commit is contained in:
parent
5415a85cc0
commit
14a7d637b3
@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="panel-tab__content">
|
<div class="panel-tab__content">
|
||||||
<el-form size="mini" label-width="90px" :model="model" :rules="rules" @submit.native.prevent>
|
<el-form size="mini" label-width="90px" :model="model" :rules="rules" @submit.native.prevent>
|
||||||
|
<div v-if="elementBaseInfo.$type === 'bpmn:Process'"> <!-- 如果是 Process 信息的时候,使用自定义表单 -->
|
||||||
<el-form-item label="流程标识" prop="key">
|
<el-form-item label="流程标识" prop="key">
|
||||||
<el-input v-model="model.key" placeholder="请输入流标标识"
|
<el-input v-model="model.key" placeholder="请输入流标标识"
|
||||||
:disabled="model.id !== undefined && model.id.length > 0" @change="handleKeyUpdate" />
|
:disabled="model.id !== undefined && model.id.length > 0" @change="handleKeyUpdate" />
|
||||||
@ -21,6 +22,15 @@
|
|||||||
<el-form-item label="流程描述" prop="description">
|
<el-form-item label="流程描述" prop="description">
|
||||||
<el-input type="textarea" v-model="model.description" clearable @change="handleDescriptionUpdate" />
|
<el-input type="textarea" v-model="model.description" clearable @change="handleDescriptionUpdate" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
<el-form-item label="ID">
|
||||||
|
<el-input v-model="elementBaseInfo.id" clearable @change="updateBaseInfo('id')"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="名称">
|
||||||
|
<el-input v-model="elementBaseInfo.name" clearable @change="updateBaseInfo('name')" />
|
||||||
|
</el-form-item>
|
||||||
|
</div>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user