From 66dbf16a77fadcc71dcb1c5ffacb0cf8935f9871 Mon Sep 17 00:00:00 2001 From: jason <2667446@qq.com> Date: Sun, 26 Oct 2025 23:19:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20[antd]=20[bpm]=20=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E6=8E=92=E5=BA=8F=E4=BB=A3=E7=A0=81=E8=AF=84?= =?UTF-8?q?=E5=AE=A1=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/views/bpm/model/index.vue | 74 +++++++++---------- .../modules/category-draggable-model.vue | 26 ++++--- 2 files changed, 52 insertions(+), 48 deletions(-) diff --git a/apps/web-antd/src/views/bpm/model/index.vue b/apps/web-antd/src/views/bpm/model/index.vue index 08568e1ec..91c504f9e 100644 --- a/apps/web-antd/src/views/bpm/model/index.vue +++ b/apps/web-antd/src/views/bpm/model/index.vue @@ -150,44 +150,44 @@ async function handleCategorySortSubmit() { v-spinning="modelListSpinning" > + + + + +
@@ -199,7 +199,7 @@ async function handleCategorySortSubmit() { 保存排序
- +
diff --git a/apps/web-antd/src/views/bpm/model/modules/category-draggable-model.vue b/apps/web-antd/src/views/bpm/model/modules/category-draggable-model.vue index 202ecaf8a..e285077d2 100644 --- a/apps/web-antd/src/views/bpm/model/modules/category-draggable-model.vue +++ b/apps/web-antd/src/views/bpm/model/modules/category-draggable-model.vue @@ -12,7 +12,6 @@ import { IconifyIcon } from '@vben/icons'; import { useUserStore } from '@vben/stores'; import { cloneDeep, formatDateTime, isEqual } from '@vben/utils'; -// TODO @jason:某个模型下的排序功能,无法使用。操作流程:模型分类 A 的右侧【排序】,然后,无法拖拽使用; import { useDebounceFn } from '@vueuse/core'; import { useSortable } from '@vueuse/integrations/useSortable'; import { @@ -65,7 +64,7 @@ const userId = useUserStore().userInfo?.id; const isModelSorting = ref(false); const originalData = ref([]); const modelList = ref([]); -// TODO @jason:可以全部展开么? +// TODO @jason:可以全部展开么? @芋艿 上次讨论。好像是因为性能问题才只展开第一个分类 const isExpand = ref(props.isFirst); // 根据是否为第一个分类, 来设置初始展开状态 const sortableInstance = ref(null); // 排序引用,以便后续启用或禁用排序 @@ -464,12 +463,14 @@ function handleRenameSuccess() { >
- +
- + +
{{ categoryInfo.name }} @@ -559,15 +560,16 @@ function handleRenameSuccess() { :class="`category-${categoryInfo.id}`" >