😎更新前端接口请求文件
This commit is contained in:
parent
bf1e57bccd
commit
54b2b6a032
@ -20,7 +20,7 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
||||
import { AccountTypeEnum } from '../models';
|
||||
import { AdminResultIActionResult } from '../models';
|
||||
import { AdminResultListSysFile } from '../models';
|
||||
import { AdminResultObject } from '../models';
|
||||
import { AdminResultListTreeNode } from '../models';
|
||||
import { AdminResultSqlSugarPagedListSysFile } from '../models';
|
||||
import { AdminResultString } from '../models';
|
||||
import { AdminResultSysFile } from '../models';
|
||||
@ -1959,7 +1959,7 @@ export const SysFileApiFp = function(configuration?: Configuration) {
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async apiSysFileFolderGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultObject>>> {
|
||||
async apiSysFileFolderGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListTreeNode>>> {
|
||||
const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileFolderGet(options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
@ -2379,7 +2379,7 @@ export const SysFileApiFactory = function (configuration?: Configuration, basePa
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async apiSysFileFolderGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultObject>> {
|
||||
async apiSysFileFolderGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListTreeNode>> {
|
||||
return SysFileApiFp(configuration).apiSysFileFolderGet(options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
@ -2765,7 +2765,7 @@ export class SysFileApi extends BaseAPI {
|
||||
* @throws {RequiredError}
|
||||
* @memberof SysFileApi
|
||||
*/
|
||||
public async apiSysFileFolderGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultObject>> {
|
||||
public async apiSysFileFolderGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListTreeNode>> {
|
||||
return SysFileApiFp(this.configuration).apiSysFileFolderGet(options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
|
||||
71
Web/src/api-services/models/admin-result-list-tree-node.ts
Normal file
71
Web/src/api-services/models/admin-result-list-tree-node.ts
Normal file
@ -0,0 +1,71 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Admin.NET 通用权限开发平台
|
||||
* 让 .NET 开发更简单、更通用、更流行。整合最新技术,模块插件式开发,前后端分离,开箱即用。<br/><u><b><font color='FF0000'> 👮不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!</font></b></u>
|
||||
*
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { TreeNode } from './tree-node';
|
||||
/**
|
||||
* 全局返回结果
|
||||
*
|
||||
* @export
|
||||
* @interface AdminResultListTreeNode
|
||||
*/
|
||||
export interface AdminResultListTreeNode {
|
||||
|
||||
/**
|
||||
* 状态码
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AdminResultListTreeNode
|
||||
*/
|
||||
code?: number;
|
||||
|
||||
/**
|
||||
* 类型success、warning、error
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AdminResultListTreeNode
|
||||
*/
|
||||
type?: string | null;
|
||||
|
||||
/**
|
||||
* 错误信息
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AdminResultListTreeNode
|
||||
*/
|
||||
message?: string | null;
|
||||
|
||||
/**
|
||||
* 数据
|
||||
*
|
||||
* @type {Array<TreeNode>}
|
||||
* @memberof AdminResultListTreeNode
|
||||
*/
|
||||
result?: Array<TreeNode> | null;
|
||||
|
||||
/**
|
||||
* 附加数据
|
||||
*
|
||||
* @type {any}
|
||||
* @memberof AdminResultListTreeNode
|
||||
*/
|
||||
extras?: any | null;
|
||||
|
||||
/**
|
||||
* 时间
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof AdminResultListTreeNode
|
||||
*/
|
||||
time?: Date;
|
||||
}
|
||||
@ -68,6 +68,7 @@ export * from './admin-result-list-sys-user';
|
||||
export * from './admin-result-list-sys-user-ext-org';
|
||||
export * from './admin-result-list-sys-wechat-refund';
|
||||
export * from './admin-result-list-table-output';
|
||||
export * from './admin-result-list-tree-node';
|
||||
export * from './admin-result-login-output';
|
||||
export * from './admin-result-login-user-output';
|
||||
export * from './admin-result-object';
|
||||
@ -389,6 +390,7 @@ export * from './tenant-type-enum';
|
||||
export * from './tenant-user-input';
|
||||
export * from './text-info';
|
||||
export * from './tianditu-input';
|
||||
export * from './tree-node';
|
||||
export * from './trigger-status';
|
||||
export * from './type';
|
||||
export * from './type-attributes';
|
||||
|
||||
@ -29,14 +29,6 @@ export interface SysRegion {
|
||||
*/
|
||||
id?: number;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SysRegion
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 父Id
|
||||
*
|
||||
@ -45,6 +37,14 @@ export interface SysRegion {
|
||||
*/
|
||||
pid?: number;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SysRegion
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 简称
|
||||
*
|
||||
|
||||
@ -93,14 +93,6 @@ export interface SysSchedule {
|
||||
*/
|
||||
tenantId?: number | null;
|
||||
|
||||
/**
|
||||
* 日程内容
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SysSchedule
|
||||
*/
|
||||
content: string;
|
||||
|
||||
/**
|
||||
* 用户Id
|
||||
*
|
||||
@ -133,6 +125,14 @@ export interface SysSchedule {
|
||||
*/
|
||||
endTime?: string | null;
|
||||
|
||||
/**
|
||||
* 日程内容
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SysSchedule
|
||||
*/
|
||||
content: string;
|
||||
|
||||
/**
|
||||
* @type {FinishStatusEnum}
|
||||
* @memberof SysSchedule
|
||||
|
||||
47
Web/src/api-services/models/tree-node.ts
Normal file
47
Web/src/api-services/models/tree-node.ts
Normal file
@ -0,0 +1,47 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Admin.NET 通用权限开发平台
|
||||
* 让 .NET 开发更简单、更通用、更流行。整合最新技术,模块插件式开发,前后端分离,开箱即用。<br/><u><b><font color='FF0000'> 👮不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!</font></b></u>
|
||||
*
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { TreeNode } from './tree-node';
|
||||
/**
|
||||
* 树形节点
|
||||
*
|
||||
* @export
|
||||
* @interface TreeNode
|
||||
*/
|
||||
export interface TreeNode {
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @memberof TreeNode
|
||||
*/
|
||||
id?: number;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @memberof TreeNode
|
||||
*/
|
||||
pid?: number;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @memberof TreeNode
|
||||
*/
|
||||
name?: string | null;
|
||||
|
||||
/**
|
||||
* @type {Array<TreeNode>}
|
||||
* @memberof TreeNode
|
||||
*/
|
||||
children?: Array<TreeNode> | null;
|
||||
}
|
||||
@ -60,6 +60,7 @@ import { Search, MoreFilled } from '@element-plus/icons-vue';
|
||||
|
||||
import { getAPI } from '/@/utils/axios-utils';
|
||||
import { SysFileApi } from '/@/api-services/api';
|
||||
import { TreeNode } from '/@/api-services/models';
|
||||
import { TreeKey } from 'element-plus/es/components/tree/src/tree.type';
|
||||
|
||||
const props = defineProps({
|
||||
@ -70,7 +71,7 @@ const filterText = ref('');
|
||||
const treeRef = ref<InstanceType<typeof ElTree>>();
|
||||
const state = reactive({
|
||||
loading: false,
|
||||
folderData: [] as any,
|
||||
folderData: [] as Array<TreeNode>,
|
||||
isShowCheckbox: false,
|
||||
strictly: false,
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user