|
@@ -30,7 +30,7 @@
|
|
width='160'
|
|
width='160'
|
|
tipPlace='top'
|
|
tipPlace='top'
|
|
caption='楼层 :'
|
|
caption='楼层 :'
|
|
- :selectdata='floorSelect'
|
|
|
|
|
|
+ :selectdata='floorAllSelect'
|
|
></Select>
|
|
></Select>
|
|
<el-input
|
|
<el-input
|
|
clearable
|
|
clearable
|
|
@@ -106,7 +106,8 @@ export default {
|
|
sbjc: '',
|
|
sbjc: '',
|
|
manufacturer: '',
|
|
manufacturer: '',
|
|
type_name: '',
|
|
type_name: '',
|
|
- tableMaxHeight: 0
|
|
|
|
|
|
+ tableMaxHeight: 0,
|
|
|
|
+ floorAllSelect: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
props: ['major', 'param', 'InfoName'],
|
|
props: ['major', 'param', 'InfoName'],
|
|
@@ -172,6 +173,17 @@ export default {
|
|
this.tableData = res.data.data
|
|
this.tableData = res.data.data
|
|
this.total = res.data.count
|
|
this.total = res.data.count
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ getFloorAllSelect() {
|
|
|
|
+ this.floorAllSelect = []
|
|
|
|
+ this.floorAllSelect.push({
|
|
|
|
+ name: '全部',
|
|
|
|
+ id: ''
|
|
|
|
+ })
|
|
|
|
+ this.floorSelect.forEach(el => {
|
|
|
|
+ this.floorAllSelect.push(el)
|
|
|
|
+ })
|
|
|
|
+ console.log(this.floorAllSelect)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -182,6 +194,7 @@ export default {
|
|
// 页面渲染完成后的回调
|
|
// 页面渲染完成后的回调
|
|
this.tableMaxHeight = this.$refs.tableBox.offsetHeight
|
|
this.tableMaxHeight = this.$refs.tableBox.offsetHeight
|
|
})
|
|
})
|
|
|
|
+ this.getFloorAllSelect()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
/* floor(newV, oldV) {
|
|
/* floor(newV, oldV) {
|
|
@@ -205,6 +218,7 @@ export default {
|
|
// 页面渲染完成后的回调
|
|
// 页面渲染完成后的回调
|
|
this.tableMaxHeight = this.$refs.tableBox.offsetHeight
|
|
this.tableMaxHeight = this.$refs.tableBox.offsetHeight
|
|
})
|
|
})
|
|
|
|
+ this.getFloorAllSelect()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|