修改配置.
This commit is contained in:
3764
orion-ops-ui/pnpm-lock.yaml
generated
3764
orion-ops-ui/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,6 @@
|
||||
import axios from 'axios';
|
||||
import { DataGrid, Pagination } from '@/types/global';
|
||||
import { TableData } from '@arco-design/web-vue/es/table/interface';
|
||||
|
||||
/**
|
||||
* 主机身份创建请求
|
||||
@@ -33,7 +34,7 @@ export interface HostIdentityQueryRequest extends Pagination {
|
||||
/**
|
||||
* 主机身份查询响应
|
||||
*/
|
||||
export interface HostIdentityQueryResponse {
|
||||
export interface HostIdentityQueryResponse extends TableData {
|
||||
id?: number;
|
||||
name?: string;
|
||||
username?: string;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import axios from 'axios';
|
||||
import { DataGrid, Pagination } from '@/types/global';
|
||||
import { TableData } from '@arco-design/web-vue/es/table/interface';
|
||||
|
||||
/**
|
||||
* 主机秘钥创建请求
|
||||
@@ -32,7 +33,7 @@ export interface HostKeyQueryRequest extends Pagination {
|
||||
/**
|
||||
* 主机秘钥查询响应
|
||||
*/
|
||||
export interface HostKeyQueryResponse {
|
||||
export interface HostKeyQueryResponse extends TableData {
|
||||
id?: number;
|
||||
name?: string;
|
||||
publicKey?: string;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import axios from 'axios';
|
||||
import { DataGrid, Pagination } from '@/types/global';
|
||||
import { TableData } from '@arco-design/web-vue/es/table/interface';
|
||||
|
||||
/**
|
||||
* 主机创建请求
|
||||
@@ -35,7 +36,7 @@ export interface HostQueryRequest extends Pagination {
|
||||
/**
|
||||
* 主机查询响应
|
||||
*/
|
||||
export interface HostQueryResponse {
|
||||
export interface HostQueryResponse extends TableData {
|
||||
id?: number;
|
||||
name?: string;
|
||||
code?: string;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import axios from 'axios';
|
||||
import { TableData } from '@arco-design/web-vue/es/table/interface';
|
||||
|
||||
/**
|
||||
* 菜单创建请求
|
||||
@@ -35,7 +36,7 @@ export interface MenuQueryRequest {
|
||||
/**
|
||||
* 菜单查询响应
|
||||
*/
|
||||
export interface MenuQueryResponse {
|
||||
export interface MenuQueryResponse extends TableData {
|
||||
id?: number;
|
||||
parentId?: number;
|
||||
name?: string;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import axios from 'axios';
|
||||
import { DataGrid, Pagination } from '@/types/global';
|
||||
import { TableData } from '@arco-design/web-vue/es/table/interface';
|
||||
|
||||
/**
|
||||
* 角色创建请求
|
||||
@@ -38,7 +39,7 @@ export interface RoleQueryRequest extends Pagination {
|
||||
/**
|
||||
* 角色查询响应
|
||||
*/
|
||||
export interface RoleQueryResponse {
|
||||
export interface RoleQueryResponse extends TableData {
|
||||
id?: number;
|
||||
name?: string;
|
||||
code?: string;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import axios from 'axios';
|
||||
import { DataGrid, Pagination } from '@/types/global';
|
||||
import { TableData } from '@arco-design/web-vue/es/table/interface';
|
||||
|
||||
/**
|
||||
* 用户创建请求
|
||||
@@ -42,7 +43,7 @@ export interface UserQueryRequest extends Pagination {
|
||||
/**
|
||||
* 用户查询响应
|
||||
*/
|
||||
export interface UserQueryResponse {
|
||||
export interface UserQueryResponse extends TableData {
|
||||
id?: number;
|
||||
username?: string;
|
||||
nickname?: string;
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
const { copy } = useCopy();
|
||||
const { hasAnyPermission } = usePermission();
|
||||
|
||||
const tableRenderData = ref<HostIdentityQueryResponse[]>();
|
||||
const tableRenderData = ref<HostIdentityQueryResponse[]>([]);
|
||||
const { loading, setLoading } = useLoading();
|
||||
const emits = defineEmits(['openAdd', 'openUpdate', 'openViewKey']);
|
||||
|
||||
|
||||
@@ -49,10 +49,6 @@
|
||||
@page-change="(page) => fetchTableData(page, pagination.pageSize)"
|
||||
@page-size-change="(size) => fetchTableData(pagination.current, size)"
|
||||
:bordered="false">
|
||||
<!-- 名称 -->
|
||||
<template #name="{ record }">
|
||||
<span class="span-blue">{{ record.name }}</span>
|
||||
</template>
|
||||
<!-- 操作 -->
|
||||
<template #handle="{ record }">
|
||||
<div class="table-handle-wrapper">
|
||||
@@ -102,7 +98,7 @@
|
||||
import columns from '../types/table.columns';
|
||||
import { defaultPagination } from '@/types/table';
|
||||
|
||||
const tableRenderData = ref<HostKeyQueryResponse[]>();
|
||||
const tableRenderData = ref<HostKeyQueryResponse[]>([]);
|
||||
const { loading, setLoading } = useLoading();
|
||||
const emits = defineEmits(['openAdd', 'openUpdate', 'openView']);
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
label="用户名"
|
||||
:rules="usernameRules"
|
||||
label-col-flex="60px"
|
||||
:help="AuthTypeEnum.IDENTITY.value === formModel.authType ? '将使用主机身份的用户名' : null">
|
||||
:help="AuthTypeEnum.IDENTITY.value === formModel.authType ? '将使用主机身份的用户名' : undefined">
|
||||
<a-input v-model="formModel.username"
|
||||
:disabled="AuthTypeEnum.IDENTITY.value === formModel.authType"
|
||||
placeholder="请输入用户名" />
|
||||
|
||||
@@ -157,7 +157,7 @@
|
||||
<script lang="ts" setup>
|
||||
import { reactive, ref } from 'vue';
|
||||
import { deleteHost, getHostPage, HostQueryRequest, HostQueryResponse } from '@/api/asset/host';
|
||||
import { Message } from '@arco-design/web-vue';
|
||||
import { Message, PaginationProps } from '@arco-design/web-vue';
|
||||
import useLoading from '@/hooks/loading';
|
||||
import columns from '../types/table.columns';
|
||||
import { tagColor } from '../types/const';
|
||||
@@ -170,11 +170,11 @@
|
||||
import { useCacheStore } from '@/store';
|
||||
|
||||
const tagSelector = ref();
|
||||
const tableRenderData = ref<HostQueryResponse[]>();
|
||||
const tableRenderData = ref<HostQueryResponse[]>([]);
|
||||
const { loading, setLoading } = useLoading();
|
||||
const emits = defineEmits(['openAdd', 'openUpdate', 'openUpdateConfig']);
|
||||
|
||||
const pagination = reactive(defaultPagination());
|
||||
const pagination = reactive<PaginationProps>(defaultPagination());
|
||||
const { copy } = useCopy();
|
||||
const { toggle: toggleFavorite } = useFavorite('HOST');
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
import { toOptions, getEnumValue, toggleEnumValue, toggleEnum } from '@/utils/enum';
|
||||
import { defaultPagination } from '@/types/table';
|
||||
|
||||
const tableRenderData = ref<RoleQueryResponse[]>();
|
||||
const tableRenderData = ref<RoleQueryResponse[]>([]);
|
||||
const { loading, setLoading } = useLoading();
|
||||
const emits = defineEmits(['openAdd', 'openUpdate', 'openGrant']);
|
||||
|
||||
|
||||
@@ -158,7 +158,7 @@
|
||||
import { toOptions, getEnumValue } from '@/utils/enum';
|
||||
import { useUserStore } from '@/store';
|
||||
|
||||
const tableRenderData = ref<UserQueryResponse[]>();
|
||||
const tableRenderData = ref<UserQueryResponse[]>([]);
|
||||
const { loading, setLoading } = useLoading();
|
||||
const emits = defineEmits(['openAdd', 'openUpdate', 'openResetPassword', 'openGrantRole']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user