| | |
| | | import { useQueryTable } from '/@/hooks/useQueryTable'; |
| | | import { useCompRef } from '/@/utils/types'; |
| | | import { convertListToTree } from '/@/utils/util'; |
| | | import { eMetrics_Ops, eMetrics_Ops_Color } from '/@/views/types/metrics'; |
| | | import { OptClassificationMap, classificationEnum, eMetrics_Ops, eMetrics_Ops_Color } from '/@/views/types/metrics'; |
| | | const router = useRouter(); |
| | | //#region ====================== 表格数据,table init ====================== |
| | | const tableLoading = ref(false); |
| | |
| | | themeDomainData.value = res.groups || []; |
| | | }; |
| | | const listTreeData = computed(() => { |
| | | return convertListToTree(themeDomainData.value, { |
| | | const byParentData = convertListToTree(themeDomainData.value, { |
| | | ID: 'group_id', |
| | | Children: 'Children', |
| | | ParentID: 'p_group_id', |
| | | }); |
| | | const result = []; |
| | | byParentData.forEach((item) => { |
| | | if ( |
| | | item.group_type != OptClassificationMap[classificationEnum.Office] && |
| | | item.group_type != OptClassificationMap[classificationEnum.Knowledge] |
| | | ) { |
| | | result.push(item); |
| | | } |
| | | }); |
| | | return result; |
| | | }); |
| | | //按指标名称查询 |
| | | const selectTitleChange = (val) => { |