🚧 批量上传.
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
<a-link target="_blank" :href="`https://github.com/lijiahangmax/orion-ops-pro/releases/tag/v${version}`">v{{ version }} 开源版</a-link>
|
||||
</a-space>
|
||||
<span class="copyright">
|
||||
Copyright<icon-copyright /> 2024 Li Jiahang All rights reserved.
|
||||
</span>
|
||||
Copyright<icon-copyright /> {{ new Date().getFullYear() }} Li Jiahang All rights reserved.
|
||||
</span>
|
||||
</a-space>
|
||||
</a-layout-footer>
|
||||
</template>
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
import useLoading from '@/hooks/loading';
|
||||
import { nextTick, ref } from 'vue';
|
||||
import { getExecCommandLog } from '@/api/exec/exec-command-log';
|
||||
import { getExecJobLog } from '@/api/exec/exec-job-log';
|
||||
import { getExecJobLog } from '@/api/job/exec-job-log';
|
||||
import ExecLogPanel from '../panel/index.vue';
|
||||
|
||||
const props = defineProps<{
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
import type { ExecType } from '../const';
|
||||
import { onUnmounted, ref, nextTick, onMounted } from 'vue';
|
||||
import { getExecCommandLogStatus } from '@/api/exec/exec-command-log';
|
||||
import { getExecJobLogStatus } from '@/api/exec/exec-job-log';
|
||||
import { getExecJobLogStatus } from '@/api/job/exec-job-log';
|
||||
import { dictKeys, execHostStatus, execStatus } from '../const';
|
||||
import { useDictStore } from '@/store';
|
||||
import ExecHost from './exec-host.vue';
|
||||
|
||||
@@ -2,11 +2,10 @@ import type { ILogAppender, LogAddons, LogAppenderConf, LogDomRef } from './appe
|
||||
import { LogAppenderOptions } from './appender-const';
|
||||
import type { ExecType } from '../const';
|
||||
import type { ExecLogTailRequest } from '@/api/exec/exec-log';
|
||||
import { openExecLogChannel } from '@/api/exec/exec-log';
|
||||
import { getExecCommandLogTailToken } from '@/api/exec/exec-command-log';
|
||||
import { getExecJobLogTailToken } from '@/api/exec/exec-job-log';
|
||||
import { webSocketBaseUrl } from '@/utils/env';
|
||||
import { getExecJobLogTailToken } from '@/api/job/exec-job-log';
|
||||
import { Message } from '@arco-design/web-vue';
|
||||
import { createWebSocket } from '@/utils';
|
||||
import { useDebounceFn } from '@vueuse/core';
|
||||
import { addEventListen, removeEventListen } from '@/utils/event';
|
||||
import { copy as copyText } from '@/hooks/copy';
|
||||
@@ -158,7 +157,7 @@ export default class LogAppender implements ILogAppender {
|
||||
const { data } = await tokenMaker;
|
||||
// 打开会话
|
||||
try {
|
||||
this.client = await createWebSocket(`${webSocketBaseUrl}/exec/log/${data}`);
|
||||
this.client = await openExecLogChannel(data);
|
||||
} catch (e) {
|
||||
Message.error('连接失败');
|
||||
console.error('log error', e);
|
||||
|
||||
@@ -174,7 +174,7 @@
|
||||
import { formatDuration } from '@/utils';
|
||||
import { useDictStore } from '@/store';
|
||||
import { downloadExecCommandLogFile } from '@/api/exec/exec-command-log';
|
||||
import { downloadExecJobLogFile } from '@/api/exec/exec-job-log';
|
||||
import { downloadExecJobLogFile } from '@/api/job/exec-job-log';
|
||||
import { downloadFile } from '@/utils/file';
|
||||
import XtermSearchModal from '@/components/xtrem/search-modal/index.vue';
|
||||
import 'xterm/css/xterm.css';
|
||||
|
||||
Reference in New Issue
Block a user