Showing
1 changed file
with
42 additions
and
5 deletions
| ... | @@ -478,7 +478,7 @@ | ... | @@ -478,7 +478,7 @@ |
| 478 | </template> | 478 | </template> |
| 479 | </el-dialog> | 479 | </el-dialog> |
| 480 | 480 | ||
| 481 | - <el-dialog class="preview-dialog" v-model="state.dialogPreviewVisible" title="预览节点流程" width="100%" center style="margin-top: 0; margin-bottom: 0;"> | 481 | + <!--<el-dialog class="preview-dialog" v-model="state.dialogPreviewVisible" title="预览节点流程" width="100%" center style="margin-top: 0; margin-bottom: 0;"> |
| 482 | <div class="preview-container" :style="{height: state.window_height}"> | 482 | <div class="preview-container" :style="{height: state.window_height}"> |
| 483 | <vue-flow-editor-form | 483 | <vue-flow-editor-form |
| 484 | ref="editor1" | 484 | ref="editor1" |
| ... | @@ -499,11 +499,42 @@ | ... | @@ -499,11 +499,42 @@ |
| 499 | </div> | 499 | </div> |
| 500 | <template #footer> | 500 | <template #footer> |
| 501 | <span class="dialog-footer"> | 501 | <span class="dialog-footer"> |
| 502 | - <!-- <el-button @click="state.dialogPreviewVisible = false">取消</el-button> --> | 502 | + <!~~ <el-button @click="state.dialogPreviewVisible = false">取消</el-button> ~~> |
| 503 | <el-button color="#009688" @click="state.dialogPreviewVisible = false">关闭</el-button> | 503 | <el-button color="#009688" @click="state.dialogPreviewVisible = false">关闭</el-button> |
| 504 | </span> | 504 | </span> |
| 505 | </template> | 505 | </template> |
| 506 | - </el-dialog> | 506 | + </el-dialog>--> |
| 507 | + | ||
| 508 | + <el-drawer | ||
| 509 | + v-model="state.dialogPreviewVisible" | ||
| 510 | + title="预览节点流程" | ||
| 511 | + direction="btt" | ||
| 512 | + size="90%" | ||
| 513 | + append-to-body | ||
| 514 | + > | ||
| 515 | + <!-- <div class="preview-container" :style="{height: state.window_height}"> --> | ||
| 516 | + <div class="preview-container"> | ||
| 517 | + <vue-flow-editor-form | ||
| 518 | + ref="editor1" | ||
| 519 | + :height="state.window_height" | ||
| 520 | + :data="flowData" | ||
| 521 | + :miniMap="showMiniMap" | ||
| 522 | + :onRef="onRef1" | ||
| 523 | + :multipleSelect="showMultipleSelect" | ||
| 524 | + :loading="state.editorLoading" | ||
| 525 | + @click-canvas="onClickCanvasPreview" | ||
| 526 | + @click-node="onClickNodePreview" | ||
| 527 | + :controlConfig="state.controlConfig" | ||
| 528 | + :toolbarButtonHandler="toolbarButtonHandler" | ||
| 529 | + ></vue-flow-editor-form> | ||
| 530 | + </div> | ||
| 531 | + <div class="preview-detail-container"> | ||
| 532 | + <iframe :src="state.preview_form_url" width="100%" height="100%" style="border: 0;"></iframe> | ||
| 533 | + </div> | ||
| 534 | + <!-- <div> | ||
| 535 | + <el-button color="#009688" @click="state.dialogPreviewVisible = false">关闭</el-button> | ||
| 536 | + </div> --> | ||
| 537 | + </el-drawer> | ||
| 507 | </template> | 538 | </template> |
| 508 | 539 | ||
| 509 | <script lang="ts"> | 540 | <script lang="ts"> |
| ... | @@ -675,6 +706,7 @@ export default { | ... | @@ -675,6 +706,7 @@ export default { |
| 675 | show_preview: false, | 706 | show_preview: false, |
| 676 | window_height: '500px', | 707 | window_height: '500px', |
| 677 | preview_form_url: '', | 708 | preview_form_url: '', |
| 709 | + drawer: false, | ||
| 678 | }); | 710 | }); |
| 679 | 711 | ||
| 680 | const setNodeTree = (id: string, data: object) => { | 712 | const setNodeTree = (id: string, data: object) => { |
| ... | @@ -917,7 +949,7 @@ export default { | ... | @@ -917,7 +949,7 @@ export default { |
| 917 | }, 500); | 949 | }, 500); |
| 918 | }); | 950 | }); |
| 919 | // 适口高度 | 951 | // 适口高度 |
| 920 | - state.window_height = $(window).height() - 150 + 'px'; | 952 | + state.window_height = $(window).height() - 210 + 'px'; |
| 921 | }); | 953 | }); |
| 922 | 954 | ||
| 923 | /** | 955 | /** |
| ... | @@ -2644,11 +2676,16 @@ body { | ... | @@ -2644,11 +2676,16 @@ body { |
| 2644 | z-index: 9; | 2676 | z-index: 9; |
| 2645 | width: 30vw; | 2677 | width: 30vw; |
| 2646 | height: 80vh; | 2678 | height: 80vh; |
| 2647 | - top: 10vh; | 2679 | + top: 18vh; |
| 2648 | right: 20px; | 2680 | right: 20px; |
| 2649 | border: 1px solid #c3c3c3; | 2681 | border: 1px solid #c3c3c3; |
| 2650 | background: #fff; | 2682 | background: #fff; |
| 2651 | /* padding: 1rem; */ | 2683 | /* padding: 1rem; */ |
| 2652 | /* border-radius: 5px; */ | 2684 | /* border-radius: 5px; */ |
| 2653 | } | 2685 | } |
| 2686 | + | ||
| 2687 | +.el-drawer.btt { | ||
| 2688 | + -webkit-animation: none !important; | ||
| 2689 | + animation: none !important; | ||
| 2690 | +} | ||
| 2654 | </style> | 2691 | </style> | ... | ... |
-
Please register or login to post a comment