Browse Source

fix:修改绑定工序时显示顺序的问题

luoxiao 3 tháng trước cách đây
mục cha
commit
c34dd0b824

+ 7 - 0
src/views/base/craftManagement/route/components/processComponent.vue

@@ -139,6 +139,13 @@ const back = () => {
 };
 
 const save = async () => {
+  selectProComs.value.forEach(item1 => {
+    comTypes.find(item2 => {
+      if (item2.compentName === item1.compentName) {
+        item1.index = item2.index
+      }
+    });
+  })
   selectProComs.value = selectProComs.value.sort((a, b) => {
     return a.index - b.index;
   });