- 新增产品管理相关路由和页面(dashboard、list、requirement、setting) - 实现产品基础信息编辑弹窗组件(base-info-dialog.vue) - 添加运行时字典功能(dict-select、dict-text、dict-tag组件) - 集成字典管理store和API调用 - 规范ID类型定义为string避免精度丢失问题 - 完善国际化资源文件支持中英文对照 - 新增对象上下文业务域入口页导航实现说明 - 添加Vue DevTools浮动入口注释说明 - 统一权限控制支持全局和对象作用域区分 - 规范分页查询参数类型定义与使用方式
90 lines
2.1 KiB
TypeScript
90 lines
2.1 KiB
TypeScript
declare namespace Api {
|
|
/**
|
|
* namespace Dict
|
|
*
|
|
* backend api module: "dict"
|
|
*/
|
|
namespace Dict {
|
|
type DictStatus = 0 | 1;
|
|
|
|
interface PageParams {
|
|
pageNo: number;
|
|
pageSize: number;
|
|
}
|
|
|
|
interface PageResult<T = any> {
|
|
total: number;
|
|
list: T[];
|
|
}
|
|
|
|
/** dict type */
|
|
interface DictType {
|
|
/** dict type id */
|
|
id: number;
|
|
/** dict name */
|
|
name: string;
|
|
/** dict type code */
|
|
type: string;
|
|
/** status: 0 enabled, 1 disabled */
|
|
status: DictStatus;
|
|
/** remark */
|
|
remark?: string | null;
|
|
/** create time */
|
|
createTime: number;
|
|
}
|
|
|
|
/** dict type search params */
|
|
type DictTypeSearchParams = CommonType.RecordNullable<Pick<DictType, 'name' | 'type' | 'status'>> & PageParams;
|
|
|
|
/** dict type save params */
|
|
type SaveDictTypeParams = Pick<DictType, 'name' | 'type' | 'status'> & {
|
|
remark?: string | null;
|
|
};
|
|
|
|
/** dict data */
|
|
interface DictData {
|
|
/** dict data id */
|
|
id: number;
|
|
/** dict label */
|
|
label: string;
|
|
/** dict value */
|
|
value: string;
|
|
/** dict type code */
|
|
dictType: string;
|
|
/** display order */
|
|
sort: number;
|
|
/** status: 0 enabled, 1 disabled */
|
|
status: DictStatus;
|
|
/** remark */
|
|
remark?: string | null;
|
|
/** create time */
|
|
createTime: number;
|
|
}
|
|
|
|
/** frontend runtime dict item */
|
|
interface FrontendDictData {
|
|
/** dict label */
|
|
label: string;
|
|
/** dict value */
|
|
value: string;
|
|
/** display order */
|
|
sort: number;
|
|
/** dict type code */
|
|
dictType?: string;
|
|
/** status: 0 enabled, 1 disabled */
|
|
status?: DictStatus;
|
|
}
|
|
|
|
/** frontend runtime dict cache map */
|
|
type FrontendDictCache = Record<string, FrontendDictData[]>;
|
|
|
|
/** dict data search params */
|
|
type DictDataSearchParams = CommonType.RecordNullable<Pick<DictData, 'label' | 'dictType' | 'status'>> & PageParams;
|
|
|
|
/** dict data save params */
|
|
type SaveDictDataParams = Pick<DictData, 'label' | 'value' | 'dictType' | 'sort' | 'status'> & {
|
|
remark?: string | null;
|
|
};
|
|
}
|
|
}
|