feat 压实作业骨架
This commit is contained in:
2
src/components.d.ts
vendored
2
src/components.d.ts
vendored
@@ -38,6 +38,8 @@ declare module 'vue' {
|
|||||||
WarningItem: typeof import('./components/warning/item.vue')['default']
|
WarningItem: typeof import('./components/warning/item.vue')['default']
|
||||||
WorkDashboard: typeof import('./components/work/dashboard.vue')['default']
|
WorkDashboard: typeof import('./components/work/dashboard.vue')['default']
|
||||||
WorkDeviceControl: typeof import('./components/work/deviceControl.vue')['default']
|
WorkDeviceControl: typeof import('./components/work/deviceControl.vue')['default']
|
||||||
|
WorkRtkCanvas: typeof import('./components/work/rtkCanvas.vue')['default']
|
||||||
|
WorkRtkHeader: typeof import('./components/work/rtkHeader.vue')['default']
|
||||||
WorkRtkMonitor: typeof import('./components/work/rtkMonitor.vue')['default']
|
WorkRtkMonitor: typeof import('./components/work/rtkMonitor.vue')['default']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
46
src/components/work/rtkCanvas.vue
Normal file
46
src/components/work/rtkCanvas.vue
Normal 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>
|
||||||
172
src/components/work/rtkHeader.vue
Normal file
172
src/components/work/rtkHeader.vue
Normal 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>
|
||||||
@@ -1,11 +1,45 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
// RTK轨迹实时监测 + 压实热力图组件
|
// RTK轨迹实时监测 + 压实热力图 - 父组件(组合头部 + 画布)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<view class="card">
|
<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>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -17,14 +51,62 @@
|
|||||||
padding: 16px;
|
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;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
gap: 8px;
|
||||||
min-height: 120px;
|
}
|
||||||
color: #999;
|
|
||||||
font-size: 14px;
|
.legend-line {
|
||||||
border: 1px dashed #ddd;
|
width: 20px;
|
||||||
border-radius: 8px;
|
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>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user