mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-19 15:37:36 +00:00
update cofig
This commit is contained in:
parent
1f483a5f69
commit
87e6cb7e84
@ -335,6 +335,5 @@ function aggregation(val: number, config: any): number | string {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(data);
|
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ import { Option } from "@/types/app";
|
|||||||
import graphs from "../graphs";
|
import graphs from "../graphs";
|
||||||
import configs from "./widget/graph-styles";
|
import configs from "./widget/graph-styles";
|
||||||
import WidgetOptions from "./widget/WidgetOptions.vue";
|
import WidgetOptions from "./widget/WidgetOptions.vue";
|
||||||
import MetricOptions from "./widget/metric/Options.vue";
|
import MetricOptions from "./widget/metric/Index.vue";
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: "WidgetEdit",
|
name: "WidgetEdit",
|
||||||
|
@ -49,13 +49,18 @@ limitations under the License. -->
|
|||||||
@change="changeMetricType(index, $event)"
|
@change="changeMetricType(index, $event)"
|
||||||
class="selectors"
|
class="selectors"
|
||||||
/>
|
/>
|
||||||
<el-popover placement="top" :width="400" :visible="showConfig">
|
<el-popover placement="top" :width="400" trigger="click">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<span @click="setMetricConfig(index)">
|
<span @click="setMetricConfig(index)">
|
||||||
<Icon class="cp mr-5" iconName="mode_edit" size="middle" />
|
<Icon class="cp mr-5" iconName="mode_edit" size="middle" />
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
<Standard @update="queryMetrics" @close="showConfig = false" />
|
<Standard
|
||||||
|
@update="queryMetrics"
|
||||||
|
@close="showConfig = false"
|
||||||
|
:currentMetricConfig="currentMetricConfig"
|
||||||
|
:index="index"
|
||||||
|
/>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
<span
|
<span
|
||||||
v-show="states.isList || states.metricTypes[0] === 'readMetricsValues'"
|
v-show="states.isList || states.metricTypes[0] === 'readMetricsValues'"
|
||||||
@ -402,6 +407,7 @@ function deleteMetric(index: number) {
|
|||||||
...{ metricTypes: states.metricTypes, metrics: states.metrics },
|
...{ metricTypes: states.metricTypes, metrics: states.metrics },
|
||||||
metricConfig,
|
metricConfig,
|
||||||
});
|
});
|
||||||
|
console.log(dashboardStore.selectedGrid);
|
||||||
}
|
}
|
||||||
function setMetricTypeList(type: string) {
|
function setMetricTypeList(type: string) {
|
||||||
if (type !== MetricsType.REGULAR_VALUE) {
|
if (type !== MetricsType.REGULAR_VALUE) {
|
@ -267,8 +267,11 @@ export const TextColors: { [key: string]: string } = {
|
|||||||
|
|
||||||
export const CalculationOpts = [
|
export const CalculationOpts = [
|
||||||
{ label: "Percentage", value: "percentage" },
|
{ label: "Percentage", value: "percentage" },
|
||||||
{ label: "ByteToKB", value: "byteToKB" },
|
{ label: "Byte to KB", value: "byteToKB" },
|
||||||
{ label: "ConvertMilliseconds", value: "convertMilliseconds" },
|
|
||||||
{ label: "ConvertSeconds", value: "convertSeconds" },
|
|
||||||
{ label: "Apdex", value: "apdex" },
|
{ label: "Apdex", value: "apdex" },
|
||||||
|
{
|
||||||
|
label: "Convert milliseconds to YYYY-MM-DD HH:mm:ss",
|
||||||
|
value: "convertMilliseconds",
|
||||||
|
},
|
||||||
|
{ label: "Convert seconds to YYYY-MM-DD HH:mm:ss", value: "convertSeconds" },
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user