feat: [bpm][ele] todo 优化

This commit is contained in:
jason
2025-12-29 00:09:22 +08:00
parent cb8a633f1f
commit 6606dfd40a
8 changed files with 10 additions and 14 deletions

View File

@@ -158,7 +158,7 @@ function changeNodeName() {
defineExpose({ open }); // 提供 open 方法,用于打开弹窗
</script>
<template>
<Drawer class="w-1/3">
<Drawer class="w-2/5">
<template #title>
<div class="flex items-center">
<Input

View File

@@ -383,7 +383,7 @@ onMounted(() => {
});
</script>
<template>
<Drawer class="w-1/3">
<Drawer class="w-2/5">
<template #title>
<div class="config-header">
<Input

View File

@@ -158,7 +158,6 @@ function changeNodeName() {
defineExpose({ open }); // 提供 open 方法,用于打开弹窗
</script>
<template>
<!-- TODO @jasonantd 1/3这里要统一么 -->
<Drawer class="w-2/5">
<template #title>
<div class="flex items-center">

View File

@@ -40,7 +40,7 @@ defineOptions({
const props = defineProps({
modelValue: {
type: Object,
// TODO @jason这里 required: false,
required: false,
default: () => ({}),
},
});

View File

@@ -383,7 +383,6 @@ onMounted(() => {
});
</script>
<template>
<!-- TODO @jasonantd 这里是 1/3需要保持一致么 -->
<Drawer class="w-2/5">
<template #title>
<div class="config-header">

View File

@@ -30,12 +30,12 @@ import {
} from 'element-plus';
import { getForm } from '#/api/bpm/form';
import { parseFormFields } from '#/components/form-create';
// TODO @jason这里要迁移下么
// import {
// HttpRequestSetting,
// parseFormFields,
// } from '#/views/bpm/components/simple-process-design';
import { parseFormFields } from '#/components/form-create';
import PrintTemplate from './custom-print-template.vue';
@@ -516,11 +516,11 @@ defineExpose({ initData, validate });
</ElRow>
<ElRow v-if="processBeforeTriggerEnable">
<ElCol :span="24" class="mt-6">
<!-- <HttpRequestSetting
<HttpRequestSetting
v-model:setting="modelData.processBeforeTriggerSetting"
:response-enable="true"
form-item-prefix="processBeforeTriggerSetting"
/> -->
/>
</ElCol>
</ElRow>
</ElFormItem>

View File

@@ -1,8 +1,7 @@
<script setup lang="ts">
import { ref, watch } from 'vue';
// TODO @jason这个貌似暂时还没迁移的样子
// import { MyProcessViewer } from '#/views/bpm/components/bpmn-process-designer/package';
import { MyProcessViewer } from '#/views/bpm/components/bpmn-process-designer/package';
defineOptions({ name: 'ProcessInstanceBpmnViewer' });
@@ -50,11 +49,11 @@ watch(
v-loading="loading"
class="h-full w-full overflow-auto rounded-lg border border-gray-200 bg-white p-4"
>
<!-- <MyProcessViewer
<MyProcessViewer
key="processViewer"
:xml="view.bpmnXml"
:view="view"
class="h-full min-h-[500px] w-full"
/> -->
/>
</div>
</template>

View File

@@ -275,8 +275,7 @@ async function openPopover(type: string) {
}
}
Object.keys(popOverVisible.value).forEach((item) => {
// TODO @jason这里是不是保持和 antd 一致?
popOverVisible.value[item] = item === type;
if (popOverVisible.value[item]) popOverVisible.value[item] = item === type;
});
}