|
@@ -104,7 +104,27 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapGetters("layout", ["projectId", "secret", "userId"])
|
|
|
+ ...mapGetters("layout", ["projectId", "secret", "userId"]),
|
|
|
+ flowBuild() {
|
|
|
+ let buildFloorSelectd = this.space.buildFloorSelectd
|
|
|
+ if (buildFloorSelectd && buildFloorSelectd.length == 0) {
|
|
|
+ return ""
|
|
|
+ } else if (buildFloorSelectd && buildFloorSelectd.length == 1){
|
|
|
+ let build = buildFloorSelectd[0]
|
|
|
+ if (build == 'all' && build == 'noKnow') {
|
|
|
+ return ""
|
|
|
+ } else {
|
|
|
+ return build
|
|
|
+ }
|
|
|
+ } else if (buildFloorSelectd && buildFloorSelectd.length == 2) {
|
|
|
+ let build = buildFloorSelectd[0], floor = buildFloorSelectd[1];
|
|
|
+ if (build && (floor == 'all' || floor == 'noKnow')) {
|
|
|
+ return build
|
|
|
+ } else {
|
|
|
+ return `${build}-${floor}`
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
created() {
|
|
|
this.space = this.$route.query;
|
|
@@ -129,6 +149,7 @@ export default {
|
|
|
this.inputMap[item.Path] = item
|
|
|
}
|
|
|
})
|
|
|
+ this.tableData[0].flowBuild = this.flowBuild
|
|
|
this.initTable();
|
|
|
});
|
|
|
},
|
|
@@ -196,7 +217,7 @@ export default {
|
|
|
handleAddTableRow() {
|
|
|
let addRowLength = this.addNum;
|
|
|
for (let i = 0; i < addRowLength; i++) {
|
|
|
- this.tableData.push({ Checked: 1 });
|
|
|
+ this.tableData.push({flowBuild:this.flowBuild});
|
|
|
}
|
|
|
this.initTable();
|
|
|
this.formaTableData();
|