liuyg
2022-03-31 8c121763b7aa6d1e8a9ad9f38f79f11a92e50ef4
src/components/mobileCortrolSearch/index.vue
@@ -1,4 +1,7 @@
<template>
  <!-- 中间搜索
mobileCortrolSearch
 -->
    <div class="m-left-mobileCortrolSearch">
        <div class="m-left-SearchMain">
            <el-input
@@ -21,29 +24,28 @@
<script>
export default {
    name: 'mobileCortrolSearch',
  name: "mobileCortrolSearch",
    computed: {},
    data () {
        return {
            viewer: null,
            input: ''
        }
      input: "",
    };
    },
    created () {
    },
  created() {},
    mounted () { },
    methods: {
        initialize (viewer) {
            viewer.scene.globe.depthTestAgainstTerrain = false
            this.viewer = viewer
      viewer.scene.globe.depthTestAgainstTerrain = false;
      this.viewer = viewer;
        },
        search () {
            const 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">