|
@@ -111,7 +111,7 @@ export default class extends Vue {
|
|
|
|
|
|
optionProps = {
|
|
|
value: 'code',
|
|
|
- label: 'name',
|
|
|
+ label: 'aliasName',
|
|
|
children: 'children'
|
|
|
}
|
|
|
|
|
@@ -229,17 +229,7 @@ export default class extends Vue {
|
|
|
// 类型下信息点,默认设计阶段
|
|
|
this.headerInformation = res[0] // 获取表头
|
|
|
// this.tableData = res[1].content // 主体数据
|
|
|
- this.tableData = res[1].content.map(i => {
|
|
|
- i.readonlyFloor = ''
|
|
|
- i.readonlySpace = ''
|
|
|
- if (i.floor && i.floor.localName) {
|
|
|
- i.readonlyFloor = i.floor.localName
|
|
|
- }
|
|
|
- if (i.objectInfo) {
|
|
|
- i.readonlySpace = i.objectInfo.map(j => j.localName).join(',')
|
|
|
- }
|
|
|
- return i
|
|
|
- })
|
|
|
+ this.tableData = res[1].content
|
|
|
this.paneMsg = res[0].dictStages.map(i => i.name)
|
|
|
this.currentHeader = this.paneMsg[this.activeName]
|
|
|
this.headerStage()
|
|
@@ -251,7 +241,6 @@ export default class extends Vue {
|
|
|
}
|
|
|
|
|
|
async handleNext() {
|
|
|
-
|
|
|
if (this.deviceVal[1]) {
|
|
|
this.next = false
|
|
|
this.isWidth = true
|
|
@@ -261,8 +250,17 @@ export default class extends Vue {
|
|
|
await dictInfo(param).then(res => {
|
|
|
const basicInfos = [{path: 'bimTypeName', aliasName: '构件分类名称', category: "STATIC", editable: true},
|
|
|
{path: 'localId', aliasName: '本地编码', category: "STATIC", editable: true},
|
|
|
- {path: 'readonlyFloor', editable: false, aliasName: '所属楼层', category: "STATIC"},
|
|
|
- {path: 'readonlySpace', editable: false, aliasName: '所在空间', category: "STATIC"}]
|
|
|
+ {path: 'floor.localName', editable: false, aliasName: '所属楼层', 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(',') || ''
|
|
|
+ }
|
|
|
+ }]
|
|
|
this.deviceHeaders = {
|
|
|
basicInfos,
|
|
|
dictStages: res.dictStages
|
|
@@ -305,8 +303,17 @@ export default class extends Vue {
|
|
|
data: [
|
|
|
{path: 'bimTypeName', aliasName: '构件分类名称', category: "STATIC"},
|
|
|
{path: 'localId', aliasName: '本地编码', category: "STATIC"},
|
|
|
- {path: 'readonlyFloor', editable: false, aliasName: '所属楼层', category: "STATIC"},
|
|
|
- {path: 'readonlySpace', editable: false, aliasName: '所在空间', category: "STATIC"}
|
|
|
+ {path: 'floor.localName', editable: false, aliasName: '所属楼层', 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(',') || ''
|
|
|
+ }
|
|
|
+ }
|
|
|
],
|
|
|
},
|
|
|
dictStages: {
|