mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-02 18:04:54 +00:00
fix: topn type (#267)
This commit is contained in:
parent
fe28fae27d
commit
986fe8b90e
@ -58,7 +58,7 @@ export function useQueryProcessor(config: Indexable) {
|
|||||||
parentService: ["All"].includes(dashboardStore.entity) ? null : selectorStore.currentService.value,
|
parentService: ["All"].includes(dashboardStore.entity) ? null : selectorStore.currentService.value,
|
||||||
normal: selectorStore.currentService ? selectorStore.currentService.normal : true,
|
normal: selectorStore.currentService ? selectorStore.currentService.normal : true,
|
||||||
scope: config.catalog,
|
scope: config.catalog,
|
||||||
topN: c.topN || 10,
|
topN: Number(c.topN) || 10,
|
||||||
order: c.sortOrder || "DES",
|
order: c.sortOrder || "DES",
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
@ -95,7 +95,7 @@ export function useQueryProcessor(config: Indexable) {
|
|||||||
conditions[`condition${index}`] = {
|
conditions[`condition${index}`] = {
|
||||||
name,
|
name,
|
||||||
parentEntity: entity,
|
parentEntity: entity,
|
||||||
topN: c.topN || 10,
|
topN: Number(c.topN) || 10,
|
||||||
order: c.sortOrder || "DES",
|
order: c.sortOrder || "DES",
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
|
@ -85,7 +85,7 @@ limitations under the License. -->
|
|||||||
type="number"
|
type="number"
|
||||||
:min="1"
|
:min="1"
|
||||||
:max="100"
|
:max="100"
|
||||||
@change="changeConfigs(index, { topN: currentMetric.topN || 10 })"
|
@change="changeConfigs(index, { topN: Number(currentMetric.topN) || 10 })"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -150,7 +150,7 @@ limitations under the License. -->
|
|||||||
() => {
|
() => {
|
||||||
currentMetric.value = {
|
currentMetric.value = {
|
||||||
...props.currentMetricConfig,
|
...props.currentMetricConfig,
|
||||||
topN: props.currentMetricConfig.topN || 10,
|
topN: Number(props.currentMetricConfig.topN) || 10,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user