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", "NetworkProfiling",
"ThirdPartyApp", "ThirdPartyApp",
"ContinuousProfiling", "ContinuousProfiling",
"AddTaskTimeline", "TaskTimeline",
]; ];
export enum EBPFProfilingTriggerType { export enum EBPFProfilingTriggerType {
FIXED_TIME = "FIXED_TIME", FIXED_TIME = "FIXED_TIME",

View File

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

View File

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

View File

@ -238,7 +238,7 @@ export const EndpointTools = [
export const ProcessTools = [ export const ProcessTools = [
{ name: "playlist_add", content: "Add Widget", id: "addWidget" }, { name: "playlist_add", content: "Add Widget", id: "addWidget" },
{ name: "all_inbox", content: "Add Tabs", id: "addTab" }, { 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: "library_books", content: "Add Text", id: "addText" },
{ name: "add_iframe", content: "Add Iframe", id: "addIframe" }, { name: "add_iframe", content: "Add Iframe", id: "addIframe" },
]; ];

View File

@ -456,7 +456,7 @@ limitations under the License. -->
dashboardStore.addTabControls("ThirdPartyApp"); dashboardStore.addTabControls("ThirdPartyApp");
break; break;
case "addTaskTimeline": case "addTaskTimeline":
dashboardStore.addTabControls("AddTaskTimeline"); dashboardStore.addTabControls("TaskTimeline");
break; break;
default: default:
ElMessage.info("Don't support this control"); ElMessage.info("Don't support this control");
@ -509,7 +509,7 @@ limitations under the License. -->
dashboardStore.addControl("ThirdPartyApp"); dashboardStore.addControl("ThirdPartyApp");
break; break;
case "addTaskTimeline": case "addTaskTimeline":
dashboardStore.addTabControls("AddTaskTimeline"); dashboardStore.addControl("TaskTimeline");
break; break;
default: default:
dashboardStore.addControl("Widget"); dashboardStore.addControl("Widget");
@ -737,8 +737,8 @@ limitations under the License. -->
<style lang="scss" scoped> <style lang="scss" scoped>
.dashboard-tool { .dashboard-tool {
text-align: right; text-align: right;
padding: 3px 5px 5px 5px; padding: 3px 5px 5px;
background: rgb(240, 242, 245); background: rgb(240 242 245);
border-bottom: 1px solid #dfe4e8; border-bottom: 1px solid #dfe4e8;
justify-content: space-between; 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 See the License for the specific language governing permissions and
limitations under the License. --> limitations under the License. -->
<template> <template>
<div class="flex-h content"> <div class="flex-v content">
<Timeline /> <Timeline />
<profiling-panel :config="config" /> <profiling-panel :config="config" />
</div> </div>