|
@@ -32,7 +32,7 @@
|
|
|
width="40"
|
|
|
height="40"
|
|
|
></i>
|
|
|
- <span :title="item.localName">{{ item.localName }}</span>
|
|
|
+ <span :title="item.Name">{{ item.Name }}</span>
|
|
|
</li>
|
|
|
</el-scrollbar>
|
|
|
</ul>
|
|
@@ -113,8 +113,7 @@
|
|
|
<script lang="ts">
|
|
|
import { Vue, Component, Watch } from "vue-property-decorator";
|
|
|
import { UserModule } from "@/store/modules/user";
|
|
|
-import { queryFloorList, queryModel } from "@/api/modelapi";
|
|
|
-import { buildingQuery, floorQuery } from "@/api/datacenter";
|
|
|
+import { queryModel, queryFloorList } from "@/api/modelapi";
|
|
|
import Bus from "@/utils/bus";
|
|
|
import FloorTable from "./components/FloorTable/index.vue"; //右侧list表
|
|
|
import AddFloorDialog from "./components/AddFloorDialog/index.vue"; //新增楼层弹窗
|
|
@@ -161,8 +160,8 @@ export default class extends Vue {
|
|
|
*/
|
|
|
private openFolder(index: number, item: any): void {
|
|
|
this.choiceIndex = index + 1;
|
|
|
- this.currentFolderId = item.id;
|
|
|
- this.currentFolderName = item.localName;
|
|
|
+ this.currentFolderId = item.Id;
|
|
|
+ this.currentFolderName = item.Name;
|
|
|
// 获取模型文件夹对应得楼层文件
|
|
|
this.queryFloorFile(this.currentFolderId);
|
|
|
}
|
|
@@ -194,15 +193,14 @@ export default class extends Vue {
|
|
|
private async queryModel(): Promise<void> {
|
|
|
this.navigationBuild = [];
|
|
|
this.loading = true;
|
|
|
- const res = await buildingQuery({ Orders: "Name asc" });
|
|
|
- // const res = await queryModel({ Orders: "Name asc" });
|
|
|
- this.navigationBuild = res.content;
|
|
|
+ const res = await queryModel({ Orders: "Name asc" });
|
|
|
+ this.navigationBuild = res.Content;
|
|
|
this.loading = false;
|
|
|
if (this.navigationBuild.length) {
|
|
|
//默认选择第一个文件夹
|
|
|
this.choiceIndex = 1;
|
|
|
- this.currentFolderName = this.navigationBuild[0].localName;
|
|
|
- this.currentFolderId = this.navigationBuild[0].id;
|
|
|
+ this.currentFolderName = this.navigationBuild[0].Name;
|
|
|
+ this.currentFolderId = this.navigationBuild[0].Id;
|
|
|
this.queryFloorFile(this.currentFolderId);
|
|
|
} else {
|
|
|
this.tableData = [];
|
|
@@ -227,14 +225,12 @@ export default class extends Vue {
|
|
|
this.tableData = [];
|
|
|
this.tableLoading = true;
|
|
|
let params = {
|
|
|
- filters: `buildingId='${currentFolderId}'`,
|
|
|
- pageNumber: 1,
|
|
|
- pageSize: 1000,
|
|
|
+ Filters: `FolderId='${currentFolderId}'`,
|
|
|
+ PageNumber: 1,
|
|
|
+ PageSize: 1000,
|
|
|
};
|
|
|
- const res = await floorQuery(params);
|
|
|
- debugger
|
|
|
- // const res = await queryFloorList(params);
|
|
|
- this.tableData = res.content;
|
|
|
+ const res = await queryFloorList(params);
|
|
|
+ this.tableData = res.Content;
|
|
|
this.tableLoading = false;
|
|
|
}
|
|
|
}
|