|
@@ -21,11 +21,23 @@ export default {
|
|
|
mapthemeUrl: `http://map.wanda.cn/editor/webtheme`
|
|
|
}
|
|
|
},
|
|
|
+ /**
|
|
|
+ * 刷新保存vuex信息
|
|
|
+ */
|
|
|
+ created() {
|
|
|
+ this.$store.replaceState(Object.assign(this.$store.state, JSON.parse(localStorage.getItem('beforeunload'))))
|
|
|
+ localStorage.removeItem('beforeunload')
|
|
|
+ window.addEventListener('beforeunload', () => {
|
|
|
+ let state = JSON.stringify(this.$store.state)
|
|
|
+ localStorage.setItem('beforeunload', state)
|
|
|
+ })
|
|
|
+ },
|
|
|
mounted() {
|
|
|
+ window.vm = this
|
|
|
// 监听页面刷新事件
|
|
|
- window.addEventListener('unload', this.unload)
|
|
|
+ // window.addEventListener('unload', this.unload)
|
|
|
// 页面加载完成后,移除session里的存储的信息
|
|
|
- window.addEventListener('load', this.load)
|
|
|
+ // window.addEventListener('load', this.load)
|
|
|
// 请求该项目下的楼层数据
|
|
|
this.getFengMap()
|
|
|
},
|
|
@@ -268,13 +280,13 @@ body {
|
|
|
width: 8%;
|
|
|
}
|
|
|
}
|
|
|
-.el-dialog__header{
|
|
|
- border-bottom: 1px solid rgba(239,240,241,1);
|
|
|
+.el-dialog__header {
|
|
|
+ border-bottom: 1px solid rgba(239, 240, 241, 1);
|
|
|
}
|
|
|
-.gantt-chart .el-dialog__title{
|
|
|
- font-weight: 500;
|
|
|
+.gantt-chart .el-dialog__title {
|
|
|
+ font-weight: 500;
|
|
|
}
|
|
|
-.img-detail-container{
|
|
|
+.img-detail-container {
|
|
|
.el-dialog__body {
|
|
|
padding-top: 0;
|
|
|
padding-bottom: 0;
|