Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
vue-flow-editor
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-02-28 18:06:31 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c598a4ba79f1d24952081581a62db4c2d3361ed3
c598a4ba
1 parent
e7c140fb
fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
doc/App.vue
doc/App.vue
View file @
c598a4b
...
...
@@ -412,7 +412,7 @@
</template>
</el-dialog>
</div>
<!-- T
ODO
: 提示功能 -->
<!-- T
AG
: 提示功能 -->
<div v-if="state.current_enable_version === state.select_flow_version" class="add-tip">
<i class="el-icon-warning icon"></i> <span style="font-size: 13px;">流程已启用,如需增删节点和连线,请 <span class="add" @click="addFlowVersion">添加新版本</span></span>
</div>
...
...
@@ -726,6 +726,7 @@ export default {
flow_id: '',
form_id: '',
type: '',
_path: '', // 预览流程表单时的参数
};
// 将url以问号为分隔符拆分为两部分
const parts = url.split("?");
...
...
@@ -1136,6 +1137,7 @@ export default {
}
const copyFLowVersion = async () => { // 复制版本流程
// TODO: 复制时后台数据也需要把单个节点的信息复制过去,前端只是复制了一个结构
let { nodes, edges } = editor.editorState.graph.save();
// 使用时需要把自定义节点的类型带过去 activity/control
...
...
@@ -2377,11 +2379,14 @@ export default {
model.labelCfg = model.labelCfg || { style: {} }
model.data = model.data ? model.data : {};
if (model.id === 'end-node'
|| model.id === 'start-node'
) {
if (model.id === 'end-node') {
ElNotification.error('该节点无法预览');
state.preview_form_url = null;
} else {
state.preview_form_url = 'https://oa-dev.onwall.cn/f/custom_form/front/index.html#/?code=fboupg&model=preview'
let flow_id = getFlowId();
// TODO: 等待正式参数
let _path = urlQuery._path? urlQuery._path : '';
state.preview_form_url = `/admin/?a=flow&t=view&p=${_path}&_flow=${flow_id}&_flow_node=${model.id}`;
}
}
...
...
Please
register
or
login
to post a comment