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
2023-11-23 17:55:39 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e18cc184f3b591e64378a805c2d856f6cea8d7ef
e18cc184
1 parent
f34988f5
fix 细节调整
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
doc/App.vue
doc/data.js
doc/selectUserView.vue
doc/App.vue
View file @
e18cc18
...
...
@@ -909,9 +909,16 @@ export default {
],
}
];
// 开始节点不显示审批意见
if (model_id ==='start-node') {
state.more_attr = state.more_attr.filter((ele: any) => {
return ele.label !== '审批意见'
});
}
// 检查字段权限选中情况
checkAuthAll('visible');
checkAuthAll('editable');
// 抄送节点不显示节点操作
if (state.detailModel.control === 'cc') {
state.more_attr = state.more_attr.filter((ele: any) => {
return ele.label !== '节点操作'
...
...
doc/data.js
View file @
e18cc18
/*
* @Date: 2023-10-27 09:29:48
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-11-2
2 18:35:26
* @LastEditTime: 2023-11-2
3 17:55:22
* @FilePath: /vue-flow-editor/doc/data.js
* @Description: 初始化结构,数据都是固定的
*/
...
...
@@ -19,6 +19,7 @@ export const AppData = {
text
:
'开始'
,
desc
:
''
,
control
:
'start'
,
index
:
1
},
{
id
:
flow_id
,
...
...
@@ -27,6 +28,7 @@ export const AppData = {
text
:
'流程节点'
,
desc
:
''
,
control
:
'flow'
,
index
:
2
},
// {
// id: '1700459406515',
...
...
@@ -43,6 +45,7 @@ export const AppData = {
text
:
'抄送节点'
,
desc
:
''
,
control
:
'cc'
,
index
:
3
},
{
id
:
'end-node'
,
...
...
@@ -51,6 +54,7 @@ export const AppData = {
text
:
'结束'
,
desc
:
''
,
control
:
'end'
,
index
:
4
},
],
edges
:
[
...
...
doc/selectUserView.vue
View file @
e18cc18
<!--
* @Date: 2023-11-01 10:18:53
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-11-23 1
6:05
:19
* @LastEditTime: 2023-11-23 1
7:53
:19
* @FilePath: /vue-flow-editor/doc/selectUserView.vue
* @Description: 成员列表选择控件
-->
...
...
@@ -340,7 +340,6 @@ const deptUserList = ref([]); // 部门用户列表
const roleList = ref([]); // 角色列表
onMounted(async () => {
// API获取后台数据
const dept_list = await getDeptList();
const role_list = await getRoleList();
...
...
@@ -379,6 +378,8 @@ watch(() => {
// 监听弹框状态
if (props.visible) {
dialogUserFormVisible.value = true;
// 同步显示tag框选中的用户
checkTab(tabCheckedData.value);
} else {
dialogUserFormVisible.value = false;
// 用户选择弹框关闭时,清空数据
...
...
@@ -405,7 +406,7 @@ watch(
() => props.list,
val => {
if (val) {
userTags.value =
val
;
userTags.value =
_.cloneDeep(val)
;
// 第一项目是组织结构树,默认展开第一个节点
if (userTabs.value[activeTabIdx.value]['type'] === 'corp-tree') {
if (userTabs.value[activeTabIdx.value]['data'].length) {
...
...
Please
register
or
login
to post a comment