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-07-12 15:22:29 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
61d5fa6fecd73d8f454d756eda51239909e5ad25
61d5fa6f
1 parent
b7352ba7
✨ feat: 预览模式下查询条件修改
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
13 deletions
doc/api/index.js
doc/axios.js
doc/index.vue
doc/api/index.js
View file @
61d5fa6
/*
* @Date: 2023-11-30 10:34:01
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-0
2-29 15:01:23
* @LastEditTime: 2024-0
7-12 15:11:17
* @FilePath: /vue-flow-editor/doc/api/index.js
* @Description: 文件描述
*/
import
{
fn
,
fetch
}
from
'./fn'
;
const
Api
=
{
FLOW_VERSION
:
'/admin/?a=flow_version'
,
SAVE_FLOW
:
'/admin/?a=save_flow'
,
FLOW_NODES
:
'/admin/?a=flow_nodes'
,
ENABLE_FLOW_VERSION
:
'/admin/?a=enable_flow_version'
,
FLOW_NODE_PROPERTY
:
'/admin/?a=flow_node_property'
,
SAVE_FLOW_NODE_PROPERTY
:
'/admin/?a=save_node_property'
,
SAVE_ALL_FLOW_NODE_PROPERTY
:
'/admin/?a=save_all_node_property'
,
CHECK_ALL_FLOW_NODE_PROPERTY
:
'/admin/?a=check_all_node_property'
,
SAVE_NODE_SORT
:
'/admin/?a=save_node_sort'
,
DUPLICATE_FLOW
:
'/admin/?a=duplicate_flow'
,
FLOW_VERSION
:
'/admin/?a=flow_version
&m=mod
'
,
SAVE_FLOW
:
'/admin/?a=save_flow
&m=mod
'
,
FLOW_NODES
:
'/admin/?a=flow_nodes
&m=srv
'
,
ENABLE_FLOW_VERSION
:
'/admin/?a=enable_flow_version
&m=mod
'
,
FLOW_NODE_PROPERTY
:
'/admin/?a=flow_node_property
&m=mod
'
,
SAVE_FLOW_NODE_PROPERTY
:
'/admin/?a=save_node_property
&m=mod
'
,
SAVE_ALL_FLOW_NODE_PROPERTY
:
'/admin/?a=save_all_node_property
&m=mod
'
,
CHECK_ALL_FLOW_NODE_PROPERTY
:
'/admin/?a=check_all_node_property
&m=mod
'
,
SAVE_NODE_SORT
:
'/admin/?a=save_node_sort
&m=mod
'
,
DUPLICATE_FLOW
:
'/admin/?a=duplicate_flow
&m=mod
'
,
}
/**
...
...
doc/axios.js
View file @
61d5fa6
...
...
@@ -9,7 +9,6 @@ import axios from 'axios';
import
{
ElMessageBox
}
from
'element-plus'
axios
.
defaults
.
params
=
{
m
:
'mod'
,
p
:
'authority_my'
,
};
...
...
doc/index.vue
View file @
61d5fa6
...
...
@@ -531,6 +531,7 @@
</div>
<select-user-view
v-if="state.urlQuery.type !== 'preview'"
:visible="state.dialogUserFormVisible"
:list="state.dialogUserTags"
@close="onCloseUserView"
...
...
@@ -813,6 +814,9 @@ export default {
label: '节点2'
},],
attr_node_desc: '',
urlQuery: {
type: ''
}
});
const dragOptions = computed(() => {
...
...
@@ -877,6 +881,7 @@ export default {
}
const urlQuery = getQueryParams(location.href);
state.urlQuery = getQueryParams(location.href);
let form_id = urlQuery.form_id? urlQuery.form_id : ''; // 表单id
/**
...
...
@@ -954,7 +959,6 @@ export default {
const autoPreview = async () => {
if (urlQuery.type === 'preview') {
flowData.value = null;
const urlQuery = getQueryParams(location.href);
let flow_id = urlQuery.flow_id? urlQuery.flow_id : ''; // 表单id
let todo_node_codes = urlQuery.todo_node_codes ? urlQuery.todo_node_codes.split(',') : []; //
const { code, data } = await flowNodesAPI({ flow_id });
...
...
Please
register
or
login
to post a comment