/* * @Author: 疯狂秀才(Lucas Huang) * @Date: 2019-05-23 10:27:07 * @LastEditors: 疯狂秀才(Lucas Huang) * @LastEditTime: 2019-09-09 11:39:28 * @QQ: 1055818239 * @Version: v0.0.1 */ import { EntityFilter } 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; /** 未启用 */ helpId?: string; /** 未启用 */ searchField?: string; // 已移除 /** 查询参数 * category: 查询类型, * 'all'|'list'|'nav' | 'search' | 'children' | 'textchange' | 'sort' | 'navsearch' * |'fav'|'addFavorite'|'removeFavorite'|'updateFavorite'; * searchField?: 查询字段 * searchValue?: 关键字 */ searchValue?: string; /** 自定义查询数据 */ customData?: any; /** * 树结构加载方式 * default: 内置取数; loadall: 加载所有 layerload:分层加载 */ loadTreeDataType?: string; /** 构造完整树 */ enableFullTree?: boolean; /** 导航帮助对应关系条件 */ relationFilter?: any; /** 已选择数据ID */ selectedInfo?: { selectedIds: string[], selected: boolean }; /** 收藏数据ID */ favoriteIds?: string[]; /** 树帮助: 父级节点集合 */ parentsIds?: string[]; } export interface NavigationFilter { searchField?: string; searchValue?: string; selected?: any; idValue?: any; } export interface SearchParam { searchField?: string; searchValue?: string; category?: LOAD_DATA_TYPE; navigation?: NavigationFilter; favoriteIds?: string[]; sortName?: string; sortOrder?: string; } export type LOOKUP_HTTP_PARAMS = RemoteParams | any ;