Skip to content

Commit 7b8e4ea

Browse files
committed
fix: 流程审核详情页-流程图未能撑满剩余区域bug修复
1 parent c34bfc1 commit 7b8e4ea

File tree

3 files changed

+28
-10
lines changed

3 files changed

+28
-10
lines changed

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

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,22 @@ watch(
4040
}
4141
)
4242
</script>
43-
<style>
43+
<style lang="scss" scoped>
4444
.box-card {
45+
height: 100%;
4546
width: 100%;
46-
margin-bottom: 20px;
47-
}
47+
margin-bottom: 0;
48+
49+
:deep(.el-card__body) {
50+
height: 100%;
51+
padding: 0;
52+
}
4853
49-
:deep(.process-viewer) {
50-
height: 100% !important;
51-
min-height: 500px;
54+
:deep(.process-viewer) {
55+
height: 100% !important;
56+
min-height: 100%;
57+
width: 100%;
58+
overflow: auto;
59+
}
5260
}
5361
</style>

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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div v-loading="loading" class="mb-20px">
2+
<div v-loading="loading" class="process-viewer-container">
33
<SimpleProcessViewer
44
:flow-node="simpleModel"
55
:tasks="tasks"
@@ -154,8 +154,15 @@ const setSimpleModelNodeTaskStatus = (
154154
</script>
155155

156156
<style lang="scss" scoped>
157-
:deep(.process-viewer) {
158-
height: 100% !important;
159-
min-height: 500px;
157+
.process-viewer-container {
158+
height: 100%;
159+
width: 100%;
160+
161+
:deep(.process-viewer) {
162+
height: 100% !important;
163+
min-height: 100%;
164+
width: 100%;
165+
overflow: auto;
166+
}
160167
}
161168
</style>

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,12 @@ $process-header-height: 194px;
319319
$process-header-height - 40px
320320
);
321321
overflow: auto;
322+
display: flex;
323+
flex-direction: column;
322324
323325
:deep(.box-card) {
324326
height: 100%;
327+
flex: 1;
325328
326329
.el-card__body {
327330
height: 100%;

0 commit comments

Comments
 (0)