|
@@ -201,7 +201,8 @@ export default {
|
|
initScale: 0.5, //初始 底图缩放比例
|
|
initScale: 0.5, //初始 底图缩放比例
|
|
baseScale: 1.0, //底图基础缩放比例,由底图加载完成后,传入进来
|
|
baseScale: 1.0, //底图基础缩放比例,由底图加载完成后,传入进来
|
|
scaleStep: 0.05, // +-缩放步进
|
|
scaleStep: 0.05, // +-缩放步进
|
|
- locationQuery: null
|
|
|
|
|
|
+ locationQuery: null,
|
|
|
|
+ urlMsg: {}
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -299,28 +300,28 @@ export default {
|
|
},
|
|
},
|
|
// 返回草稿箱
|
|
// 返回草稿箱
|
|
goDrafts() {
|
|
goDrafts() {
|
|
- if (this.locationQuery.projectId && this.locationQuery.BuildingID && this.locationQuery.fmapID && this.locationQuery.token) {
|
|
|
|
|
|
+ if (this.urlMsg.projectId && this.urlMsg.BuildingID && this.urlMsg.fmapID && this.urlMsg.token) {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: 'drafts',
|
|
path: 'drafts',
|
|
query: {
|
|
query: {
|
|
- projectId: this.locationQuery.projectId,
|
|
|
|
- BuildingID: this.locationQuery.BuildingID,
|
|
|
|
- FloorID: this.locationQuery.FloorID,
|
|
|
|
- fmapID: this.locationQuery.fmapID,
|
|
|
|
- token: this.locationQuery.token
|
|
|
|
|
|
+ projectId: this.urlMsg.projectId,
|
|
|
|
+ BuildingID: this.urlMsg.BuildingID,
|
|
|
|
+ FloorID: this.urlMsg.FloorID,
|
|
|
|
+ fmapID: this.urlMsg.fmapID,
|
|
|
|
+ token: this.urlMsg.token
|
|
}
|
|
}
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
- if (!this.locationQuery.projectId) {
|
|
|
|
|
|
+ if (!this.urlMsg.projectId) {
|
|
console.log("暂无projectId!");
|
|
console.log("暂无projectId!");
|
|
}
|
|
}
|
|
- if (!this.locationQuery.BuildingID) {
|
|
|
|
|
|
+ if (!this.urlMsg.BuildingID) {
|
|
console.log("暂无BuildingID!");
|
|
console.log("暂无BuildingID!");
|
|
}
|
|
}
|
|
- if (!this.locationQuery.fmapID) {
|
|
|
|
|
|
+ if (!this.urlMsg.fmapID) {
|
|
console.log("暂无fmapID!");
|
|
console.log("暂无fmapID!");
|
|
}
|
|
}
|
|
- if (!this.locationQuery.token) {
|
|
|
|
|
|
+ if (!this.urlMsg.token) {
|
|
console.log("暂无token!");
|
|
console.log("暂无token!");
|
|
}
|
|
}
|
|
this.$message.error("参数缺失,无法跳转!");
|
|
this.$message.error("参数缺失,无法跳转!");
|
|
@@ -366,7 +367,6 @@ export default {
|
|
this.getMouseScale();
|
|
this.getMouseScale();
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- this.locationQuery = this.$route.query;
|
|
|
|
const href = window.location.href;
|
|
const href = window.location.href;
|
|
// 路由
|
|
// 路由
|
|
// const route = href.split("?")[0];
|
|
// const route = href.split("?")[0];
|