| | |
| | | <template> |
| | | <div class="process-panel__container" :style="{ width: `${width}px`,maxHeight: '700px' }"> |
| | | <div class="process-panel__container" :style="{ width: `${width}px`, maxHeight: '700px' }"> |
| | | <el-collapse v-model="activeTab"> |
| | | <el-collapse-item name="base"> |
| | | <!-- class="panel-tab__title" --> |
| | |
| | | <template #title><Icon icon="ep:list" />表单</template> |
| | | <element-form :id="elementId" :type="elementType" /> |
| | | </el-collapse-item> |
| | | <el-collapse-item name="task" v-if="elementType.indexOf('Task') !== -1" key="task"> |
| | | <template #title><Icon icon="ep:checked" />任务(审批人)</template> |
| | | <el-collapse-item name="task" v-if="isTaskCollapseItemShow(elementType)" key="task"> |
| | | <template #title |
| | | ><Icon icon="ep:checked" />{{ getTaskCollapseItemName(elementType) }}</template |
| | | > |
| | | <element-task :id="elementId" :type="elementType" /> |
| | | </el-collapse-item> |
| | | <el-collapse-item |
| | |
| | | v-if="elementType.indexOf('Task') !== -1" |
| | | key="multiInstance" |
| | | > |
| | | <template #title><Icon icon="ep:help-filled" />多实例(会签配置)</template> |
| | | <element-multi-instance :business-object="elementBusinessObject" :type="elementType" /> |
| | | <template #title><Icon icon="ep:help-filled" />多人审批方式</template> |
| | | <element-multi-instance |
| | | :id="elementId" |
| | | :business-object="elementBusinessObject" |
| | | :type="elementType" |
| | | /> |
| | | </el-collapse-item> |
| | | <el-collapse-item name="listeners" key="listeners"> |
| | | <template #title><Icon icon="ep:bell-filled" />执行监听器</template> |
| | |
| | | <template #title><Icon icon="ep:promotion" />其他</template> |
| | | <element-other-config :id="elementId" /> |
| | | </el-collapse-item> |
| | | <el-collapse-item name="customConfig" v-if="elementType.indexOf('Task') !== -1" key="customConfig"> |
| | | <template #title><Icon icon="ep:circle-plus-filled" />自定义配置</template> |
| | | <element-custom-config :id="elementId" :type="elementType" /> |
| | | <el-collapse-item name="customConfig" key="customConfig"> |
| | | <template #title><Icon icon="ep:tools" />自定义配置</template> |
| | | <element-custom-config |
| | | :id="elementId" |
| | | :type="elementType" |
| | | :business-object="elementBusinessObject" |
| | | /> |
| | | </el-collapse-item> |
| | | </el-collapse> |
| | | </div> |
| | |
| | | import ElementProperties from './properties/ElementProperties.vue' |
| | | // import ElementForm from './form/ElementForm.vue' |
| | | import UserTaskListeners from './listeners/UserTaskListeners.vue' |
| | | import { getTaskCollapseItemName, isTaskCollapseItemShow } from './task/data' |
| | | |
| | | defineOptions({ name: 'MyPropertiesPanel' }) |
| | | |