소스 검색

修复BOM版本取值

695593266@qq.com 11 달 전
부모
커밋
10fdd64f1f
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/views/material/BOMmanage/detailsPop.vue

+ 4 - 2
src/views/material/BOMmanage/detailsPop.vue

@@ -712,8 +712,10 @@
           this.versList = res || [];
           if (type == 'del' || type == 'add') {
             if (this.versList.length >= 1) {
-              this.searchObj.versions =
-                this.versList[this.versList.length - 1].versions;
+              if (!this.searchObj.versions) {
+                this.searchObj.versions =
+                  this.versList[this.versList.length - 1].versions;
+              }
               this.getTreeData();
             } else {
               this.searchObj.versions = '';