feat : workflow编辑器 无用功能屏蔽
This commit is contained in:
@@ -230,11 +230,11 @@ const showOrgSelect = ref(false)
|
||||
const orgPickerSelected = ref([])
|
||||
const approvalTypes = reactive([
|
||||
{name: "指定人员", type: "ASSIGN_USER"},
|
||||
{name: "发起人自选", type: "SELF_SELECT"},
|
||||
// {name: "发起人自选", type: "SELF_SELECT"},
|
||||
// {name: "连续多级主管", type: "LEADER_TOP"},
|
||||
{name: "主管", type: "LEADER"},
|
||||
// {name: "主管", type: "LEADER"},
|
||||
// {name: "角色", type: "ROLE"},
|
||||
// {name: "发起人自己", type: "SELF"},
|
||||
{name: "发起人自己", type: "SELF"},
|
||||
// {name: "表单内联系人", type: "FORM_USER"},
|
||||
{name: "矩阵审批", type: "MATRIX_APPROVAL"},
|
||||
])
|
||||
|
||||
@@ -34,8 +34,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {defineProps, watch,computed} from "vue";
|
||||
|
||||
import {defineProps, computed} from "vue";
|
||||
import {useProcessStore} from "@/stores/processStore.js";
|
||||
|
||||
const props = defineProps({
|
||||
@@ -45,18 +44,7 @@ const props = defineProps({
|
||||
}
|
||||
});
|
||||
const processStore = useProcessStore();
|
||||
|
||||
const tableData = ref([]);
|
||||
const isIndeterminate = ref(false);
|
||||
const permSelect = ref("");
|
||||
const checkStatus = reactive({
|
||||
readOnly: true,
|
||||
editable: false,
|
||||
hide: false
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
const init = () => {
|
||||
let oldPermMap = new Map()
|
||||
@@ -66,29 +54,6 @@ const init = () => {
|
||||
}
|
||||
}
|
||||
processStore.getSelectedNode().props.formPerms = [];
|
||||
//todo 项目字段测试
|
||||
let perms = [{
|
||||
id: "projectName",
|
||||
title: "项目名称",
|
||||
required: true,
|
||||
perm: "R"
|
||||
}, {
|
||||
id: "projectType",
|
||||
title: "项目类型",
|
||||
required: true,
|
||||
perm: "R"
|
||||
}, {
|
||||
id: "projectDesc",
|
||||
title: "项目描述",
|
||||
required: true,
|
||||
perm: "R"
|
||||
}, {
|
||||
id: "projectManager",
|
||||
title: "项目经理",
|
||||
required: true,
|
||||
perm: "R"
|
||||
}];
|
||||
// formPermsLoad(oldPermMap, processStore.getDesign().formItems);
|
||||
formPermsLoadMosr(oldPermMap, processFromPerms.value);
|
||||
};
|
||||
|
||||
@@ -119,7 +84,6 @@ const allSelect = (type) => {
|
||||
const formPermsLoadMosr = (oldPermMap, perms) => {
|
||||
|
||||
perms.forEach(perm =>{
|
||||
console.log(perm)
|
||||
//刷新名称
|
||||
let old = oldPermMap.get(perm.id)
|
||||
if (old) {
|
||||
@@ -131,7 +95,7 @@ const formPermsLoadMosr = (oldPermMap, perms) => {
|
||||
id: perm.id, //todo ,id 就是字段名称
|
||||
title: perm.title,
|
||||
required: perm.required,
|
||||
perm: nowNode.type === "ROOT" ? "E" : "R"
|
||||
perm: nowNode.value.type === "ROOT" ? "E" : "R"
|
||||
});
|
||||
}
|
||||
})
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<!-- <org-items v-model="select"/>-->
|
||||
<!-- <org-picker title="请选择可发起本审批的人员/部门" multiple ref="orgPicker" :selected="select" @ok="selected"/>-->
|
||||
<!-- </div>-->
|
||||
无需设置
|
||||
</template>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user