From ca22cdd5550cfa0defb0f430c538698182cdaec1 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期一, 30 十二月 2024 16:42:49 +0800 Subject: [PATCH] Merge branch 'master' of http://dlindusit.com:53929/r/iailab-plat-ui-vue3 --- src/components/bpmnProcessDesigner/package/penal/PropertiesPanel.vue | 27 +++++++++++++++++++-------- 1 files changed, 19 insertions(+), 8 deletions(-) diff --git a/src/components/bpmnProcessDesigner/package/penal/PropertiesPanel.vue b/src/components/bpmnProcessDesigner/package/penal/PropertiesPanel.vue index 96e8b08..d2409ee 100644 --- a/src/components/bpmnProcessDesigner/package/penal/PropertiesPanel.vue +++ b/src/components/bpmnProcessDesigner/package/penal/PropertiesPanel.vue @@ -1,5 +1,5 @@ <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" --> @@ -26,8 +26,10 @@ <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 @@ -35,8 +37,12 @@ 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> @@ -54,9 +60,13 @@ <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> @@ -72,6 +82,7 @@ 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' }) -- Gitblit v1.9.3