fix(System Management): Supports system variables

This commit is contained in:
dataeaseShu
2026-02-05 10:49:33 +08:00
committed by dataeaseShu
parent 5105f8b51c
commit beebe6ce2f
2 changed files with 12 additions and 3 deletions
@@ -74,7 +74,16 @@ const dfsInit = (arr: any[]) => {
const child = dfsInit(items)
elementList.push({ logic, child })
} else {
const { enum_value, field_id, filter_type, term, value, field, value_type, variable_id } = ele
const {
enum_value,
field_id,
filter_type,
term,
value,
field,
value_type = 'normal',
variable_id = '',
} = ele
const { name } = field || {}
elementList.push({
enum_value: enum_value.join(','),
@@ -22,8 +22,8 @@ const keywords = ref('')
const oldKeywords = ref('')
const searchLoading = ref(false)
const selectable = () => {
return true
const selectable = (row: any) => {
return ![1, 2, 3].includes(row.id)
}
onMounted(() => {
search()