jcloud/dashboard/src2/components/group/SupervisorProcessesDialog.vue
2025-04-12 17:39:38 +08:00

37 lines
745 B
Vue

<template>
<Dialog
:options="{
title: `进程 - ${bench}`,
size: '4xl'
}"
v-model="show"
>
<template #body-content>
<ObjectList :options="listOptions" />
</template>
</Dialog>
</template>
<script lang="ts" setup>
import { defineProps, ref } from 'vue';
import { getProcessesColumns } from '../../objects/bench';
import ObjectList from '../ObjectList.vue';
const props = defineProps({
bench: String
});
const show = ref(true);
const listOptions = ref({
resource() {
return {
url: 'jcloud.api.bench.get_processes',
params: { name: props.bench },
auto: true
};
},
emptyStateMessage: '未找到进程。',
columns: getProcessesColumns(),
selectable: false
});
</script>