feat: add info and title on trace widget

This commit is contained in:
Fine 2023-10-23 16:37:58 +08:00
parent d9064e8b45
commit 029260a314
4 changed files with 33 additions and 9 deletions

View File

@ -382,5 +382,7 @@ const msg = {
addExpressions: "Add Expressions", addExpressions: "Add Expressions",
expressions: "Expression", expressions: "Expression",
unhealthyExpression: "Unhealthy Expression", unhealthyExpression: "Unhealthy Expression",
traceDesc:
"The trace segment serves as a representation of a trace portion executed within one single OS process, such as a JVM. It comprises a collection of spans, typically associated with and collected from a single request or execution context.",
}; };
export default msg; export default msg;

View File

@ -382,5 +382,7 @@ const msg = {
addExpressions: "Add Expressions", addExpressions: "Add Expressions",
expressions: "Expression", expressions: "Expression",
unhealthyExpression: "Unhealthy Expression", unhealthyExpression: "Unhealthy Expression",
traceDesc:
"The trace segment serves as a representation of a trace portion executed within one single OS process, such as a JVM. It comprises a collection of spans, typically associated with and collected from a single request or execution context.",
}; };
export default msg; export default msg;

View File

@ -380,5 +380,7 @@ const msg = {
addExpressions: "添加表达式", addExpressions: "添加表达式",
expressions: "表达式", expressions: "表达式",
unhealthyExpression: "非健康表达式", unhealthyExpression: "非健康表达式",
traceDesc:
"Trace segment充当在单个操作系统进程如JVM中执行的跟踪部分的表示。它包括跨度的集合通常与单个请求或执行上下文相关联并从中收集。",
}; };
export default msg; export default msg;

View File

@ -13,15 +13,16 @@ limitations under the License. -->
<template> <template>
<div class="trace-t flex-v"> <div class="trace-t flex-v">
<div class="trace-t-tool flex-h"> <div class="trace-t-tool flex-h">
<el-pagination <div class="title">
v-model="traceStore.conditions.paging.pageNum" <span class="mr-5">Trace Segments</span>
:page-size="pageSize" <el-popover trigger="hover" width="250" placement="bottom" effect="light" :content="t('traceDesc')">
:small="true" <template #reference>
layout="prev, pager, next" <span>
:pager-count="5" <Icon iconName="info_outline" size="small" />
:total="total" </span>
@current-change="updatePage" </template>
/> </el-popover>
</div>
<div class="selectors"> <div class="selectors">
<Selector <Selector
size="small" size="small"
@ -61,6 +62,17 @@ limitations under the License. -->
</table> </table>
<div class="no-data" v-else>{{ t("noData") }}</div> <div class="no-data" v-else>{{ t("noData") }}</div>
</div> </div>
<div class="trace-t-tool flex-h">
<el-pagination
v-model="traceStore.conditions.paging.pageNum"
:page-size="pageSize"
:small="true"
layout="prev, pager, next"
:pager-count="5"
:total="total"
@current-change="updatePage"
/>
</div>
</div> </div>
</template> </template>
@ -133,6 +145,12 @@ limitations under the License. -->
border-bottom: 1px solid #c1c5ca41; border-bottom: 1px solid #c1c5ca41;
border-right: 1px solid #c1c5ca41; border-right: 1px solid #c1c5ca41;
height: 35px; height: 35px;
align-items: center;
}
.title {
font-weight: bold;
padding-left: 10px;
} }
.selectors { .selectors {