From 88a401540460085f6f16137b4d4fff7f1fcf0cb0 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 21 Jul 2022 17:30:40 +0800
Subject: [PATCH] 冲突
---
src/components/xymap/setxy.vue | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/src/components/xymap/setxy.vue b/src/components/xymap/setxy.vue
new file mode 100644
index 0000000..e10f894
--- /dev/null
+++ b/src/components/xymap/setxy.vue
@@ -0,0 +1,35 @@
+<template>
+ <div @click="selectMapClick">
+ <el-input readonly class="select-input-map" v-model="mapXyValue" placeholder="请选择2.5维坐标"></el-input>
+ </div>
+</template>
+
+<script>
+
+import { mapGetters } from "vuex"
+
+export default {
+ computed: {
+ ...mapGetters(['mapXyValue'])
+ },
+ methods: {
+ selectMapClick () {
+ this.$store.commit('SET_SELECT_MAP', true)
+ },
+ },
+ created () {
+ this.$store.commit('SET_MAP_X_Y', '')
+ },
+ watch: {
+ mapXyValue: {
+ immediate: true,
+ handler (newVal) {
+ this.$emit("setData", newVal)
+ }
+ }
+ },
+}
+</script>
+
+<style>
+</style>
\ No newline at end of file
--
Gitblit v1.9.3