.
shuishen
2022-03-08 4af47e6507183a18f676d9fcabc122084546f37e
src/components/mobileCortrolSearch/index.vue
@@ -13,8 +13,7 @@
          class="iconSearch"
          icon="el-icon-search icon"
          @click="search"
        >
        </el-button>
                ></el-button>
      </el-input>
    </div>
  </div>
@@ -22,31 +21,29 @@
<script>
export default {
  name: "mobileCortrolSearch",
    name: 'mobileCortrolSearch',
  computed: {},
  data() {
    return {
      viewer: null,
      DC: null,
      input: "",
    };
            input: ''
        }
  },
  created() {
    this.DC = global.DC;
  },
  mounted() {},
  methods: {
    initialize(viewer) {
      viewer.scene.globe.depthTestAgainstTerrain = false;
      this.viewer = viewer;
            viewer.scene.globe.depthTestAgainstTerrain = false
            this.viewer = viewer
    },
    search() {
      let that = this;
      this.$store.commit("MSET_BIGPOPUP", { search: true, value: that.input });
      that.input = "";
    },
  },
};
            const that = this
            this.$store.commit('MSET_BIGPOPUP', { search: true, value: that.input })
            that.input = ''
        }
    }
}
</script>
<style scoped lang="scss">