Showing
1 changed file
with
3 additions
and
6 deletions
| ... | @@ -481,12 +481,12 @@ | ... | @@ -481,12 +481,12 @@ |
| 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="editor" | 484 | + ref="editor1" |
| 485 | :height="state.window_height" | 485 | :height="state.window_height" |
| 486 | :data="flowData" | 486 | :data="flowData" |
| 487 | :grid="showGrid" | 487 | :grid="showGrid" |
| 488 | :miniMap="showMiniMap" | 488 | :miniMap="showMiniMap" |
| 489 | - :onRef="onRef" | 489 | + :onRef="onRef1" |
| 490 | :multipleSelect="showMultipleSelect" | 490 | :multipleSelect="showMultipleSelect" |
| 491 | :loading="state.editorLoading" | 491 | :loading="state.editorLoading" |
| 492 | @click-canvas="onClickCanvasPreview" | 492 | @click-canvas="onClickCanvasPreview" |
| ... | @@ -1453,9 +1453,6 @@ export default { | ... | @@ -1453,9 +1453,6 @@ export default { |
| 1453 | * @param {Event} e - The event object representing the click event. | 1453 | * @param {Event} e - The event object representing the click event. |
| 1454 | */ | 1454 | */ |
| 1455 | const onClickNode = async (e: myEvent) => { | 1455 | const onClickNode = async (e: myEvent) => { |
| 1456 | - // TODO: 有一个预览状态可以看到节点相应的表单内容 | ||
| 1457 | - console.warn('点击节点,如果预览状态,可以预览表单内容'); | ||
| 1458 | - | ||
| 1459 | const model = G6.Util.clone(e.item.get('model')); // 节点的基本属性 | 1456 | const model = G6.Util.clone(e.item.get('model')); // 节点的基本属性 |
| 1460 | model.style = model.style || {} | 1457 | model.style = model.style || {} |
| 1461 | model.labelCfg = model.labelCfg || { style: {} } | 1458 | model.labelCfg = model.labelCfg || { style: {} } |
| ... | @@ -2268,7 +2265,7 @@ export default { | ... | @@ -2268,7 +2265,7 @@ export default { |
| 2268 | 2265 | ||
| 2269 | model.data = model.data ? model.data : {}; | 2266 | model.data = model.data ? model.data : {}; |
| 2270 | 2267 | ||
| 2271 | - state.detailModel = model; | 2268 | + // state.detailModel = model; |
| 2272 | console.warn(model); | 2269 | console.warn(model); |
| 2273 | if (model.id !== 'start-node') { | 2270 | if (model.id !== 'start-node') { |
| 2274 | state.preview_form_url = 'https://oa-dev.onwall.cn/f/custom_form/front/index.html#/?code=fboupg&model=preview' | 2271 | state.preview_form_url = 'https://oa-dev.onwall.cn/f/custom_form/front/index.html#/?code=fboupg&model=preview' | ... | ... |
-
Please register or login to post a comment