⬆️ 升级 axios 版本.
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
<!-- 执行命令 -->
|
||||
<a-button v-permission="['asset:exec-command:exec']"
|
||||
type="primary"
|
||||
@click="$router.push({ name: 'execCommand' })">
|
||||
@click="router.push({ name: 'execCommand' })">
|
||||
执行命令
|
||||
<template #icon>
|
||||
<icon-thunderbolt />
|
||||
@@ -217,7 +217,7 @@
|
||||
getExecCommandLogStatus
|
||||
} from '@/api/exec/exec-command-log';
|
||||
import { Message } from '@arco-design/web-vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
import { useRoute, useRouter } from 'vue-router';
|
||||
import useLoading from '@/hooks/loading';
|
||||
import { tableColumns } from '../types/table.columns';
|
||||
import { ExecStatus, execStatusKey } from '@/components/exec/log/const';
|
||||
@@ -232,6 +232,7 @@
|
||||
const emits = defineEmits(['viewCommand', 'viewParams', 'viewLog', 'openClear']);
|
||||
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
const pagination = useTablePagination();
|
||||
const rowSelection = useRowSelection();
|
||||
const expandable = useExpandable();
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
:unchecked-text="getDictValue(execJobStatusKey, ExecJobStatus.DISABLED)"
|
||||
:checked-value="ExecJobStatus.ENABLED"
|
||||
:unchecked-value="ExecJobStatus.DISABLED"
|
||||
:before-change="(s: number) => updateStatus(record.id, s)" />
|
||||
:before-change="(s) => updateStatus(record.id, s as number)" />
|
||||
<!-- 状态 不可编辑 -->
|
||||
<a-tag v-else :color="getDictValue(execJobStatusKey, record.status, 'color')">
|
||||
{{ getDictValue(execJobStatusKey, record.status) }}
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
<!-- 上传 -->
|
||||
<a-button v-permission="['asset:upload-task:upload']"
|
||||
type="primary"
|
||||
@click="$router.push({ name: 'batchUpload' })">
|
||||
@click="router.push({ name: 'batchUpload' })">
|
||||
上传
|
||||
<template #icon>
|
||||
<icon-upload />
|
||||
@@ -140,7 +140,7 @@
|
||||
<a-button v-permission="['asset:upload-task:query']"
|
||||
type="text"
|
||||
size="mini"
|
||||
@click="$router.push({ name: 'batchUpload', query: { id: record.id } })">
|
||||
@click="router.push({ name: 'batchUpload', query: { id: record.id } })">
|
||||
详情
|
||||
</a-button>
|
||||
<!-- 取消 -->
|
||||
@@ -190,10 +190,12 @@
|
||||
import { useTablePagination, useRowSelection } from '@/hooks/table';
|
||||
import { useDictStore } from '@/store';
|
||||
import { copy } from '@/hooks/copy';
|
||||
import { useRouter } from 'vue-router';
|
||||
import UserSelector from '@/components/user/user/selector/index.vue';
|
||||
|
||||
const emits = defineEmits(['openClear']);
|
||||
|
||||
const router = useRouter();
|
||||
const pagination = useTablePagination();
|
||||
const rowSelection = useRowSelection();
|
||||
const { loading, setLoading } = useLoading();
|
||||
|
||||
Reference in New Issue
Block a user