feat: add shortName for service

This commit is contained in:
Fine 2023-09-20 20:59:30 +08:00
parent d00fe6df9e
commit 105b4bb8ce
3 changed files with 4 additions and 1 deletions

View File

@ -24,6 +24,7 @@ export const Services = {
group group
layers layers
normal normal
shortName
} }
`, `,
}; };

View File

@ -22,6 +22,7 @@ export type Service = {
normal?: boolean; normal?: boolean;
group?: string; group?: string;
merge?: string; merge?: string;
shortName?: string;
}; };
export type Instance = { export type Instance = {

View File

@ -40,7 +40,7 @@ limitations under the License. -->
<el-table-column fixed label="Service Names" min-width="220"> <el-table-column fixed label="Service Names" min-width="220">
<template #default="scope"> <template #default="scope">
<span class="link" :style="{ fontSize: `${config.fontSize}px` }" @click="clickService(scope)"> <span class="link" :style="{ fontSize: `${config.fontSize}px` }" @click="clickService(scope)">
{{ scope.row.label }} {{ scope.row.shortName }}
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
@ -208,6 +208,7 @@ limitations under the License. -->
group: d.group, group: d.group,
normal: d.normal, normal: d.normal,
merge: d.merge, merge: d.merge,
shortName: d.shortName,
}; };
}); });
if (props.config.metricMode === MetricModes.Expression) { if (props.config.metricMode === MetricModes.Expression) {