|
@@ -154,6 +154,7 @@ export default class EquipTab extends Vue {
|
|
|
};
|
|
|
let param2 = {
|
|
|
filters: `classCode='${ this.deviceType }'`,
|
|
|
+ cascade: [{"name": "floor",}, {"name": "objectInfo"}],
|
|
|
pageNumber: this.paginationList.page,
|
|
|
pageSize: this.paginationList.size,
|
|
|
orders: "createTime desc, id asc",
|
|
@@ -222,6 +223,14 @@ export default class EquipTab extends Vue {
|
|
|
private informationArrangement(data: any): any {
|
|
|
if (data?.basicInfos && data?.dictStages) {
|
|
|
const base: any[] = [];
|
|
|
+ const basicInfos: any[] = [
|
|
|
+ {path: 'bimTypeName', editable: true, aliasName: '构件分类名称', dataType: 'STRING', category: "STATIC"},
|
|
|
+ {path: 'localId', editable: true, aliasName: '本地编码', dataType: 'STRING', category: "STATIC"},
|
|
|
+ {path: 'floor.localName', editable: false, aliasName: '所属楼层', dataType: 'STRING', category: "STATIC"},
|
|
|
+ {path: 'onSpace', editable: false, aliasName: '所在空间', dataType: 'STRING', category: "STATIC", render: (obj: any) => {
|
|
|
+ return obj?.objectInfo && obj.objectInfo.map((item: any) => item.localName).join(',') || ''
|
|
|
+ }}
|
|
|
+ ]
|
|
|
data.dictStages.forEach((item: any) => {
|
|
|
if (this.currentHeader === item.name) {
|
|
|
item?.infos.forEach((val: any) => {
|
|
@@ -230,7 +239,7 @@ export default class EquipTab extends Vue {
|
|
|
}
|
|
|
});
|
|
|
// 信息点集合
|
|
|
- this.all = [...data.basicInfos, ...base];
|
|
|
+ this.all = [...basicInfos, ...data.basicInfos, ...base];
|
|
|
this.codeToDataSource = {};
|
|
|
this.all.forEach((item: any) => {
|
|
|
if (item.dataSource) {
|
|
@@ -247,7 +256,7 @@ export default class EquipTab extends Vue {
|
|
|
return {
|
|
|
basicInfos: {
|
|
|
name: "基础信息台账",
|
|
|
- data: data.basicInfos,
|
|
|
+ data: basicInfos,
|
|
|
},
|
|
|
dictStages: {
|
|
|
name: this.currentHeader,
|