Browse Source

部件数据结构修改

zhangyu 5 years ago
parent
commit
82866bd3fa
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/ready/collectsetting/index.vue

+ 3 - 3
src/views/ready/collectsetting/index.vue

@@ -593,13 +593,13 @@
                 } else if (this.value == "parts") {
                     queryPhysicsAllType('Component', res => {
                         this.allFamily = res.Content.map((item) => {
-                            return [{
+                            return {
                                 code: item.Code,
                                 name: item.Name
-                            }]
+                            }
                         })
+                        this.familySort()
                     })
-                    this.familySort()
                 } else {
                     getEqCode().then(res => {
                         if (res.data.Result == "success") {