由于提供整个系统的源代码不仅数量庞大而且可能侵犯版权,我将提供一个简化的示例来说明如何使用Vue.js和Spring Boot创建一个简单的前后端分离的高精度定位系统。
后端(Spring Boot部分):
@RestController
@RequestMapping("/location")
public class LocationController {
 
    @GetMapping("/getPosition")
    public ResponseEntity<String> getPosition(@RequestParam String uwbMacAddress) {
        // 假设这里已经通过uwbMacAddress获取到了位置信息
        String position = "经度:123.456, 纬度:78.90";
        return ResponseEntity.ok(position);
    }
}前端(Vue.js部分):
<template>
  <div>
    <input type="text" v-model="macAddress" placeholder="请输入UWB设备MAC地址">
    <button @click="fetchLocation">获取位置</button>
    <p>位置: {{ location }}</p>
  </div>
</template>
 
<script>
export default {
  data() {
    return {
      macAddress: '',
      location: ''
    }
  },
  methods: {
    fetchLocation() {
      fetch('/location/getPosition?uwbMacAddress=' + this.macAddress)
        .then(response => response.text())
        .then(data => {
          this.location = data;
        })
        .catch(error => console.error('Error fetching data: ', error));
    }
  }
}
</script>这个简化的例子展示了如何使用Vue.js和Spring Boot创建一个前后端通信的基本框架。在实际的UWB高精度定位系统中,可能还需要处理更复杂的逻辑,例如设备认证、位置计算、数据处理等。