mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-20 15:17:37 +00:00
feat: update
This commit is contained in:
parent
f8a16501df
commit
5c37a049cd
@ -100,8 +100,7 @@ const msg = {
|
|||||||
import: "Import Dashboard Templates",
|
import: "Import Dashboard Templates",
|
||||||
yes: "Yes",
|
yes: "Yes",
|
||||||
no: "No",
|
no: "No",
|
||||||
tableHeaderCol1: "Name of the first column of the table",
|
tableHeaderCol2: "Name of the last column of the table",
|
||||||
tableHeaderCol2: "Name of the second column of the table",
|
|
||||||
showXAxis: "Show X Axis",
|
showXAxis: "Show X Axis",
|
||||||
showYAxis: "Show Y Axis",
|
showYAxis: "Show Y Axis",
|
||||||
nameError: "The dashboard name cannot be duplicate",
|
nameError: "The dashboard name cannot be duplicate",
|
||||||
|
@ -101,8 +101,7 @@ const msg = {
|
|||||||
import: "Importar Plantilla Panel",
|
import: "Importar Plantilla Panel",
|
||||||
yes: "Sí",
|
yes: "Sí",
|
||||||
no: "No",
|
no: "No",
|
||||||
tableHeaderCol1: "Nombre de la primera columna de la tabla",
|
tableHeaderCol2: "Nombre de la Último columna de la tabla",
|
||||||
tableHeaderCol2: "Nombre de la segunda columna de la tabla",
|
|
||||||
showXAxis: "Mostrar Eje X",
|
showXAxis: "Mostrar Eje X",
|
||||||
showYAxis: "Mostrar Eje Y",
|
showYAxis: "Mostrar Eje Y",
|
||||||
nameError: "El nombre del panel no puede ser duplicado",
|
nameError: "El nombre del panel no puede ser duplicado",
|
||||||
|
@ -34,7 +34,8 @@ const titles = {
|
|||||||
workflow_scheduler: "Flujo de trabajo",
|
workflow_scheduler: "Flujo de trabajo",
|
||||||
workflow_scheduler_desc: "Proporcionar monitoreo para sistemas de programación de flujos de trabajo.",
|
workflow_scheduler_desc: "Proporcionar monitoreo para sistemas de programación de flujos de trabajo.",
|
||||||
workflow_scheduler_airflow: "Airflow",
|
workflow_scheduler_airflow: "Airflow",
|
||||||
workflow_scheduler_airflow_desc: "Observando tareas a través de los datos de telemetría recopilados desde Apache Airflow.",
|
workflow_scheduler_airflow_desc:
|
||||||
|
"Observando tareas a través de los datos de telemetría recopilados desde Apache Airflow.",
|
||||||
// Service Mesh
|
// Service Mesh
|
||||||
service_mesh: "Malla de Servicios",
|
service_mesh: "Malla de Servicios",
|
||||||
service_mesh_desc:
|
service_mesh_desc:
|
||||||
|
@ -99,8 +99,7 @@ const msg = {
|
|||||||
import: "导入仪表板模板",
|
import: "导入仪表板模板",
|
||||||
yes: "是",
|
yes: "是",
|
||||||
no: "否",
|
no: "否",
|
||||||
tableHeaderCol1: "表格的第一列的名称",
|
tableHeaderCol2: "表格的最后一列的名称",
|
||||||
tableHeaderCol2: "表格的第二列的名称",
|
|
||||||
showXAxis: "显示X轴",
|
showXAxis: "显示X轴",
|
||||||
showYAxis: "显示Y轴",
|
showYAxis: "显示Y轴",
|
||||||
nameError: "仪表板名称不能重复",
|
nameError: "仪表板名称不能重复",
|
||||||
|
1
src/types/dashboard.d.ts
vendored
1
src/types/dashboard.d.ts
vendored
@ -140,7 +140,6 @@ export interface TextConfig {
|
|||||||
export interface TableConfig {
|
export interface TableConfig {
|
||||||
type?: string;
|
type?: string;
|
||||||
showTableValues: boolean;
|
showTableValues: boolean;
|
||||||
tableHeaderCol1: string;
|
|
||||||
tableHeaderCol2: string;
|
tableHeaderCol2: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,16 +22,6 @@ limitations under the License. -->
|
|||||||
@change="updateConfig({ showTableValues })"
|
@change="updateConfig({ showTableValues })"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
|
||||||
<span class="label">{{ t("tableHeaderCol1") }}</span>
|
|
||||||
<el-input
|
|
||||||
class="input"
|
|
||||||
v-model="tableHeaderCol1"
|
|
||||||
size="small"
|
|
||||||
placeholder="none"
|
|
||||||
@change="updateConfig({ tableHeaderCol1 })"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span class="label">{{ t("tableHeaderCol2") }}</span>
|
<span class="label">{{ t("tableHeaderCol2") }}</span>
|
||||||
<el-input
|
<el-input
|
||||||
@ -52,7 +42,6 @@ limitations under the License. -->
|
|||||||
const dashboardStore = useDashboardStore();
|
const dashboardStore = useDashboardStore();
|
||||||
const graph = dashboardStore.selectedGrid.graph || {};
|
const graph = dashboardStore.selectedGrid.graph || {};
|
||||||
const showTableValues = ref(graph.showTableValues);
|
const showTableValues = ref(graph.showTableValues);
|
||||||
const tableHeaderCol1 = ref(graph.tableHeaderCol1);
|
|
||||||
const tableHeaderCol2 = ref(graph.tableHeaderCol2);
|
const tableHeaderCol2 = ref(graph.tableHeaderCol2);
|
||||||
|
|
||||||
function updateConfig(param: { [key: string]: unknown }) {
|
function updateConfig(param: { [key: string]: unknown }) {
|
||||||
|
@ -93,7 +93,6 @@ export const DefaultGraphConfig: { [key: string]: any } = {
|
|||||||
Table: {
|
Table: {
|
||||||
type: "Table",
|
type: "Table",
|
||||||
showTableValues: true,
|
showTableValues: true,
|
||||||
tableHeaderCol1: "",
|
|
||||||
tableHeaderCol2: "",
|
tableHeaderCol2: "",
|
||||||
},
|
},
|
||||||
TopList: {
|
TopList: {
|
||||||
|
@ -16,15 +16,26 @@ limitations under the License. -->
|
|||||||
<template>
|
<template>
|
||||||
<div class="chart-table">
|
<div class="chart-table">
|
||||||
<div class="row header flex-h">
|
<div class="row header flex-h">
|
||||||
<div class="name" :style="`width: ${nameWidth}%`">
|
<div
|
||||||
{{ config.tableHeaderCol1 || t("name") }}
|
v-for="key in dataKeys[0]"
|
||||||
|
:key="key"
|
||||||
|
class="name"
|
||||||
|
:style="`width: ${dataKeys[0].length > 1 ? (nameWidth as number) / (dataKeys[0].length || 1) : nameWidth}%`"
|
||||||
|
>
|
||||||
|
{{ key.split("=")[0] || t("name") }}
|
||||||
</div>
|
</div>
|
||||||
<div class="value-col" v-if="config.showTableValues">
|
<div class="value-col" v-if="config.showTableValues">
|
||||||
{{ config.tableHeaderCol2 || t("value") }}
|
{{ config.tableHeaderCol2 || t("value") }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row flex-h" v-for="(keys, index) in dataKeys" :key="index">
|
<div class="row flex-h" v-for="(keys, index) in dataKeys" :key="index">
|
||||||
<div v-for="k in keys" class="name" :style="`width: ${(nameWidth as number) / 2}%`" :key="k">{{ k }}</div>
|
<div
|
||||||
|
v-for="k in keys"
|
||||||
|
class="name"
|
||||||
|
:style="`width: ${keys.length > 1 ? (nameWidth as number) / (keys.length || 1) : nameWidth}%`"
|
||||||
|
:key="k"
|
||||||
|
>{{ k.split("=")[1] }}</div
|
||||||
|
>
|
||||||
<div class="value-col" v-if="config.showTableValues">
|
<div class="value-col" v-if="config.showTableValues">
|
||||||
{{
|
{{
|
||||||
(config.metricTypes && config.metricTypes[0] === "readMetricsValue") ||
|
(config.metricTypes && config.metricTypes[0] === "readMetricsValue") ||
|
||||||
@ -51,7 +62,6 @@ limitations under the License. -->
|
|||||||
type: Object as PropType<{
|
type: Object as PropType<{
|
||||||
showTableValues: boolean;
|
showTableValues: boolean;
|
||||||
tableHeaderCol2: string;
|
tableHeaderCol2: string;
|
||||||
tableHeaderCol1: string;
|
|
||||||
metricTypes: string[];
|
metricTypes: string[];
|
||||||
typesOfMQE: string[];
|
typesOfMQE: string[];
|
||||||
}>,
|
}>,
|
||||||
|
Loading…
Reference in New Issue
Block a user