diff --git a/src/api/bpm/category/index.ts b/src/api/bpm/category/index.ts index d1e109cb..1854f31c 100644 --- a/src/api/bpm/category/index.ts +++ b/src/api/bpm/category/index.ts @@ -36,6 +36,16 @@ export const CategoryApi = { return await request.put({ url: `/bpm/category/update`, data }) }, + // 批量修改流程分类的排序 + updateCategorySortBatch: async (ids: number[]) => { + return await request.put({ + url: `/bpm/category/update-sort-batch`, + params: { + ids: ids.join(',') + } + }) + }, + // 删除流程分类 deleteCategory: async (id: number) => { return await request.delete({ url: `/bpm/category/delete?id=` + id }) diff --git a/src/views/bpm/model/CategoryDraggableModel.vue b/src/views/bpm/model/CategoryDraggableModel.vue index 451365a2..db08aa58 100644 --- a/src/views/bpm/model/CategoryDraggableModel.vue +++ b/src/views/bpm/model/CategoryDraggableModel.vue @@ -465,13 +465,13 @@ const handleRenameConfirm = async () => { } // 发起修改 await CategoryApi.updateCategory(renameCategoryForm.value as CategoryVO) - message.success('修改成功') + message.success('重命名成功') // 刷新列表 renameCategoryVisible.value = false emit('success') } -// 删除分类 +/** 删除分类 */ const handleDeleteCategory = async () => { try { if (props.categoryInfo.modelList.length > 0) { @@ -486,7 +486,7 @@ const handleDeleteCategory = async () => { } catch {} } -// 添加流程模型弹窗 +/** 添加流程模型弹窗 */ const modelFormRef = ref() const openModelForm = (type: string, id?: number) => { modelFormRef.value.open(type, id) diff --git a/src/views/bpm/model/index.vue b/src/views/bpm/model/index.vue index 1eb41485..aad4d5c4 100644 --- a/src/views/bpm/model/index.vue +++ b/src/views/bpm/model/index.vue @@ -52,8 +52,8 @@