feat 数据流模拟
This commit is contained in:
@@ -1,22 +1,18 @@
|
||||
<script setup lang="ts">
|
||||
// RTK 轨迹实时监测 - 状态头部组件
|
||||
import { useRtkLive } from '@/composables/useRtkLive'
|
||||
|
||||
interface Props {
|
||||
deviceName?: string
|
||||
speed?: number
|
||||
frequency?: number
|
||||
amplitude?: number
|
||||
rtkFixed?: boolean
|
||||
}
|
||||
|
||||
withDefaults(defineProps<Props>(), {
|
||||
deviceName: '徐工XS65H #01',
|
||||
speed: 4.2,
|
||||
frequency: 28.5,
|
||||
amplitude: 1.86,
|
||||
rtkFixed: true,
|
||||
})
|
||||
|
||||
const { speedTextSpaced, frequencyText, amplitudeText } = useRtkLive()
|
||||
|
||||
function handleToggle() {
|
||||
uni.switchTab({
|
||||
url: '/pages/work/index',
|
||||
@@ -54,7 +50,7 @@ function handleToggle() {
|
||||
车速
|
||||
</text>
|
||||
<text class="data-value">
|
||||
{{ speed }} km/h
|
||||
{{ speedTextSpaced }}
|
||||
</text>
|
||||
</view>
|
||||
<view class="data-item">
|
||||
@@ -62,7 +58,7 @@ function handleToggle() {
|
||||
振动频率
|
||||
</text>
|
||||
<text class="data-value">
|
||||
{{ frequency }} HZ
|
||||
{{ frequencyText }}
|
||||
</text>
|
||||
</view>
|
||||
<view class="data-item">
|
||||
@@ -70,7 +66,7 @@ function handleToggle() {
|
||||
振幅
|
||||
</text>
|
||||
<text class="data-value">
|
||||
{{ amplitude }} mm
|
||||
{{ amplitudeText }}
|
||||
</text>
|
||||
</view>
|
||||
<view class="rtk-status">
|
||||
|
||||
Reference in New Issue
Block a user