| | |
| | | <el-form-item label="敏感度" prop="sensitivity"> |
| | | <el-select v-model="queryParams.sensitivity" style="width: 226.4px" clearable> |
| | | <el-option |
| | | v-for="item in Object.keys(eMetric_Ops)" |
| | | v-for="item in Object.keys(eMetrics_Ops)" |
| | | :key="item" |
| | | :value="parseInt(item)" |
| | | :label="eMetric_Ops[item]" |
| | | :label="eMetrics_Ops[item]" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="full_name" label="全称" width="170" show-overflow-tooltip> </el-table-column> |
| | | <el-table-column prop="metric_define" label="定义" show-overflow-tooltip> </el-table-column> |
| | | <el-table-column prop="metrics_define" label="定义" show-overflow-tooltip> </el-table-column> |
| | | <el-table-column prop="calcu_method" label="计算方法" width="120" show-overflow-tooltip> </el-table-column> |
| | | |
| | | <el-table-column label="维度" prop="dimension" show-overflow-tooltip> |
| | |
| | | import { computed, onMounted, ref } from 'vue'; |
| | | import { useRouter } from 'vue-router'; |
| | | import { SupervisorPublished } from '../../lowCode/sqlAmis/types'; |
| | | import * as metricApi from '/@/api/metric'; |
| | | import * as metricApi from '/@/api/metrics'; |
| | | import HMContainer from '/@/components/layout/HMContainer.vue'; |
| | | import { usePageDisplay } from '/@/hooks/usePageDisplay'; |
| | | import { useQueryTable } from '/@/hooks/useQueryTable'; |
| | | import { convertListToTree } from '/@/utils/util'; |
| | | import { eMetric_Ops } from '/@/views/types/metric'; |
| | | import { eMetrics_Ops } from '/@/views/types/metrics'; |
| | | const router = useRouter(); |
| | | //#region ====================== 合并单元格 ====================== |
| | | // 需要合并单元格的 prop |
| | | const GROUP_PROP = ['title', 'full_name', 'metric_define', 'calcu_method']; |
| | | const GROUP_PROP = ['title', 'full_name', 'metrics_define', 'calcu_method']; |
| | | const objectSpanMethod = ({ row, column, rowIndex, columnIndex }) => { |
| | | if (GROUP_PROP.includes(column.property)) { |
| | | return { |