refactor: 前端表单重置优化

This commit is contained in:
2023-09-24 11:41:32 +08:00
17 changed files with 45 additions and 113 deletions

View File

@@ -5,10 +5,10 @@ const BASE_URL = '/system/dept';
export interface DataRecord {
id?: number;
name: string;
name?: string;
parentId?: number;
description?: string;
sort: number;
sort?: number;
status?: number;
isSystem?: boolean;
createUserString?: string;

View File

@@ -5,11 +5,11 @@ const BASE_URL = '/system/dict/item';
export interface DataRecord {
id?: number;
label: string;
value: string;
label?: string;
value?: string;
color?: string;
sort?: number;
description: string;
description?: string;
dictId?: number;
createUser?: string;
createTime?: string;

View File

@@ -5,10 +5,10 @@ const BASE_URL = '/system/dict';
export interface DataRecord {
id?: number;
name: string;
code: string;
name?: string;
code?: string;
description?: string;
isSystem: boolean;
isSystem?: boolean;
createUser?: string;
createTime?: string;
updateUser?: string;

View File

@@ -5,18 +5,18 @@ const BASE_URL = '/system/menu';
export interface DataRecord {
id?: number;
title: string;
title?: string;
parentId?: number;
type: number;
type?: number;
path?: string;
name?: string;
component?: string;
icon?: string;
isExternal: boolean;
isCache: boolean;
isHidden: boolean;
isExternal?: boolean;
isCache?: boolean;
isHidden?: boolean;
permission?: string;
sort: number;
sort?: number;
status?: number;
createUserString?: string;
createTime?: string;

View File

@@ -5,12 +5,12 @@ const BASE_URL = '/system/role';
export interface DataRecord {
id?: number;
name: string;
name?: string;
code?: string;
sort?: number;
description?: string;
menuIds?: Array<number>;
dataScope: number;
dataScope?: number;
deptIds?: Array<number>;
status?: number;
isSystem?: boolean;

View File

@@ -5,9 +5,9 @@ const BASE_URL = '/system/user';
export interface DataRecord {
id?: number;
username: string;
nickname: string;
gender: number;
username?: string;
nickname?: string;
gender?: number;
email?: string;
phone?: string;
description?: string;