|
@@ -37,20 +37,9 @@
|
|
|
|
|
|
<script lang="ts">
|
|
|
import { Component, Vue } from "vue-property-decorator";
|
|
|
-import {
|
|
|
- AdmMultiTable,
|
|
|
- AdmSearch,
|
|
|
- Pagination,
|
|
|
- Statistics,
|
|
|
-} from "../components/index";
|
|
|
+import { AdmMultiTable, AdmSearch, Pagination, Statistics, } from "../components/index";
|
|
|
import spaceGraph from "./components/spaceGraph.vue";
|
|
|
-import {
|
|
|
- buildingQuery,
|
|
|
- dictQuery,
|
|
|
- floorQuery,
|
|
|
- queryCountSpace,
|
|
|
- queryZone,
|
|
|
-} from "@/api/datacenter";
|
|
|
+import { buildingQuery, dictQuery, floorQuery, queryCountSpace, queryZone, } from "@/api/datacenter";
|
|
|
import tools from "@/utils/maintain";
|
|
|
import { BeatchQueryParam } from "@/api/equipComponent";
|
|
|
import { UserModule } from "@/store/modules/user";
|
|
@@ -249,7 +238,7 @@ export default class spaceIndex extends Vue {
|
|
|
pageSize: this.paginationList.size,
|
|
|
orders: "createTime desc, localName desc, localId desc, id asc",
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
if (this.building.length === 1) {
|
|
|
param2.filters = "";
|
|
|
switch (this.building[0]) {
|
|
@@ -258,14 +247,14 @@ export default class spaceIndex extends Vue {
|
|
|
break;
|
|
|
case "all":
|
|
|
delete param2.filters;
|
|
|
-
|
|
|
+
|
|
|
break;
|
|
|
}
|
|
|
} else if (this.building.length === 2) {
|
|
|
switch (this.building[1]) {
|
|
|
case "noKnow":
|
|
|
param2.filters = `buildingId='${this.building[0]}';floorId='isnull'`;
|
|
|
-
|
|
|
+
|
|
|
break;
|
|
|
case "all":
|
|
|
param2.filters = `buildingId='${this.building[0]}'`;
|
|
@@ -274,7 +263,7 @@ export default class spaceIndex extends Vue {
|
|
|
param2.filters = `buildingId='${this.building[0]}';floorId='${this.building[1]}'`;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
let promise = new Promise((resolve) => {
|
|
|
dictQuery(param).then((res) => {
|
|
|
resolve(res);
|
|
@@ -300,6 +289,13 @@ export default class spaceIndex extends Vue {
|
|
|
dictStages.push(item);
|
|
|
}
|
|
|
});
|
|
|
+ dictStages.map((val,index) => {
|
|
|
+ val.name = val.unit ? `${ val.name }(${ val.unit })` : val.name
|
|
|
+ if (val.path == 'outline') {
|
|
|
+ dictStages.splice(index,1)
|
|
|
+ }
|
|
|
+ return val
|
|
|
+ })
|
|
|
basicInfos.map((item) => {
|
|
|
if (item.path == "building") {
|
|
|
item.path = "buildingSign";
|
|
@@ -309,7 +305,7 @@ export default class spaceIndex extends Vue {
|
|
|
}
|
|
|
return item;
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
this.headersStage = {
|
|
|
basicInfos: {
|
|
|
name: "模型解析",
|
|
@@ -331,10 +327,14 @@ export default class spaceIndex extends Vue {
|
|
|
if (item.floor) {
|
|
|
item.floorSign = item.floor.localName;
|
|
|
}
|
|
|
- item = {
|
|
|
- ...item,
|
|
|
- outline: JSON.stringify(item.outline),
|
|
|
- };
|
|
|
+ // 删除轮廓线
|
|
|
+ if (item.outline) {
|
|
|
+ delete item.outline
|
|
|
+ }
|
|
|
+ // item = {
|
|
|
+ // ...item,
|
|
|
+ // outline: JSON.stringify(item.outline),
|
|
|
+ // };
|
|
|
return item;
|
|
|
});
|
|
|
// 列表信息展示,获取动态数据
|