Skip to content

Commit 0db0b66

Browse files
committed
feat: 审批详情页-流程图和流转记录的高度会随着父容器高度自动调整
1 parent 735837f commit 0db0b66

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<el-card v-loading="loading" class="box-card">
3-
<MyProcessViewer key="designer" :xml="view.bpmnXml" :view="view" class="h-700px" />
3+
<MyProcessViewer key="designer" :xml="view.bpmnXml" :view="view" class="process-viewer" />
44
</el-card>
55
</template>
66
<script lang="ts" setup>
@@ -45,4 +45,9 @@ watch(
4545
width: 100%;
4646
margin-bottom: 20px;
4747
}
48+
49+
:deep(.process-viewer) {
50+
height: 100% !important;
51+
min-height: 500px;
52+
}
4853
</style>

src/views/bpm/processInstance/detail/ProcessInstanceSimpleViewer.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
:flow-node="simpleModel"
55
:tasks="tasks"
66
:process-instance="processInstance"
7+
class="process-viewer"
78
/>
89
</div>
910
</template>
@@ -151,3 +152,10 @@ const setSimpleModelNodeTaskStatus = (
151152
)
152153
}
153154
</script>
155+
156+
<style lang="scss" scoped>
157+
:deep(.process-viewer) {
158+
height: 100% !important;
159+
min-height: 500px;
160+
}
161+
</style>

src/views/bpm/processInstance/detail/index.vue

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,15 @@ $process-header-height: 194px;
319319
$process-header-height - 40px
320320
);
321321
overflow: auto;
322+
323+
:deep(.box-card) {
324+
height: 100%;
325+
326+
.el-card__body {
327+
height: 100%;
328+
padding: 0;
329+
}
330+
}
322331
}
323332
}
324333

0 commit comments

Comments
 (0)