소스 검색

排序值添加

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) {