管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-03-21 c2a697c7399dcfb3ebae5333f05f91f488d2cb41
src/views/Tools/undergroundModel.vue
@@ -55,7 +55,7 @@
</template>
<script>
import Popup from "./Popup.vue";
let UndergroundMode;
export default {
  name: "undergroundModel",
  components: {
@@ -75,11 +75,15 @@
  methods: {
    // 关闭弹窗
    close() {
      this.form.open = false;
      this.openChange()
      this.$refs.pop.close();
    },
    // 打开弹窗
    open() {
      this.$refs.pop.open();
      this.form.open = true;
      this.openChange()
    },
    // 开关开关
    openChange() {
@@ -91,12 +95,12 @@
        //   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: "地下模式已关闭",
@@ -106,7 +110,7 @@
    },
    // 开关开关
    gridChange() {
      UndergroundMode && (UndergroundMode.grid = this.form.grid);
      window.UndergroundMode && (window.UndergroundMode.grid = this.form.grid);
      // if (this.form.grid) {
      //   this.$notify({
      //     title: "地下模式",
@@ -125,12 +129,12 @@
    // 滑块儿值调整
    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);
    },
  },
};