فهرست منبع

排序值添加

lucw 8 ماه پیش
والد
کامیت
467cfb3336
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      src/views/rulesManagement/matterRules/components/matter-add.vue

+ 5 - 1
src/views/rulesManagement/matterRules/components/matter-add.vue

@@ -488,7 +488,11 @@
         form.categoryName = this.cName;
         form.categoryId = this.cId;
 
-        form.cycle = this.$refs.cycleMultipleRef.ruleCycleList;
+        form.cycle = this.$refs.cycleMultipleRef.ruleCycleList.map(
+          (i, index) => {
+            return { ...i, sortNum: index + 1 };
+          }
+        );
         console.log(form);
 
         switch (form.cycleType) {