feat: update

This commit is contained in:
Fine 2023-06-01 15:58:14 +08:00
parent b2cbc4f9f8
commit c0427ca30e
4 changed files with 9 additions and 7 deletions

View File

@ -155,9 +155,9 @@ export const continousProfilingStore = defineStore({
this.selectedTask = {}; this.selectedTask = {};
return; return;
} }
this.selectedTask = this.taskList[0] || {}; // this.selectedTask = this.taskList[0] || {};
this.setselectedTask(this.selectedTask); // this.setselectedTask(this.selectedTask);
await this.getGraphData(); // await this.getGraphData();
return res.data; return res.data;
}, },
async getGraphData() { async getGraphData() {

View File

@ -167,6 +167,7 @@ export const EntityType = [
}, },
{ value: "EndpointRelation", label: "Endpoint Relation", key: 4 }, { value: "EndpointRelation", label: "Endpoint Relation", key: 4 },
{ value: "ProcessRelation", label: "Process Relation", key: 5 }, { value: "ProcessRelation", label: "Process Relation", key: 5 },
{ value: "Process", label: "Process Relation", key: 3 },
]; ];
export const ListEntity: any = { export const ListEntity: any = {
InstanceList: EntityType[3].value, InstanceList: EntityType[3].value,

View File

@ -18,14 +18,14 @@ limitations under the License. -->
<PolicyList /> <PolicyList />
<TaskList /> <TaskList />
</div> </div>
<GraphPanel :config="config" /> <Panel :config="config" />
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import type { PropType } from "vue"; import type { PropType } from "vue";
import PolicyList from "./components/PolicyList.vue"; import PolicyList from "./components/PolicyList.vue";
import TaskList from "./components/TaskList.vue"; import TaskList from "./components/TaskList.vue";
import GraphPanel from "./components/GraphPanel.vue"; import Panel from "./components/Panel.vue";
/*global defineProps */ /*global defineProps */
defineProps({ defineProps({

View File

@ -35,7 +35,7 @@ limitations under the License. -->
@change="changeProcess" @change="changeProcess"
/> />
</div> </div>
<div v-if="continousProfilingStore.selectedStrategy.type" class="vis-graph"> <div v-if="continousProfilingStore.selectedTask.taskId" class="vis-graph">
<div <div
class="graph-topology ml-5" class="graph-topology ml-5"
v-loading="networkProfilingStore.loadNodes" v-loading="networkProfilingStore.loadNodes"
@ -55,6 +55,7 @@ limitations under the License. -->
</div> </div>
</div> </div>
</div> </div>
<!-- <div v-else> dashboard </div> -->
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
@ -120,7 +121,7 @@ limitations under the License. -->
} }
.selector { .selector {
width: 220px; width: 300px;
} }
.vis-graph { .vis-graph {