🎨 修改批量执行模块格式.

This commit is contained in:
lijiahangmax
2024-04-11 00:21:42 +08:00
parent bcef835de3
commit ac6ccd5830
10 changed files with 24 additions and 121 deletions

View File

@@ -15,7 +15,7 @@
<script lang="ts" setup>
import { onMounted, ref, nextTick } from 'vue';
import { useRoute } from 'vue-router';
import { getExecLog } from '@/api/exec/exec-log';
import { getExecCommandLog } from '@/api/exec/exec-command-log';
import ExecLogPanel from '@/components/exec/log/panel/index.vue';
const route = useRoute();
@@ -24,7 +24,7 @@
// 初始化
const init = async (id: number) => {
// 获取执行日志
const { data } = await getExecLog(id);
const { data } = await getExecCommandLog(id);
// 打开日志
await nextTick(() => {
setTimeout(() => {

View File

@@ -110,8 +110,8 @@
import { useDictStore } from '@/store';
import { useExpandable } from '@/types/table';
import { dateFormat, formatDuration } from '@/utils';
import { downloadExecLogFile } from '@/api/exec/exec';
import { interruptHostExecCommand } from '@/api/exec/exec-command';
import { downloadExecCommandLogFile } from '@/api/exec/exec-command-log';
import { copy } from '@/hooks/copy';
import { downloadFile } from '@/utils/file';
@@ -127,7 +127,7 @@
// 下载文件
const downloadLogFile = async (id: number) => {
const data = await downloadExecLogFile(id);
const data = await downloadExecCommandLogFile(id);
downloadFile(data);
};