This commit is contained in:
Fine 2022-11-28 17:34:45 +08:00
parent 0aec4dc56a
commit fa693f4a2f
5 changed files with 6 additions and 2 deletions

View File

@ -179,6 +179,7 @@ const msg = {
"Sample HTTP requests and responses with tracing when response code between 400 and 499", "Sample HTTP requests and responses with tracing when response code between 400 and 499",
when5xx: when5xx:
"Sample HTTP requests and responses with tracing when response code between 500 and 599", "Sample HTTP requests and responses with tracing when response code between 500 and 599",
taskTitle: "HTTP request and response collecting rules",
seconds: "Seconds", seconds: "Seconds",
hourTip: "Select Hour", hourTip: "Select Hour",
minuteTip: "Select Minute", minuteTip: "Select Minute",

View File

@ -183,6 +183,7 @@ const msg = {
"Ejemplo de solicitud y respuesta http con seguimiento cuando el Código de respuesta está entre 400 y 499", "Ejemplo de solicitud y respuesta http con seguimiento cuando el Código de respuesta está entre 400 y 499",
when5xx: when5xx:
"Ejemplo de solicitud y respuesta http con seguimiento cuando el Código de respuesta está entre 500 y 599", "Ejemplo de solicitud y respuesta http con seguimiento cuando el Código de respuesta está entre 500 y 599",
taskTitle: "Reglas de recolección de peticiones y respuestas HTTP",
second: "s", second: "s",
yearSuffix: "Año", yearSuffix: "Año",
monthsHead: "Ene_Feb_Mar_Abr_May_Jun_Jul_Ago_Set_Oct_Nov_Dic", monthsHead: "Ene_Feb_Mar_Abr_May_Jun_Jul_Ago_Set_Oct_Nov_Dic",

View File

@ -174,6 +174,7 @@ const msg = {
minDuration: "最小请求持续时间", minDuration: "最小请求持续时间",
when4xx: "当响应代码介于400和499之间时带有跟踪的HTTP请求和响应示例", when4xx: "当响应代码介于400和499之间时带有跟踪的HTTP请求和响应示例",
when5xx: "当响应代码介于500和599之间时带有跟踪的HTTP请求和响应示例", when5xx: "当响应代码介于500和599之间时带有跟踪的HTTP请求和响应示例",
taskTitle: "HTTP请求和响应收集规则",
seconds: "秒", seconds: "秒",
hourTip: "选择小时", hourTip: "选择小时",
minuteTip: "选择分钟", minuteTip: "选择分钟",

View File

@ -23,7 +23,7 @@ limitations under the License. -->
> >
<template #title> <template #title>
<div> <div>
<span class="title">{{ `Condition - ${index + 1}` }}</span> <span class="title">{{ `Rule - ${index + 1}` }}</span>
<Icon <Icon
class="mr-5 cp" class="mr-5 cp"
iconName="remove_circle_outline" iconName="remove_circle_outline"

View File

@ -78,6 +78,7 @@ limitations under the License. -->
</el-dialog> </el-dialog>
<el-dialog <el-dialog
v-model="newTask" v-model="newTask"
:title="t('taskTitle')"
:destroy-on-close="true" :destroy-on-close="true"
fullscreen fullscreen
@closed="newTask = false" @closed="newTask = false"
@ -176,7 +177,6 @@ async function saveNewTask(
minDuration: number; minDuration: number;
}[] }[]
) { ) {
newTask.value = false;
const instanceId = const instanceId =
(selectorStore.currentPod && selectorStore.currentPod.id) || ""; (selectorStore.currentPod && selectorStore.currentPod.id) || "";
if (!instanceId) { if (!instanceId) {
@ -191,6 +191,7 @@ async function saveNewTask(
ElMessage.error(res.data.createEBPFNetworkProfiling.errorReason); ElMessage.error(res.data.createEBPFNetworkProfiling.errorReason);
return; return;
} }
newTask.value = false;
await fetchTasks(); await fetchTasks();
} }
function enableInterval() { function enableInterval() {