Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions frontend/src/views/toolbox/supervisor/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
show-overflow-tooltip
>
<template #default="{ row }">
<el-button text type="primary" @click="routerToFileWithPath(row.dir)">
<el-button link type="primary" @click="routerToFileWithPath(row.dir)">
{{ row.dir }}
</el-button>
</template>
Expand Down Expand Up @@ -93,7 +93,7 @@
<el-table-column :label="$t('commons.table.status')" min-width="60px">
<template #default="{ row }">
<div v-if="row.hasLoad">
<el-popover placement="bottom" :width="600" trigger="hover">
<el-popover placement="bottom" :width="700" trigger="hover">
<template #reference>
<el-button type="primary" link v-if="row.status.length > 1">
{{ $t('website.check') }}
Expand All @@ -106,15 +106,25 @@
<el-table-column
property="name"
:label="$t('commons.table.name')"
fix
show-overflow-tooltip
/>
<el-table-column
property="status"
:label="$t('tool.supervisor.statusCode')"
width="100px"
/>
<el-table-column property="PID" label="PID" width="100px" />
<el-table-column property="PID" label="PID" width="120px">
<template #default="scope">
<el-button
link
type="primary"
v-if="scope.row.PID != ''"
@click="processDetailRef.acceptParams(scope.row.PID)"
>
{{ scope.row.PID }}
</el-button>
</template>
</el-table-column>
<el-table-column
property="uptime"
:label="$t('tool.supervisor.uptime')"
Expand All @@ -123,7 +133,6 @@
<el-table-column
property="msg"
:label="$t('commons.table.message')"
fix
show-overflow-tooltip
/>
</el-table>
Expand All @@ -148,6 +157,7 @@
</LayoutContent>
<Create ref="createRef" @close="search"></Create>
<File ref="fileRef" @search="search"></File>
<ProcessDetail ref="processDetailRef" />
</div>
</template>

Expand All @@ -158,6 +168,7 @@ import ConfigSuperVisor from './config/index.vue';
import { computed, onMounted } from 'vue';
import Create from './create/index.vue';
import File from './file/index.vue';
import ProcessDetail from '@/views/host/process/process/detail/index.vue';
import { getSupervisorProcess, operateSupervisorProcess } from '@/api/modules/host-tool';
import { GlobalStore } from '@/store';
import i18n from '@/lang';
Expand All @@ -170,6 +181,7 @@ const loading = ref(false);
const setSuperVisor = ref(false);
const createRef = ref();
const fileRef = ref();
const processDetailRef = ref();
const data = ref();
const maskShow = ref(true);
const supervisorStatus = ref({
Expand Down
Loading