This commit is contained in:
Fine 2022-10-24 15:29:01 +08:00
parent f0a6bf3b02
commit 4cc16b5048
2 changed files with 9 additions and 3 deletions

View File

@ -18,7 +18,6 @@ import { useAppStoreWithOut } from "@/store/modules/app";
import dateFormatStep from "@/utils/dateFormat";
import getLocalTime from "@/utils/localtime";
import { EventParams } from "@/types/app";
import { QueryOrders, Status } from "@/views/dashboard/data";
export default function associateProcessor(props: any) {
function eventAssociate() {

View File

@ -39,7 +39,7 @@ limitations under the License. -->
</div>
</template>
<div>
<div class="bt-10">{{ t("metricValues") }}</div>
<div class="title">{{ t("metricValues") }}</div>
<div v-for="metric in filters.metricValue" :key="metric.value">
{{ metric.label }}: {{ metric.data }}
</div>
@ -107,7 +107,6 @@ const currentLatency = ref<number[]>(
init();
async function init() {
console.log(filters);
if (!filters.id) {
for (const d of Object.keys(filters)) {
if (filters[d] && !["metricValue", "duration"].includes(d)) {
@ -201,6 +200,9 @@ function setCondition() {
params[k.value] = filters[k.label];
}
}
if (isNaN(params.minTraceDuration)) {
params.queryOrder = QueryOrders[1].value;
}
}
return params;
}
@ -236,4 +238,9 @@ onUnmounted(() => {
.metric-value {
padding: 10px 5px;
}
.title {
margin-bottom: 10px;
font-weight: bold;
}
</style>