diff --git a/src/api/workflow/category/index.ts b/src/api/workflow/category/index.ts index e9723b0..385d149 100644 --- a/src/api/workflow/category/index.ts +++ b/src/api/workflow/category/index.ts @@ -18,11 +18,11 @@ export const listCategory = (query?: CategoryQuery): AxiosPromise /** * 查询流程分类详细 - * @param id + * @param categoryId */ -export const getCategory = (id: string | number): AxiosPromise => { +export const getCategory = (categoryId: string | number): AxiosPromise => { return request({ - url: '/workflow/category/' + id, + url: '/workflow/category/' + categoryId, method: 'get' }); }; @@ -53,11 +53,11 @@ export const updateCategory = (data: CategoryForm) => { /** * 删除流程分类 - * @param id + * @param categoryId */ -export const delCategory = (id: string | number | Array) => { +export const delCategory = (categoryId: string | number | Array) => { return request({ - url: '/workflow/category/' + id, + url: '/workflow/category/' + categoryId, method: 'delete' }); }; diff --git a/src/api/workflow/category/types.ts b/src/api/workflow/category/types.ts index 047002e..a093073 100644 --- a/src/api/workflow/category/types.ts +++ b/src/api/workflow/category/types.ts @@ -5,10 +5,10 @@ export interface CategoryTreeVO { weight: number; children: CategoryTreeVO[]; } - export interface CategoryVO { + /** - * 主键 + * 流程分类ID */ categoryId: string | number; @@ -18,17 +18,7 @@ export interface CategoryVO { parentId: string | number; /** - * 父类别名称 - */ - parentName: string; - - /** - * 祖级列表 - */ - ancestors: string; - - /** - * 分类名称 + * 流程分类名称 */ categoryName: string; @@ -38,45 +28,45 @@ export interface CategoryVO { orderNum: number; /** - * 流程分类状态(0正常 1停用) + * 创建时间 */ - status: number; + createTime: string; + /** + * 子对象 + */ children: CategoryVO[]; - } export interface CategoryForm extends BaseEntity { + /** - * 主键 + * 流程分类ID */ categoryId?: string | number; /** - * 父级id - */ - parentId: string | number; - - /** - * 分类名称 + * 流程分类名称 */ categoryName?: string; /** - * 排序 + * 父流程分类id + */ + parentId?: string | number; + + /** + * 显示顺序 */ orderNum?: number; - /** - * 流程分类状态(0正常 1停用) - */ - status: number; - } -export interface CategoryQuery extends PageQuery { +export interface CategoryQuery { + /** - * 分类名称 + * 流程分类名称 */ categoryName?: string; + } diff --git a/src/views/workflow/category/index.vue b/src/views/workflow/category/index.vue index 007329c..d3e87ea 100644 --- a/src/views/workflow/category/index.vue +++ b/src/views/workflow/category/index.vue @@ -18,12 +18,12 @@ - - - + + + + - - - - + + + - - - - - - + + + + + + + + + + + + -