feat 压实作业骨架

This commit is contained in:
Ironsp
2026-09-05 11:51:59 +08:00
parent ff80bef939
commit a6f3f2d144
4 changed files with 312 additions and 10 deletions

View File

@@ -0,0 +1,46 @@
<script setup lang="ts">
// RTK 轨迹画布 - 占位组件,后续实现轨迹动画
</script>
<template>
<view class="rtk-canvas">
<view class="canvas-placeholder">
<text class="placeholder-text">
轨迹动画区域
</text>
<text class="placeholder-hint">
(Canvas 绘制行驶轨迹 + 压实热力图)
</text>
</view>
</view>
</template>
<style scoped>
.rtk-canvas {
width: 100%;
height: 300px;
background: #f0fdf4;
border-radius: 8px;
overflow: hidden;
}
.canvas-placeholder {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
}
.placeholder-text {
font-size: 14px;
color: #666;
}
.placeholder-hint {
font-size: 12px;
color: #999;
}
</style>

View File

@@ -0,0 +1,172 @@
<script setup lang="ts">
// RTK 轨迹实时监测 - 状态头部组件
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,
})
</script>
<template>
<view class="rtk-header">
<!-- 标题行 -->
<view class="title-row">
<text class="title">
RTK轨迹实时监测
</text>
<text class="subtitle">
压实热力图
</text>
</view>
<!-- 设备状态 -->
<view class="device-status">
<view class="status-dot" />
<text class="device-name">
{{ deviceName }}
</text>
<text class="status-text">
实时监测中
</text>
</view>
<!-- 数据行 -->
<view class="data-row">
<view class="data-item">
<text class="data-label">
车速
</text>
<text class="data-value">
{{ speed }} km/h
</text>
</view>
<view class="data-item">
<text class="data-label">
振动频率
</text>
<text class="data-value">
{{ frequency }} HZ
</text>
</view>
<view class="data-item">
<text class="data-label">
振幅
</text>
<text class="data-value">
{{ amplitude }} mm
</text>
</view>
<view class="rtk-status">
<view class="rtk-dot" :class="{ 'rtk-dot--active': rtkFixed }" />
<text class="rtk-text">
RTK固定
</text>
</view>
</view>
</view>
</template>
<style scoped>
.rtk-header {
padding-bottom: 12px;
}
.title-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.title {
font-size: 16px;
font-weight: 600;
color: #333;
}
.subtitle {
font-size: 14px;
color: #666;
}
.device-status {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 12px;
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #22c55e;
}
.device-name {
font-size: 13px;
color: #666;
}
.status-text {
font-size: 13px;
color: #999;
}
.data-row {
display: flex;
align-items: center;
gap: 20px;
}
.data-item {
display: flex;
flex-direction: column;
gap: 2px;
}
.data-label {
font-size: 12px;
color: #999;
}
.data-value {
font-size: 16px;
font-weight: 600;
color: #333;
}
.rtk-status {
display: flex;
align-items: center;
gap: 4px;
margin-left: auto;
}
.rtk-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #ccc;
}
.rtk-dot--active {
background: #22c55e;
}
.rtk-text {
font-size: 12px;
color: #666;
}
</style>

View File

@@ -1,11 +1,45 @@
<script setup lang="ts">
// RTK轨迹实时监测 + 压实热力图组件
// RTK轨迹实时监测 + 压实热力图 - 父组件(组合头部 + 画布)
</script>
<template>
<view class="card">
<view class="placeholder">
RTK轨迹实时监测 + 压实热力图
<!-- 状态头部 -->
<work-rtkHeader />
<!-- 轨迹画布 -->
<work-rtkCanvas />
<!-- 底部信息 -->
<view class="footer-info">
<view class="legend">
<view class="legend-item">
<view class="legend-line legend-line--blue" />
<text class="legend-text">
行驶轨迹
</text>
</view>
<view class="legend-item">
<view class="legend-area" />
<text class="legend-text">
已压实区域
</text>
</view>
<view class="legend-item">
<view class="legend-dot" />
<text class="legend-text">
当前位置
</text>
</view>
</view>
<view class="location-info">
<text class="location-text">
航向:NE45°
</text>
<text class="location-text">
114.39°E, 39.9087°N
</text>
</view>
</view>
</view>
</template>
@@ -17,14 +51,62 @@
padding: 16px;
}
.placeholder {
.footer-info {
display: flex;
justify-content: space-between;
align-items: flex-end;
margin-top: 12px;
}
.legend {
display: flex;
flex-direction: column;
gap: 6px;
}
.legend-item {
display: flex;
align-items: center;
justify-content: center;
min-height: 120px;
color: #999;
font-size: 14px;
border: 1px dashed #ddd;
border-radius: 8px;
gap: 8px;
}
.legend-line {
width: 20px;
height: 2px;
}
.legend-line--blue {
background: #3b82f6;
}
.legend-area {
width: 16px;
height: 12px;
background: #bbf7d0;
border-radius: 2px;
}
.legend-dot {
width: 12px;
height: 12px;
border-radius: 50%;
background: #f97316;
}
.legend-text {
font-size: 12px;
color: #666;
}
.location-info {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 4px;
}
.location-text {
font-size: 12px;
color: #666;
}
</style>