Browse Source

feat: 进程守护增加运行目录跳转 (#5088)

Refs #4953
pull/5092/head
ssongliu 6 months ago committed by GitHub
parent
commit
4dc722b83c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 17
      frontend/src/views/toolbox/supervisor/index.vue

17
frontend/src/views/toolbox/supervisor/index.vue

@ -33,13 +33,11 @@
fix
show-overflow-tooltip
></el-table-column>
<el-table-column
:label="$t('tool.supervisor.dir')"
prop="dir"
min-width="100px"
fix
show-overflow-tooltip
></el-table-column>
<el-table-column :label="$t('tool.supervisor.dir')" prop="dir" min-width="100px" fix>
<template #default="{ row }">
<Tooltip @click="toFolder(row.dir)" :text="row.dir" />
</template>
</el-table-column>
<el-table-column
:label="$t('tool.supervisor.user')"
prop="user"
@ -161,6 +159,7 @@ import i18n from '@/lang';
import { HostTool } from '@/api/interface/host-tool';
import { MsgSuccess } from '@/utils/message';
import { VideoPlay, VideoPause, RefreshRight } from '@element-plus/icons-vue';
import router from '@/routers';
const globalStore = GlobalStore();
const loading = ref(false);
@ -186,6 +185,10 @@ const getStatus = (status: any) => {
search();
};
const toFolder = (folder: string) => {
router.push({ path: '/hosts/files', query: { path: folder } });
};
const showStopped = computed((): boolean => {
if (supervisorStatus.value.init || setSuperVisor.value) {
return false;

Loading…
Cancel
Save