feat : workflow编辑器 无用功能屏蔽

This commit is contained in:
clay
2024-05-13 17:41:17 +08:00
parent 779ebf093a
commit 8d51d68df1
8 changed files with 107 additions and 102 deletions

View File

@@ -121,7 +121,7 @@ const users = ref([])
// const orgType = ref('user')
const showOrgSelect = ref(false)
const groupNames = ref(['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J'])
const supportTypes = ref([ValueType.number, ValueType.string, ValueType.date, ValueType.dateRange, ValueType.dept, ValueType.user])
const supportTypes = ref([ValueType.number, ValueType.string])
const explains = ref(
[
{label: '等于', value: '='},
@@ -195,7 +195,7 @@ const selectUser = (value, orgType) => {
const filterConditionMosr = (list) => {
processFromPerms.value.forEach((item) => {
console.log(item)
if (item.required){
if (item.required && supportTypes.value.indexOf(item.valueType) > -1){
list.push({title: item.title, id: item.id, valueType: item.valueType})
}
})