import { EntityFilter, FilterCondition } from '@farris/ui-common/types'; import { LOAD_DATA_TYPE } from '../lookup-grid-options'; export interface LookupSearchType { category: string; searchField?: string; searchValue?: string; } export interface UserFavoriteData { /** 标识KEY 1 */ configkey1: string; /** 标识KEY 2 */ configkey2?: string; /** 标识KEY 3 */ configkey3?: string; /** 帮助收藏数据 */ textvalue?: string; } export interface RemoteParams { /** 页码 */ pageIndex?: number; /** 每页尺寸 */ pageSize?: number; /** 未启用 */ condition?: EntityFilter; searchConditions?: Array; navSearchConditions?: Array; /** 未启用 */ helpId?: string; /** 未启用 */ searchField?: string; /** 查询参数 * category: 查询类型, * 'all'|'list'|'nav' | 'search' | 'children' | 'textchange' | 'sort' | 'navsearch' * |'fav'|'addFavorite'|'removeFavorite'|'updateFavorite'; * searchField?: 查询字段 * searchValue?: 关键字 * searchType: 'equal' | 'like' 查询方式 */ searchValue?: string; /** 自定义查询数据 */ customData?: any; /** * 树结构加载方式 * default: 内置取数; loadall: 加载所有 layerload:分层加载 */ loadTreeDataType?: string; /** 构造完整树 */ enableFullTree?: boolean; /** 导航帮助对应关系条件 */ relationFilter?: any; /** 已选择数据ID */ selectedInfo?: { selectedIds: string[]; selected: boolean; }; /** 收藏数据ID */ favoriteIds?: string[]; /** 树帮助: 父级节点集合 */ parentsIds?: string[]; /** 左树右列表帮助,左树为分层分级码加载时,点击节点的分级码 */ navPathCode?: any; /** 将树结构数据转换为普通列表 */ treeToList?: boolean; navTreeToList?: boolean; /** 树结构分页取数 */ treePagination?: boolean; } export interface NavigationFilter { searchField?: string; searchValue?: string; selected?: any; idValue?: any; } export interface SearchParam { searchField?: string; searchValue?: string; searchType?: string; category?: LOAD_DATA_TYPE; navigation?: NavigationFilter; favoriteIds?: string[]; sortName?: string; sortOrder?: string; } export declare type LOOKUP_HTTP_PARAMS = RemoteParams | any;