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
layers
normal
shortName
}
`,
};

View File

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

View File

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