YaolongHan 4 年之前
父节点
当前提交
127325d6ff
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/components/editview/leftToolBar/addItemModel.vue

+ 3 - 3
src/components/editview/leftToolBar/addItemModel.vue

@@ -277,7 +277,7 @@ export default {
       items.number = items.children.length;
     },
     // 构建树list
-    mapList(list, arr = [], nameList = ["Id", "LocalName", "Floor"]) {
+    mapList(list, arr = [], nameList = ["id", "localName", "floor"]) {
       if (list.length) {
         list.forEach((item) => {
           if (item[nameList[2]] && item[nameList[2]].length) {
@@ -316,12 +316,12 @@ export default {
     };
     // 建筑查询条件
     buildiFloor(data).then((res) => {
-      this.buildFloorList = this.mapList(res.Content);
+      this.buildFloorList = this.mapList(res.content);
     });
     // 设备类型查询条件
     readCategory(data).then((res) => {
       this.categoryList = this.mapList(
-        res.Content,
+        res.content,
         [],
         ["code", "name", "children"]
       );