shaun-sheep 4 năm trước cách đây
mục cha
commit
505b964a4a
1 tập tin đã thay đổi với 20 bổ sung2 xóa
  1. 20 2
      src/views/legendLibrary/index.vue

+ 20 - 2
src/views/legendLibrary/index.vue

@@ -129,7 +129,7 @@
                     </el-table-column>
                     <el-table-column prop='system' label='专业' show-overflow-tooltip width='120'>
                         <template slot-scope='{row}'>
-                            <span v-for='(item,index) in row.InfoSystems ' :key='index'>{{item.Name}}</span>
+                            <span v-for='(item,index) in row.InfoSystem ' :key='index'>{{item.Name}}</span>
                         </template>
                     </el-table-column>
                 </el-table-column>
@@ -418,7 +418,25 @@ export default {
                 this.total = res.Total
             })
         },
-        transformDate(arr) {},
+        transformDate(arr) {
+            arr.map(({ GraphCategorys, InfoLocal, InfoSystems, InfoTypes }) => {
+                if (GraphCategorys.length) {
+                    GraphCategorys.map(i => i)
+                }
+                if (InfoLocal.length) {
+                    GraphCategorys.map(i => {
+                        i.name
+                    })
+                }
+                if (InfoSystems.length) {
+                    GraphCategorys.map()
+                }
+                if (InfoTypes.length) {
+                    GraphCategorys.map()
+                }
+            })
+            return arr
+        },
         getTableList() {
             // if (this.GraphCategoryIds || this.InfoLocals || this.InfoSystems || this.keyword) {
             //     this.currentPage = 1