fix: update timeline

This commit is contained in:
Fine 2023-06-09 11:19:58 +08:00
parent a0f4f8a4fa
commit fcf4cc3b92
6 changed files with 9 additions and 8 deletions

View File

@ -47,7 +47,7 @@ export const ControlsTypes = [
"NetworkProfiling",
"ThirdPartyApp",
"ContinuousProfiling",
"AddTaskTimeline",
"TaskTimeline",
];
export enum EBPFProfilingTriggerType {
FIXED_TIME = "FIXED_TIME",

View File

@ -92,6 +92,7 @@ export const dashboardStore = defineStore({
metricTypes: [""],
metrics: [""],
};
if (type === "Widget") {
newItem.metricMode = MetricModes.Expression;
}

View File

@ -32,7 +32,7 @@ limitations under the License. -->
import type { PropType } from "vue";
import { useI18n } from "vue-i18n";
import { useDashboardStore } from "@/store/modules/dashboard";
import Content from "../related/continuous-profiling/Content.vue";
import Content from "../related/task-timeline/Content.vue";
/*global defineProps */
const props = defineProps({

View File

@ -238,7 +238,7 @@ export const EndpointTools = [
export const ProcessTools = [
{ name: "playlist_add", content: "Add Widget", id: "addWidget" },
{ name: "all_inbox", content: "Add Tabs", id: "addTab" },
{ name: "task_timeline", content: "Add Task Timeline", id: "AddTaskTimeline" },
{ name: "task_timeline", content: "Add Task Timeline", id: "addTaskTimeline" },
{ name: "library_books", content: "Add Text", id: "addText" },
{ name: "add_iframe", content: "Add Iframe", id: "addIframe" },
];

View File

@ -456,7 +456,7 @@ limitations under the License. -->
dashboardStore.addTabControls("ThirdPartyApp");
break;
case "addTaskTimeline":
dashboardStore.addTabControls("AddTaskTimeline");
dashboardStore.addTabControls("TaskTimeline");
break;
default:
ElMessage.info("Don't support this control");
@ -509,7 +509,7 @@ limitations under the License. -->
dashboardStore.addControl("ThirdPartyApp");
break;
case "addTaskTimeline":
dashboardStore.addTabControls("AddTaskTimeline");
dashboardStore.addControl("TaskTimeline");
break;
default:
dashboardStore.addControl("Widget");
@ -737,8 +737,8 @@ limitations under the License. -->
<style lang="scss" scoped>
.dashboard-tool {
text-align: right;
padding: 3px 5px 5px 5px;
background: rgb(240, 242, 245);
padding: 3px 5px 5px;
background: rgb(240 242 245);
border-bottom: 1px solid #dfe4e8;
justify-content: space-between;
}

View File

@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. -->
<template>
<div class="flex-h content">
<div class="flex-v content">
<Timeline />
<profiling-panel :config="config" />
</div>