We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ea5bac commit ab46ecbCopy full SHA for ab46ecb
src/views/bpm/model/CategoryDraggableModel.vue
@@ -510,10 +510,15 @@ const isManagerUser = (row: any) => {
510
511
/** 处理模型的排序 **/
512
const handleModelSort = () => {
513
- // 保存初始数据
514
- originalData.value = cloneDeep(props.categoryInfo.modelList)
515
- isModelSorting.value = true
516
- initSort()
+ if (isModelSorting.value) {
+ // 如果已经在排序状态,则取消排序
+ handleModelSortCancel()
+ } else {
517
+ // 保存初始数据
518
+ originalData.value = cloneDeep(props.categoryInfo.modelList)
519
+ isModelSorting.value = true
520
+ initSort()
521
+ }
522
}
523
524
/** 处理模型的排序提交 */
0 commit comments