⚡ 修改包结构.
This commit is contained in:
@@ -1,18 +1,18 @@
|
|||||||
spring:
|
spring:
|
||||||
datasource:
|
datasource:
|
||||||
druid:
|
druid:
|
||||||
url: jdbc:mysql://116.62.194.246:3306/orion_visor?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=Asia/Shanghai&autoReconnect=true
|
url: jdbc:mysql://127.0.0.1:3306/orion_visor?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=Asia/Shanghai&autoReconnect=true
|
||||||
username: root
|
username: root
|
||||||
password: Orionsec@123456
|
password: Data@123456
|
||||||
initial-size: 0
|
initial-size: 0
|
||||||
min-idle: 1
|
min-idle: 1
|
||||||
max-active: 5
|
max-active: 5
|
||||||
stat-view-servlet:
|
stat-view-servlet:
|
||||||
enabled: false
|
enabled: false
|
||||||
redis:
|
redis:
|
||||||
host: 116.62.194.246
|
host: 127.0.0.1
|
||||||
port: 6379
|
port: 6379
|
||||||
password: Orionsec@123456
|
password: Data@123456
|
||||||
redisson:
|
redisson:
|
||||||
threads: 2
|
threads: 2
|
||||||
netty-threads: 2
|
netty-threads: 2
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import type {
|
|||||||
ExecLogQueryResponse,
|
ExecLogQueryResponse,
|
||||||
ExecLogStatusResponse,
|
ExecLogStatusResponse,
|
||||||
ExecLogTailRequest
|
ExecLogTailRequest
|
||||||
} from '../exec/exec-log';
|
} from './exec-log';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import qs from 'query-string';
|
import qs from 'query-string';
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
import useLoading from '@/hooks/loading';
|
import useLoading from '@/hooks/loading';
|
||||||
import { nextTick, ref } from 'vue';
|
import { nextTick, ref } from 'vue';
|
||||||
import { getExecCommandLog } from '@/api/exec/exec-command-log';
|
import { getExecCommandLog } from '@/api/exec/exec-command-log';
|
||||||
import { getExecJobLog } from '@/api/job/exec-job-log';
|
import { getExecJobLog } from '@/api/exec/exec-job-log';
|
||||||
import ExecLogPanel from '../panel/index.vue';
|
import ExecLogPanel from '../panel/index.vue';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
import type { ExecType, ILogAppender } from '../const';
|
import type { ExecType, ILogAppender } from '../const';
|
||||||
import { onUnmounted, ref, nextTick, onMounted } from 'vue';
|
import { onUnmounted, ref, nextTick, onMounted } from 'vue';
|
||||||
import { getExecCommandLogStatus } from '@/api/exec/exec-command-log';
|
import { getExecCommandLogStatus } from '@/api/exec/exec-command-log';
|
||||||
import { getExecJobLogStatus } from '@/api/job/exec-job-log';
|
import { getExecJobLogStatus } from '@/api/exec/exec-job-log';
|
||||||
import { dictKeys, execHostStatus, execStatus } from '../const';
|
import { dictKeys, execHostStatus, execStatus } from '../const';
|
||||||
import { useDictStore } from '@/store';
|
import { useDictStore } from '@/store';
|
||||||
import ExecHost from './exec-host.vue';
|
import ExecHost from './exec-host.vue';
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import type { XtermAddons } from '@/types/xterm';
|
|||||||
import type { ExecLogTailRequest } from '@/api/exec/exec-log';
|
import type { ExecLogTailRequest } from '@/api/exec/exec-log';
|
||||||
import { openExecLogChannel } from '@/api/exec/exec-log';
|
import { openExecLogChannel } from '@/api/exec/exec-log';
|
||||||
import { getExecCommandLogTailToken } from '@/api/exec/exec-command-log';
|
import { getExecCommandLogTailToken } from '@/api/exec/exec-command-log';
|
||||||
import { getExecJobLogTailToken } from '@/api/job/exec-job-log';
|
import { getExecJobLogTailToken } from '@/api/exec/exec-job-log';
|
||||||
import { Message } from '@arco-design/web-vue';
|
import { Message } from '@arco-design/web-vue';
|
||||||
import { useDebounceFn } from '@vueuse/core';
|
import { useDebounceFn } from '@vueuse/core';
|
||||||
import { addEventListen, removeEventListen } from '@/utils/event';
|
import { addEventListen, removeEventListen } from '@/utils/event';
|
||||||
|
|||||||
@@ -173,7 +173,7 @@
|
|||||||
import { formatDuration } from '@/utils';
|
import { formatDuration } from '@/utils';
|
||||||
import { useDictStore } from '@/store';
|
import { useDictStore } from '@/store';
|
||||||
import { downloadExecCommandLogFile } from '@/api/exec/exec-command-log';
|
import { downloadExecCommandLogFile } from '@/api/exec/exec-command-log';
|
||||||
import { downloadExecJobLogFile } from '@/api/job/exec-job-log';
|
import { downloadExecJobLogFile } from '@/api/exec/exec-job-log';
|
||||||
import { downloadFile } from '@/utils/file';
|
import { downloadFile } from '@/utils/file';
|
||||||
import XtermSearchModal from '@/components/xterm/search-modal/index.vue';
|
import XtermSearchModal from '@/components/xterm/search-modal/index.vue';
|
||||||
import '@xterm/xterm/css/xterm.css';
|
import '@xterm/xterm/css/xterm.css';
|
||||||
|
|||||||
@@ -10,12 +10,12 @@ const JOB: AppRouteRecordRaw[] = [
|
|||||||
{
|
{
|
||||||
name: 'execJob',
|
name: 'execJob',
|
||||||
path: '/exec-job',
|
path: '/exec-job',
|
||||||
component: () => import('@/views/job/exec-job/index.vue'),
|
component: () => import('@/views/exec/exec-job/index.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'execJobLog',
|
name: 'execJobLog',
|
||||||
path: '/exec-job-log',
|
path: '/exec-job-log',
|
||||||
component: () => import('@/views/job/exec-job-log/index.vue'),
|
component: () => import('@/views/exec/exec-job-log/index.vue'),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -27,7 +27,7 @@ const JOB: AppRouteRecordRaw[] = [
|
|||||||
{
|
{
|
||||||
name: 'execJobLogView',
|
name: 'execJobLogView',
|
||||||
path: '/job-log-view',
|
path: '/job-log-view',
|
||||||
component: () => import('@/views/job/exec-job-log-view/index.vue'),
|
component: () => import('@/views/exec/exec-job-log-view/index.vue'),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import { getHostGroupTree } from '@/api/asset/host-group';
|
|||||||
import { getMenuList } from '@/api/system/menu';
|
import { getMenuList } from '@/api/system/menu';
|
||||||
import { getCurrentAuthorizedHostIdentity, getCurrentAuthorizedHostKey } from '@/api/asset/asset-authorized-data';
|
import { getCurrentAuthorizedHostIdentity, getCurrentAuthorizedHostKey } from '@/api/asset/asset-authorized-data';
|
||||||
import { getCommandSnippetGroupList } from '@/api/asset/command-snippet-group';
|
import { getCommandSnippetGroupList } from '@/api/asset/command-snippet-group';
|
||||||
import { getExecJobList } from '@/api/job/exec-job';
|
import { getExecJobList } from '@/api/exec/exec-job';
|
||||||
import { getPathBookmarkGroupList } from '@/api/asset/path-bookmark-group';
|
import { getPathBookmarkGroupList } from '@/api/asset/path-bookmark-group';
|
||||||
import { getCommandSnippetList } from '@/api/asset/command-snippet';
|
import { getCommandSnippetList } from '@/api/asset/command-snippet';
|
||||||
import { getPathBookmarkList } from '@/api/asset/path-bookmark';
|
import { getPathBookmarkList } from '@/api/asset/path-bookmark';
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { onMounted, ref, nextTick } from 'vue';
|
import { onMounted, ref, nextTick } from 'vue';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
import { getExecJobLog } from '@/api/job/exec-job-log';
|
import { getExecJobLog } from '@/api/exec/exec-job-log';
|
||||||
import ExecLogPanel from '@/components/exec/log/panel/index.vue';
|
import ExecLogPanel from '@/components/exec/log/panel/index.vue';
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
@@ -102,14 +102,14 @@
|
|||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { ExecLogQueryResponse, ExecHostLogQueryResponse } from '@/api/exec/exec-log';
|
import type { ExecLogQueryResponse, ExecHostLogQueryResponse } from '@/api/exec/exec-log';
|
||||||
import { deleteExecJobHostLog, interruptHostExecJob } from '@/api/job/exec-job-log';
|
import { deleteExecJobHostLog, interruptHostExecJob } from '@/api/exec/exec-job-log';
|
||||||
import { execHostStatusKey, execHostStatus } from '@/components/exec/log/const';
|
import { execHostStatusKey, execHostStatus } from '@/components/exec/log/const';
|
||||||
import { useDictStore } from '@/store';
|
import { useDictStore } from '@/store';
|
||||||
import useLoading from '@/hooks/loading';
|
import useLoading from '@/hooks/loading';
|
||||||
import columns from '@/views/exec/exec-command-log/types/host-table.columns';
|
import columns from '@/views/exec/exec-command-log/types/host-table.columns';
|
||||||
import { useExpandable } from '@/hooks/table';
|
import { useExpandable } from '@/hooks/table';
|
||||||
import { dateFormat, formatDuration } from '@/utils';
|
import { dateFormat, formatDuration } from '@/utils';
|
||||||
import { downloadExecJobLogFile } from '@/api/job/exec-job-log';
|
import { downloadExecJobLogFile } from '@/api/exec/exec-job-log';
|
||||||
import { copy } from '@/hooks/copy';
|
import { copy } from '@/hooks/copy';
|
||||||
import { downloadFile } from '@/utils/file';
|
import { downloadFile } from '@/utils/file';
|
||||||
import { Message } from '@arco-design/web-vue';
|
import { Message } from '@arco-design/web-vue';
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
import useLoading from '@/hooks/loading';
|
import useLoading from '@/hooks/loading';
|
||||||
import useVisible from '@/hooks/visible';
|
import useVisible from '@/hooks/visible';
|
||||||
import { execStatusKey } from '@/components/exec/log/const';
|
import { execStatusKey } from '@/components/exec/log/const';
|
||||||
import { getExecJobLogCount, clearExecJobLog } from '@/api/job/exec-job-log';
|
import { getExecJobLogCount, clearExecJobLog } from '@/api/exec/exec-job-log';
|
||||||
import { Message, Modal } from '@arco-design/web-vue';
|
import { Message, Modal } from '@arco-design/web-vue';
|
||||||
import { useDictStore } from '@/store';
|
import { useDictStore } from '@/store';
|
||||||
import { maxClearLimit } from '../types/const';
|
import { maxClearLimit } from '../types/const';
|
||||||
@@ -198,7 +198,7 @@
|
|||||||
getExecJobHostLogList,
|
getExecJobHostLogList,
|
||||||
getExecJobLogPage,
|
getExecJobLogPage,
|
||||||
getExecJobLogStatus
|
getExecJobLogStatus
|
||||||
} from '@/api/job/exec-job-log';
|
} from '@/api/exec/exec-job-log';
|
||||||
import { Message } from '@arco-design/web-vue';
|
import { Message } from '@arco-design/web-vue';
|
||||||
import useLoading from '@/hooks/loading';
|
import useLoading from '@/hooks/loading';
|
||||||
import columns from '../types/table.columns';
|
import columns from '../types/table.columns';
|
||||||
@@ -206,7 +206,7 @@
|
|||||||
import { useExpandable, useTablePagination, useRowSelection } from '@/hooks/table';
|
import { useExpandable, useTablePagination, useRowSelection } from '@/hooks/table';
|
||||||
import { useDictStore } from '@/store';
|
import { useDictStore } from '@/store';
|
||||||
import { dateFormat, formatDuration } from '@/utils';
|
import { dateFormat, formatDuration } from '@/utils';
|
||||||
import { interruptExecJob } from '@/api/job/exec-job-log';
|
import { interruptExecJob } from '@/api/exec/exec-job-log';
|
||||||
import ExecJobHostLogTable from './exec-job-host-log-table.vue';
|
import ExecJobHostLogTable from './exec-job-host-log-table.vue';
|
||||||
|
|
||||||
const emits = defineEmits(['viewCommand', 'viewParams', 'viewLog', 'openClear']);
|
const emits = defineEmits(['viewCommand', 'viewParams', 'viewLog', 'openClear']);
|
||||||
@@ -97,14 +97,14 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { ExecJobQueryResponse } from '@/api/job/exec-job';
|
import type { ExecJobQueryResponse } from '@/api/exec/exec-job';
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import useLoading from '@/hooks/loading';
|
import useLoading from '@/hooks/loading';
|
||||||
import useVisible from '@/hooks/visible';
|
import useVisible from '@/hooks/visible';
|
||||||
import { useDictStore } from '@/store';
|
import { useDictStore } from '@/store';
|
||||||
import { dateFormat } from '@/utils';
|
import { dateFormat } from '@/utils';
|
||||||
import { copy } from '@/hooks/copy';
|
import { copy } from '@/hooks/copy';
|
||||||
import { getExecJob } from '@/api/job/exec-job';
|
import { getExecJob } from '@/api/exec/exec-job';
|
||||||
import { EnabledStatus } from '@/types/const';
|
import { EnabledStatus } from '@/types/const';
|
||||||
import { execJobStatusKey } from '../types/const';
|
import { execJobStatusKey } from '../types/const';
|
||||||
|
|
||||||
@@ -192,7 +192,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { ExecJobUpdateRequest } from '@/api/job/exec-job';
|
import type { ExecJobUpdateRequest } from '@/api/exec/exec-job';
|
||||||
import type { ExecTemplateQueryResponse } from '@/api/exec/exec-template';
|
import type { ExecTemplateQueryResponse } from '@/api/exec/exec-template';
|
||||||
import type { TemplateParam } from '@/components/view/exec-editor/const';
|
import type { TemplateParam } from '@/components/view/exec-editor/const';
|
||||||
import { onUnmounted, ref } from 'vue';
|
import { onUnmounted, ref } from 'vue';
|
||||||
@@ -200,7 +200,7 @@
|
|||||||
import useVisible from '@/hooks/visible';
|
import useVisible from '@/hooks/visible';
|
||||||
import formRules from '../types/form.rules';
|
import formRules from '../types/form.rules';
|
||||||
import { jobBuiltinParams } from '../types/const';
|
import { jobBuiltinParams } from '../types/const';
|
||||||
import { createExecJob, getExecJob, updateExecJob } from '@/api/job/exec-job';
|
import { createExecJob, getExecJob, updateExecJob } from '@/api/exec/exec-job';
|
||||||
import { getExecTemplateWithAuthorized } from '@/api/exec/exec-template';
|
import { getExecTemplateWithAuthorized } from '@/api/exec/exec-template';
|
||||||
import { Message } from '@arco-design/web-vue';
|
import { Message } from '@arco-design/web-vue';
|
||||||
import { EnabledStatus } from '@/types/const';
|
import { EnabledStatus } from '@/types/const';
|
||||||
@@ -189,9 +189,9 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { ExecJobQueryRequest, ExecJobQueryResponse } from '@/api/job/exec-job';
|
import type { ExecJobQueryRequest, ExecJobQueryResponse } from '@/api/exec/exec-job';
|
||||||
import { reactive, ref, onMounted } from 'vue';
|
import { reactive, ref, onMounted } from 'vue';
|
||||||
import { deleteExecJob, batchDeleteExecJob, getExecJobPage, triggerExecJob, updateExecJobStatus } from '@/api/job/exec-job';
|
import { deleteExecJob, batchDeleteExecJob, getExecJobPage, triggerExecJob, updateExecJobStatus } from '@/api/exec/exec-job';
|
||||||
import { Message } from '@arco-design/web-vue';
|
import { Message } from '@arco-design/web-vue';
|
||||||
import usePermission from '@/hooks/permission';
|
import usePermission from '@/hooks/permission';
|
||||||
import useLoading from '@/hooks/loading';
|
import useLoading from '@/hooks/loading';
|
||||||
Reference in New Issue
Block a user