Compare commits

...

2 Commits

Author SHA1 Message Date
Ironsp
4150739d27 feat 添加剩余部分 2026-09-07 09:25:07 +08:00
Ironsp
569eb49228 feat 添加剩余部分 2026-09-07 08:54:01 +08:00
9 changed files with 336 additions and 2 deletions

1
.gitignore vendored
View File

@@ -11,6 +11,7 @@ node_modules
.DS_Store
dist
*.local
.opencode
# Editor directories and files
.idea

41
skills-lock.json Normal file
View File

@@ -0,0 +1,41 @@
{
"version": 1,
"skills": {
"pinia": {
"source": "uni-helper/skills",
"sourceType": "github",
"skillPath": "skills/pinia/SKILL.md",
"computedHash": "57326a1c8d10186ce3eb9ea6c030a964707572238c860ef09ea52771b19046fa"
},
"uni-app": {
"source": "uni-helper/skills",
"sourceType": "github",
"skillPath": "skills/uniapp/SKILL.md",
"computedHash": "6a1f658c19109c0ffdcf7d4a05a6ba3d6aa4b8c92981a23eb174d379127d5536"
},
"uni-helper": {
"source": "uni-helper/skills",
"sourceType": "github",
"skillPath": "skills/uni-helper/SKILL.md",
"computedHash": "03f65c8c3e48a190902df3f219d0085fbd045e42402b7ccee26f24481f61134e"
},
"unocss": {
"source": "uni-helper/skills",
"sourceType": "github",
"skillPath": "skills/unocss/SKILL.md",
"computedHash": "3108dc2c9a33d27063faa4e235dbb22c61bdf8e2d4f23dd9a0edbc546b6e6a40"
},
"vue": {
"source": "uni-helper/skills",
"sourceType": "github",
"skillPath": "skills/vue/SKILL.md",
"computedHash": "6eb0e15cfbd66c3993e01c6a2ff3987876fefb0d0a2d24e86d73991903802c8e"
},
"vueuse-functions": {
"source": "uni-helper/skills",
"sourceType": "github",
"skillPath": "skills/vueuse-functions/SKILL.md",
"computedHash": "fabe57d2e24c4f04e9c1fb21298c6dc02da690d3cdb8f5f08c3cdd505968d3cd"
}
}
}

2
src/components.d.ts vendored
View File

@@ -11,6 +11,7 @@ declare module 'vue' {
BluetoothConnect: typeof import('./components/bluetooth/connect.vue')['default']
DeviceCard: typeof import('./components/deviceCard.vue')['default']
DeviceInfo: typeof import('./components/deviceInfo.vue')['default']
FullscreenNav: typeof import('./components/FullscreenNav.vue')['default']
HomeConstruction: typeof import('./components/home/construction.vue')['default']
HomeHomeNav: typeof import('./components/home/homeNav.vue')['default']
HomeList: typeof import('./components/home/list.vue')['default']
@@ -34,6 +35,7 @@ declare module 'vue' {
SettingsSensorConfig: typeof import('./components/settings/sensorConfig.vue')['default']
SettingsWifiNetwork: typeof import('./components/settings/wifiNetwork.vue')['default']
SettingsWifiSettings: typeof import('./components/settings/wifiSettings.vue')['default']
ToggleFullscreen: typeof import('./components/toggleFullscreen.vue')['default']
WarningFilter: typeof import('./components/warning/filter.vue')['default']
WarningItem: typeof import('./components/warning/item.vue')['default']
WorkDashboard: typeof import('./components/work/dashboard.vue')['default']

View File

@@ -0,0 +1,192 @@
<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,
})
function handleToggle() {
console.log('缩小缩小')
}
</script>
<template>
<view class="rtk-header">
<!-- 顶部行:标题 + 缩小按钮 -->
<view class="top-row">
<view class="title-area">
<text class="title">
RTK轨迹实时监测
</text>
<view class="device-status">
<view class="status-dot" />
<text class="device-name">
{{ deviceName }}
</text>
<text class="status-text">
实时监测中
</text>
</view>
</view>
<view class="toggle-btn" @click="handleToggle">
<wd-icon name="fullscreen-exit" size="24px" />
</view>
</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 {
background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
padding: 16px;
margin-bottom: 12px;
}
.top-row {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 16px;
}
.title-area {
display: flex;
flex-direction: column;
gap: 6px;
}
.title {
font-size: 18px;
font-weight: 600;
color: #fff;
}
.device-status {
display: flex;
align-items: center;
gap: 6px;
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #4ade80;
}
.device-name {
font-size: 12px;
color: rgba(255, 255, 255, 0.8);
}
.status-text {
font-size: 12px;
color: rgba(255, 255, 255, 0.6);
}
.toggle-btn {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 6px;
/* background: rgba(255, 255, 255, 0.2); */
}
.toggle-btn:active {
background: rgba(255, 255, 255, 0.3);
}
.data-row {
display: flex;
align-items: center;
gap: 32px;
}
.data-item {
display: flex;
flex-direction: column;
gap: 4px;
}
.data-label {
font-size: 12px;
color: rgba(255, 255, 255, 0.7);
}
.data-value {
font-size: 16px;
font-weight: 600;
color: #fff;
}
.rtk-status {
display: flex;
align-items: center;
gap: 4px;
margin-left: auto;
}
.rtk-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.4);
}
.rtk-dot--active {
background: #4ade80;
}
.rtk-text {
font-size: 12px;
color: rgba(255, 255, 255, 0.8);
}
</style>

View File

@@ -1,9 +1,15 @@
<script setup lang="ts">
// RTK 轨迹画布 - 占位组件,后续实现轨迹动画
function goToRtk() {
uni.navigateTo({
url: '/pages/rtk/index',
})
}
</script>
<template>
<view class="rtk-canvas">
<view class="rtk-canvas" @click="goToRtk">
<view class="canvas-placeholder">
<text class="placeholder-text">
轨迹动画区域

View File

@@ -16,6 +16,12 @@ withDefaults(defineProps<Props>(), {
amplitude: 1.86,
rtkFixed: true,
})
function goToHeatmap() {
uni.navigateTo({
url: '/pages/heatmap/index',
})
}
</script>
<template>
@@ -25,7 +31,7 @@ withDefaults(defineProps<Props>(), {
<text class="title">
RTK轨迹实时监测
</text>
<wd-button variant="text">
<wd-button variant="text" @click="goToHeatmap">
压实热力图
</wd-button>
</view>

View File

@@ -0,0 +1,42 @@
<script lang="ts" setup>
definePage({
layout: false,
style: {
navigationStyle: 'custom',
},
})
</script>
<template>
<view class="page">
<!-- 顶部导航 -->
<FullscreenNav />
<!-- 占位内容 -->
<view class="content">
<text class="placeholder-text">
压实热力图
</text>
</view>
</view>
</template>
<style scoped>
.page {
min-height: 100vh;
background-color: #EAEFF9;
}
.content {
padding: 16px;
display: flex;
align-items: center;
justify-content: center;
min-height: calc(100vh - 120px);
}
.placeholder-text {
font-size: 18px;
color: #999;
}
</style>

42
src/pages/rtk/index.vue Normal file
View File

@@ -0,0 +1,42 @@
<script lang="ts" setup>
definePage({
layout: false,
style: {
navigationBarTitleText: 'RTK轨迹',
},
})
</script>
<template>
<view class="page">
<!-- 顶部导航 -->
<FullscreenNav />
<!-- 占位内容 -->
<view class="content">
<text class="placeholder-text">
RTK轨迹
</text>
</view>
</view>
</template>
<style scoped>
.page {
min-height: 100vh;
background-color: #EAEFF9;
}
.content {
padding: 16px;
display: flex;
align-items: center;
justify-content: center;
min-height: calc(100vh - 120px);
}
.placeholder-text {
font-size: 18px;
color: #999;
}
</style>

2
src/uni-pages.d.ts vendored
View File

@@ -6,9 +6,11 @@
type _LocationUrl =
"/pages/Ahome/index" |
"/pages/bluetooth/index" |
"/pages/heatmap/index" |
"/pages/message/index" |
"/pages/project/index" |
"/pages/report/index" |
"/pages/rtk/index" |
"/pages/settings/index" |
"/pages/warning/index" |
"/pages/work/index" |