|
@@ -128,7 +128,7 @@ export default {
|
|
|
props: {
|
|
|
floors: {
|
|
|
default: () => {
|
|
|
- []
|
|
|
+ ;[]
|
|
|
},
|
|
|
type: Array
|
|
|
},
|
|
@@ -221,8 +221,8 @@ export default {
|
|
|
{ editerUrl } = conf
|
|
|
let floorName = this.floorName ? this.floorName : this.$cookie.get('floorNow')
|
|
|
let data = `categoryId=${categoryId}&projectId=${this.plazaId}&BuildingID=1&FloorID=${FloorID}&FloorName=${floorName}&fmapID=${this.fmapID}`
|
|
|
- console.log('data',data);
|
|
|
- console.log('this.categoryId',this.categoryId,this.$cookie.get('categoryId'))
|
|
|
+ console.log('data', data)
|
|
|
+ console.log('this.categoryId', this.categoryId, this.$cookie.get('categoryId'))
|
|
|
let url = editerUrl + 'editer?' + encodeURIComponent(data)
|
|
|
window.open(url, true)
|
|
|
},
|
|
@@ -306,6 +306,7 @@ export default {
|
|
|
},
|
|
|
addFloor() {
|
|
|
this.isFloor = true
|
|
|
+ this.formatFloor()
|
|
|
},
|
|
|
// 新增楼层取消
|
|
|
cancel() {
|
|
@@ -317,11 +318,7 @@ export default {
|
|
|
this.goToEditer()
|
|
|
}
|
|
|
},
|
|
|
- mounted() {
|
|
|
- if (this.floors.length > 0) {
|
|
|
- this.formatFloor()
|
|
|
- }
|
|
|
- }
|
|
|
+ mounted() {}
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|