123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336 |
- /**
- * views personal
- */
- type NewInfo = {
- title: string;
- date: string;
- link: string;
- };
- type Recommend = {
- title: string;
- msg: string;
- icon: string;
- bg: string;
- iconColor: string;
- };
- declare type PersonalState = {
- newsInfoList: NewInfo[];
- personalForm: {
- avatar:string,
- username: string;
- name: string;
- email: string;
- mobile: string;
- gender: number | string;
- dept_info: {
- dept_id: number;
- dept_name: string;
- }
- role_info: [{
- id: number;
- name: string;
- }]
- };
- };
- /**
- * views visualizing
- */
- declare type Demo2State<T = any> = {
- time: {
- txt: string;
- fun: number;
- };
- dropdownList: T[];
- dropdownActive: string;
- skyList: T[];
- dBtnList: T[];
- chartData4Index: number;
- dBtnActive: number;
- earth3DBtnList: T[];
- chartData4List: T[];
- myCharts: T[];
- };
- /**
- * views params
- */
- declare type ParamsState = {
- value: string;
- tagsViewName: string;
- tagsViewNameIsI18n: boolean;
- };
- /**
- * views system
- */
- // role
- declare interface RowRoleType {
- roleName: string;
- roleSign: string;
- describe: string;
- sort: number;
- status: boolean;
- createTime: string;
- }
- interface SysRoleTableType extends TableType {
- data: RowRoleType[];
- }
- declare interface SysRoleState {
- tableData: SysRoleTableType;
- }
- declare type TreeType = {
- id: number;
- label: string;
- children?: TreeType[];
- };
- // user
- declare type RowUserType<T = any> = {
- username: string;
- userNickname: string;
- roleSign: string;
- department: string[];
- phone: string;
- email: string;
- sex: string;
- password: string;
- overdueTime: T;
- status: boolean;
- describe: string;
- createTime: T;
- };
- interface SysUserTableType extends TableType {
- data: RowUserType[];
- }
- declare interface SysUserState {
- tableData: SysUserTableType;
- }
- declare type DeptTreeType = {
- deptName: string;
- createTime: string;
- status: boolean;
- sort: number;
- describe: string;
- id: number | string;
- children?: DeptTreeType[];
- };
- // dept
- declare interface RowDeptType extends DeptTreeType {
- deptLevel: string[];
- person: string;
- phone: string;
- email: string;
- }
- interface SysDeptTableType extends TableType {
- data: DeptTreeType[];
- }
- declare interface SysDeptState {
- tableData: SysDeptTableType;
- }
- // dic
- type ListType = {
- id: number;
- label: string;
- value: string;
- };
- declare interface RowDicType {
- dicName: string;
- fieldName: string;
- describe: string;
- status: boolean;
- createTime: string;
- list: ListType[];
- }
- interface SysDicTableType extends TableType {
- data: RowDicType[];
- }
- declare interface SysDicState {
- tableData: SysDicTableType;
- }
- /**
- * views pages
- */
- // filtering
- declare type FilteringChilType = {
- id: number | string;
- label: string;
- active: boolean;
- };
- declare type FilterListType = {
- img: string;
- title: string;
- evaluate: string;
- collection: string;
- price: string;
- monSales: string;
- id: number | string;
- loading?: boolean;
- };
- declare type FilteringRowType = {
- title: string;
- isMore: boolean;
- isShowMore: boolean;
- id: number | string;
- children: FilteringChilType[];
- };
- // tableRules
- declare type TableRulesHeaderType = {
- prop: string;
- width: string | number;
- label: string;
- isRequired?: boolean;
- isTooltip?: boolean;
- type: string;
- };
- declare type TableRulesState = {
- tableData: {
- data: EmptyObjectType[];
- header: TableRulesHeaderType[];
- option: SelectOptionType[];
- };
- };
- declare type TableRulesOneProps = {
- name: string;
- email: string;
- autograph: string;
- occupation: string;
- };
- // tree
- declare type RowTreeType = {
- id: number;
- label: string;
- label1: string;
- label2: string;
- isShow: boolean;
- children?: RowTreeType[];
- };
- // workflow index
- declare type NodeListState = {
- id: string | number;
- nodeId: string | undefined;
- class: HTMLElement | string;
- left: number | string;
- top: number | string;
- icon: string;
- name: string;
- };
- declare type LineListState = {
- sourceId: string;
- targetId: string;
- label: string;
- };
- declare type XyState = {
- x: string | number;
- y: string | number;
- };
- declare type WorkflowState<T = any> = {
- leftNavList: T[];
- dropdownNode: XyState;
- dropdownLine: XyState;
- isShow: boolean;
- jsPlumb: T;
- jsPlumbNodeIndex: null | number;
- jsplumbDefaults: T;
- jsplumbMakeSource: T;
- jsplumbMakeTarget: T;
- jsplumbConnect: T;
- jsplumbData: {
- nodeList: NodeListState[];
- lineList: LineListState[];
- };
- };
- // workflow drawer
- declare type WorkflowDrawerNodeState<T = any> = {
- node: { [key: string]: T };
- nodeRules: T;
- form: T;
- tabsActive: string;
- loading: {
- extend: boolean;
- };
- };
- declare type WorkflowDrawerLabelType = {
- type: string;
- label: string;
- };
- declare type WorkflowDrawerState<T = any> = {
- isOpen: boolean;
- nodeData: {
- type: string;
- };
- jsplumbConn: T;
- };
- /**
- * views make
- */
- // tableDemo
- declare type TableDemoPageType = {
- pageNum: number;
- pageSize: number;
- };
- declare type TableHeaderType = {
- key: string;
- width: string;
- title: string;
- type: string | number;
- colWidth: string;
- width?: string | number;
- height?: string | number;
- isCheck: boolean;
- };
- declare type TableSearchType = {
- label: string;
- prop: string;
- placeholder: string;
- required: boolean;
- type: string;
- options?: SelectOptionType[];
- };
- declare type TableDemoState = {
- tableData: {
- data: EmptyObjectType[];
- header: TableHeaderType[];
- config: {
- total: number;
- loading: boolean;
- isBorder: boolean;
- isSelection: boolean;
- isSerialNo: boolean;
- isOperate: boolean;
- };
- search: TableSearchType[];
- param: EmptyObjectType;
- };
- };
|