mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-13 08:17:33 +00:00
feat: update
This commit is contained in:
parent
d7bc79310d
commit
0b8f40bab5
@ -20,11 +20,11 @@ import graphql from "@/graphql";
|
|||||||
import type { AxiosResponse } from "axios";
|
import type { AxiosResponse } from "axios";
|
||||||
import type { EBPFTaskList } from "@/types/ebpf";
|
import type { EBPFTaskList } from "@/types/ebpf";
|
||||||
import { useNetworkProfilingStore } from "@/store/modules/network-profiling";
|
import { useNetworkProfilingStore } from "@/store/modules/network-profiling";
|
||||||
// import { EBPFProfilingTriggerType } from "../data";
|
|
||||||
|
|
||||||
interface taskTimelineState {
|
interface taskTimelineState {
|
||||||
loading: boolean;
|
loading: boolean;
|
||||||
taskList: EBPFTaskList[];
|
taskList: EBPFTaskList[];
|
||||||
|
selectedTask: Recordable<EBPFTaskList>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const taskTimelineStore = defineStore({
|
export const taskTimelineStore = defineStore({
|
||||||
@ -32,8 +32,12 @@ export const taskTimelineStore = defineStore({
|
|||||||
state: (): taskTimelineState => ({
|
state: (): taskTimelineState => ({
|
||||||
loading: false,
|
loading: false,
|
||||||
taskList: [],
|
taskList: [],
|
||||||
|
selectedTask: {},
|
||||||
}),
|
}),
|
||||||
actions: {
|
actions: {
|
||||||
|
setSelectedTask(task: Recordable<EBPFTaskList>) {
|
||||||
|
this.selectedTask = task || {};
|
||||||
|
},
|
||||||
async getContinousTaskList(params: {
|
async getContinousTaskList(params: {
|
||||||
serviceId: string;
|
serviceId: string;
|
||||||
serviceInstanceId: string;
|
serviceInstanceId: string;
|
||||||
|
@ -32,7 +32,7 @@ limitations under the License. -->
|
|||||||
defineProps({
|
defineProps({
|
||||||
config: {
|
config: {
|
||||||
type: Object as PropType<any>,
|
type: Object as PropType<any>,
|
||||||
default: () => ({ graph: {} }),
|
default: () => ({}),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -34,7 +34,7 @@ limitations under the License. -->
|
|||||||
defineProps({
|
defineProps({
|
||||||
config: {
|
config: {
|
||||||
type: Object as PropType<any>,
|
type: Object as PropType<any>,
|
||||||
default: () => ({ graph: {} }),
|
default: () => ({}),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const networkProfilingStore = useNetworkProfilingStore();
|
const networkProfilingStore = useNetworkProfilingStore();
|
||||||
|
@ -27,7 +27,7 @@ limitations under the License. -->
|
|||||||
defineProps({
|
defineProps({
|
||||||
config: {
|
config: {
|
||||||
type: Object as PropType<any>,
|
type: Object as PropType<any>,
|
||||||
default: () => ({ graph: {} }),
|
default: () => ({}),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@ -22,7 +22,7 @@ limitations under the License. -->
|
|||||||
defineProps({
|
defineProps({
|
||||||
config: {
|
config: {
|
||||||
type: Object as PropType<any>,
|
type: Object as PropType<any>,
|
||||||
default: () => ({ graph: {} }),
|
default: () => ({}),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user