hookehuyr

fix 细节调整

......@@ -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 !== '节点操作'
......
/*
* @Date: 2023-10-27 09:29:48
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-11-22 18:35:26
* @LastEditTime: 2023-11-23 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: [
......
<!--
* @Date: 2023-11-01 10:18:53
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-11-23 16:05:19
* @LastEditTime: 2023-11-23 17: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) {
......