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,26 +1,36 @@
|
|||||||
<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>
|
||||||
<el-form-item label="流程标识" prop="key">
|
<div v-if="elementBaseInfo.$type === 'bpmn:Process'"> <!-- 如果是 Process 信息的时候,使用自定义表单 -->
|
||||||
<el-input v-model="model.key" placeholder="请输入流标标识"
|
<el-form-item label="流程标识" prop="key">
|
||||||
:disabled="model.id !== undefined && model.id.length > 0" @change="handleKeyUpdate" />
|
<el-input v-model="model.key" placeholder="请输入流标标识"
|
||||||
</el-form-item>
|
:disabled="model.id !== undefined && model.id.length > 0" @change="handleKeyUpdate" />
|
||||||
<el-form-item label="流程名称" prop="name">
|
</el-form-item>
|
||||||
<el-input v-model="model.name" placeholder="请输入流程名称" clearable @change="handleNameUpdate" />
|
<el-form-item label="流程名称" prop="name">
|
||||||
</el-form-item>
|
<el-input v-model="model.name" placeholder="请输入流程名称" clearable @change="handleNameUpdate" />
|
||||||
<el-form-item label="流程分类" prop="category">
|
</el-form-item>
|
||||||
<el-select v-model="model.category" placeholder="请选择流程分类" clearable style="width: 100%">
|
<el-form-item label="流程分类" prop="category">
|
||||||
<el-option v-for="dict in categoryDictDatas" :key="dict.value" :label="dict.label" :value="dict.value"/>
|
<el-select v-model="model.category" placeholder="请选择流程分类" clearable style="width: 100%">
|
||||||
</el-select>
|
<el-option v-for="dict in categoryDictDatas" :key="dict.value" :label="dict.label" :value="dict.value"/>
|
||||||
</el-form-item>
|
</el-select>
|
||||||
<el-form-item label="流程表单" prop="formId">
|
</el-form-item>
|
||||||
<el-select v-model="model.formId" placeholder="请选择流程表单,非必选哟!" clearable style="width: 100%">
|
<el-form-item label="流程表单" prop="formId">
|
||||||
<el-option v-for="form in forms" :key="form.id" :label="form.name" :value="form.id"/>
|
<el-select v-model="model.formId" placeholder="请选择流程表单,非必选哟!" clearable style="width: 100%">
|
||||||
</el-select>
|
<el-option v-for="form in forms" :key="form.id" :label="form.name" :value="form.id"/>
|
||||||
</el-form-item>
|
</el-select>
|
||||||
<el-form-item label="流程描述" prop="description">
|
</el-form-item>
|
||||||
<el-input type="textarea" v-model="model.description" clearable @change="handleDescriptionUpdate" />
|
<el-form-item label="流程描述" prop="description">
|
||||||
</el-form-item>
|
<el-input type="textarea" v-model="model.description" clearable @change="handleDescriptionUpdate" />
|
||||||
|
</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