qinhb 3 месяцев назад
Родитель
Сommit
5d77e8b10e
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      src/views/base/craftManagement/route/components/groupProcess.vue

+ 4 - 0
src/views/base/craftManagement/route/components/groupProcess.vue

@@ -36,6 +36,10 @@ function confirmClick() {
 
 const startGroup = async (nodes: any[], routeId: string) => {
   nodesData.value = markRaw(nodes);
+  if(nodesData.value){
+    nodesData.value = nodesData.value.slice().sort((a, b) => a.lineTag.localeCompare(b.lineTag));
+    nodesData.value = nodesData.value.slice().sort((a, b) => a.lineTag.length - b.lineTag.length);
+  }
   routeIdA.value = routeId;
 
   drawer2.value = true;