| | |
| | | </template> |
| | | <script> |
| | | import Popup from "./Popup.vue"; |
| | | let UndergroundMode; |
| | | |
| | | export default { |
| | | name: "undergroundModel", |
| | | components: { |
| | |
| | | methods: { |
| | | // 关闭弹窗 |
| | | close() { |
| | | this.form.open = false; |
| | | this.openChange() |
| | | this.$refs.pop.close(); |
| | | }, |
| | | // 打开弹窗 |
| | | open() { |
| | | this.$refs.pop.open(); |
| | | this.form.open = true; |
| | | this.openChange() |
| | | }, |
| | | // 开关开关 |
| | | openChange() { |
| | |
| | | // type: "success", |
| | | // duration: "3000", |
| | | // }); |
| | | UndergroundMode = window.sgworld.Analysis.UndergroundMode(true, value); |
| | | UndergroundMode.grid = this.form.grid; |
| | | UndergroundMode.depth = this.form.depth; |
| | | window.UndergroundMode = window.sgworld.Analysis.UndergroundMode(true, value); |
| | | window.UndergroundMode.grid = this.form.grid; |
| | | window.UndergroundMode.depth = this.form.depth; |
| | | } else { |
| | | window.sgworld.Analysis.UndergroundMode(false, value); |
| | | UndergroundMode = null; |
| | | window.UndergroundMode = null; |
| | | // this.$notify({ |
| | | // title: "地下模式", |
| | | // message: "地下模式已关闭", |
| | |
| | | }, |
| | | // 开关开关 |
| | | gridChange() { |
| | | UndergroundMode && (UndergroundMode.grid = this.form.grid); |
| | | window.UndergroundMode && (window.UndergroundMode.grid = this.form.grid); |
| | | // if (this.form.grid) { |
| | | // this.$notify({ |
| | | // title: "地下模式", |
| | |
| | | // 滑块儿值调整 |
| | | alphaChange() { |
| | | let value = this.form.alpha / 100; |
| | | UndergroundMode && (UndergroundMode.alpha = value); |
| | | window.UndergroundMode && (window.UndergroundMode.alpha = value); |
| | | }, |
| | | // 滑块儿值调整 |
| | | depthChange() { |
| | | let value = this.form.depth; |
| | | UndergroundMode && (UndergroundMode.depth = value); |
| | | window.UndergroundMode && (window.UndergroundMode.depth = value); |
| | | }, |
| | | }, |
| | | }; |