diff --git a/src/store/modules/ebpf.ts b/src/store/modules/ebpf.ts index 80d9b1d1..11d9758d 100644 --- a/src/store/modules/ebpf.ts +++ b/src/store/modules/ebpf.ts @@ -105,6 +105,7 @@ export const ebpfStore = defineStore({ if (!params.taskId) { return new Promise((resolve) => resolve({})); } + params.taskId = "808b68c847a4de58c3d068b1d62e0c93428cd3b7a9ae64952b52f3503b663fe9"; const res: AxiosResponse = await graphql.query("getEBPFSchedules").params({ ...params }); if (res.data.errors) { diff --git a/src/styles/reset.scss b/src/styles/reset.scss index 7187b779..f483bdc4 100644 --- a/src/styles/reset.scss +++ b/src/styles/reset.scss @@ -212,3 +212,6 @@ div.vis-tooltip { div:has(> a.menu-title) { display: none; } +.el-input-number .el-input__inner { + text-align: left !important; +} diff --git a/src/views/dashboard/related/continuous-profiling/components/Policy.vue b/src/views/dashboard/related/continuous-profiling/components/Policy.vue index 1d50293d..c721b8d0 100644 --- a/src/views/dashboard/related/continuous-profiling/components/Policy.vue +++ b/src/views/dashboard/related/continuous-profiling/components/Policy.vue @@ -139,7 +139,7 @@ limitations under the License. --> } function changeThreshold(index: number) { - let regex = /^(100(\.0{1,2})?|[1-9]?\d(\.\d{1,2})?)%$/; + let regex = /^(100(\.0{1,2})?|[1-9]?\d(\.\d{1,2})?)$/; if (MonitorType[1].value === states.checkItems[index].type) { regex = /^\d+$/; } @@ -151,7 +151,7 @@ limitations under the License. --> } if (!regex.test(states.checkItems[index].threshold)) { - return ElMessage.warning(getNotice(states.checkItems[index].type)); + return ElMessage.error(getNotice(states.checkItems[index].type)); } emits("edit", states, props.order); } @@ -190,11 +190,11 @@ limitations under the License. --> function getNotice(type: string) { const map: { [key: string]: string } = { - PROCESS_CPU: "It should be percentage data", - PROCESS_THREAD_COUNT: "It should be a positive integer", - SYSTEM_LOAD: "It should be a floating point number", - HTTP_ERROR_RATE: "It should be percentage data", - HTTP_AVG_RESPONSE_TIME: "It should be a response time in milliseconds", + PROCESS_CPU: "It is a percentage data", + PROCESS_THREAD_COUNT: "It is a positive integer", + SYSTEM_LOAD: "It is a floating point number", + HTTP_ERROR_RATE: "It is percentage data", + HTTP_AVG_RESPONSE_TIME: "It is a response time in milliseconds", }; return map[type]; diff --git a/src/views/dashboard/related/task-timeline/components/ProfilingPanel.vue b/src/views/dashboard/related/task-timeline/components/ProfilingPanel.vue index 0bf158e1..82da8796 100644 --- a/src/views/dashboard/related/task-timeline/components/ProfilingPanel.vue +++ b/src/views/dashboard/related/task-timeline/components/ProfilingPanel.vue @@ -15,9 +15,6 @@ limitations under the License. -->