feat: [bpm][ele] todo 优化
This commit is contained in:
@@ -158,7 +158,7 @@ function changeNodeName() {
|
|||||||
defineExpose({ open }); // 提供 open 方法,用于打开弹窗
|
defineExpose({ open }); // 提供 open 方法,用于打开弹窗
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<Drawer class="w-1/3">
|
<Drawer class="w-2/5">
|
||||||
<template #title>
|
<template #title>
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<Input
|
<Input
|
||||||
|
|||||||
@@ -383,7 +383,7 @@ onMounted(() => {
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<Drawer class="w-1/3">
|
<Drawer class="w-2/5">
|
||||||
<template #title>
|
<template #title>
|
||||||
<div class="config-header">
|
<div class="config-header">
|
||||||
<Input
|
<Input
|
||||||
|
|||||||
@@ -158,7 +158,6 @@ function changeNodeName() {
|
|||||||
defineExpose({ open }); // 提供 open 方法,用于打开弹窗
|
defineExpose({ open }); // 提供 open 方法,用于打开弹窗
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<!-- TODO @jason:antd 是 1/3,这里要统一么? -->
|
|
||||||
<Drawer class="w-2/5">
|
<Drawer class="w-2/5">
|
||||||
<template #title>
|
<template #title>
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ defineOptions({
|
|||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
modelValue: {
|
modelValue: {
|
||||||
type: Object,
|
type: Object,
|
||||||
// TODO @jason:这里 required: false,
|
required: false,
|
||||||
default: () => ({}),
|
default: () => ({}),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -383,7 +383,6 @@ onMounted(() => {
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<!-- TODO @jason:antd 这里是 1/3,需要保持一致么? -->
|
|
||||||
<Drawer class="w-2/5">
|
<Drawer class="w-2/5">
|
||||||
<template #title>
|
<template #title>
|
||||||
<div class="config-header">
|
<div class="config-header">
|
||||||
|
|||||||
@@ -30,12 +30,12 @@ import {
|
|||||||
} from 'element-plus';
|
} from 'element-plus';
|
||||||
|
|
||||||
import { getForm } from '#/api/bpm/form';
|
import { getForm } from '#/api/bpm/form';
|
||||||
|
import { parseFormFields } from '#/components/form-create';
|
||||||
// TODO @jason:这里要迁移下么?
|
// TODO @jason:这里要迁移下么?
|
||||||
// import {
|
// import {
|
||||||
// HttpRequestSetting,
|
// HttpRequestSetting,
|
||||||
// parseFormFields,
|
// parseFormFields,
|
||||||
// } from '#/views/bpm/components/simple-process-design';
|
// } from '#/views/bpm/components/simple-process-design';
|
||||||
import { parseFormFields } from '#/components/form-create';
|
|
||||||
|
|
||||||
import PrintTemplate from './custom-print-template.vue';
|
import PrintTemplate from './custom-print-template.vue';
|
||||||
|
|
||||||
@@ -516,11 +516,11 @@ defineExpose({ initData, validate });
|
|||||||
</ElRow>
|
</ElRow>
|
||||||
<ElRow v-if="processBeforeTriggerEnable">
|
<ElRow v-if="processBeforeTriggerEnable">
|
||||||
<ElCol :span="24" class="mt-6">
|
<ElCol :span="24" class="mt-6">
|
||||||
<!-- <HttpRequestSetting
|
<HttpRequestSetting
|
||||||
v-model:setting="modelData.processBeforeTriggerSetting"
|
v-model:setting="modelData.processBeforeTriggerSetting"
|
||||||
:response-enable="true"
|
:response-enable="true"
|
||||||
form-item-prefix="processBeforeTriggerSetting"
|
form-item-prefix="processBeforeTriggerSetting"
|
||||||
/> -->
|
/>
|
||||||
</ElCol>
|
</ElCol>
|
||||||
</ElRow>
|
</ElRow>
|
||||||
</ElFormItem>
|
</ElFormItem>
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, watch } from 'vue';
|
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' });
|
defineOptions({ name: 'ProcessInstanceBpmnViewer' });
|
||||||
|
|
||||||
@@ -50,11 +49,11 @@ watch(
|
|||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
class="h-full w-full overflow-auto rounded-lg border border-gray-200 bg-white p-4"
|
class="h-full w-full overflow-auto rounded-lg border border-gray-200 bg-white p-4"
|
||||||
>
|
>
|
||||||
<!-- <MyProcessViewer
|
<MyProcessViewer
|
||||||
key="processViewer"
|
key="processViewer"
|
||||||
:xml="view.bpmnXml"
|
:xml="view.bpmnXml"
|
||||||
:view="view"
|
:view="view"
|
||||||
class="h-full min-h-[500px] w-full"
|
class="h-full min-h-[500px] w-full"
|
||||||
/> -->
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -275,8 +275,7 @@ async function openPopover(type: string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Object.keys(popOverVisible.value).forEach((item) => {
|
Object.keys(popOverVisible.value).forEach((item) => {
|
||||||
// TODO @jason:这里是不是保持和 antd 一致?
|
if (popOverVisible.value[item]) popOverVisible.value[item] = item === type;
|
||||||
popOverVisible.value[item] = item === type;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user