diff --git a/src/api/workflow/category/index.ts b/src/api/workflow/category/index.ts index e9723b05d4cfde93d1c071171ba6c3bc06af80fc..385d1497c9021ab9fcb7325fd7b22fc8030809e4 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 047002e5e03e826ea448778d7cff663499ad29e2..a09307376e3e0c89ee033840062326c8d6c094c2 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 { - /** - * 主键 - */ - categoryId?: string | number; /** - * 父级id + * 流程分类ID */ - parentId: string | number; + categoryId?: string | number; /** - * 分类名称 + * 流程分类名称 */ categoryName?: string; /** - * 排序 + * 父流程分类id */ - orderNum?: number; + parentId?: string | number; /** - * 流程分类状态(0正常 1停用) + * 显示顺序 */ - status: number; + orderNum?: 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 007329c53be723660388791f815f33f479ca83df..d3e87ea32e65153b4831b753d42d25adfbbe7ed7 100644 --- a/src/views/workflow/category/index.vue +++ b/src/views/workflow/category/index.vue @@ -18,12 +18,12 @@ - - - + + + + - - - - + + + - - - - - - + + + + + + + + + + + + -