guoxiaohuan 4 years ago
parent
commit
991ba4fec6
2 changed files with 6 additions and 3 deletions
  1. 4 1
      src/views/legendLibrary/addLegend.vue
  2. 2 2
      src/views/legendLibrary/index.vue

+ 4 - 1
src/views/legendLibrary/addLegend.vue

@@ -69,8 +69,11 @@ export default {
             this.title = title
             this.GraphCategoryId = GraphCategoryId
             //console.log(title)
+            let getParams = {
+                categoryId: String(this.GraphCategoryId)
+            }
             if (GraphCategoryId) {
-                groupByCategory({}).then(res => {
+                groupByCategory({ getParams }).then(res => {
                     this.treeData = []
                     this.treeData = res.Data.map(i => this.getTree(i))
                 })

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

@@ -140,7 +140,7 @@
 
                 <el-table-column prop='typeId' resizable label='铺位可视化typeid' width='140' show-overflow-tooltip>
                     <template slot-scope='{row}'>
-                        <span>{{row.InfoTypes.length ?row.InfoTypes.map(item => item.Name).join(' ,'):'' }}</span>
+                        <span>{{row.InfoTypes.length ?row.InfoTypes.map(item => `${item.Id }-${item.Name}`).join(' ,'):'' }}</span>
                     </template>
                 </el-table-column>
                 <el-table-column label='操作' width='100' v-if='state==1'>
@@ -660,7 +660,7 @@ export default {
     background: #fff;
     border: 1px solid #ccc;
 }
-.p-transfer-select{
+.p-transfer-select {
     height: 44px !important;
 }
 .p-tree-node-check,