feat 配置echarts代码
This commit is contained in:
30
src/components/work/dashboard.vue
Normal file
30
src/components/work/dashboard.vue
Normal file
@@ -0,0 +1,30 @@
|
||||
<script setup lang="ts">
|
||||
// 实时数据仪表盘组件
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<view class="card">
|
||||
<view class="placeholder">
|
||||
实时数据仪表盘
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.card {
|
||||
background: #fff;
|
||||
border-radius: 12px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.placeholder {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 120px;
|
||||
color: #999;
|
||||
font-size: 14px;
|
||||
border: 1px dashed #ddd;
|
||||
border-radius: 8px;
|
||||
}
|
||||
</style>
|
||||
214
src/components/work/deviceControl.vue
Normal file
214
src/components/work/deviceControl.vue
Normal file
@@ -0,0 +1,214 @@
|
||||
<script setup lang="ts">
|
||||
// 设备状态 + 作业控制组件
|
||||
|
||||
const deviceInfo = {
|
||||
编号: '徐工XS65H #01',
|
||||
status: '作业中',
|
||||
connected: '已连接',
|
||||
workStatus: '正常运行',
|
||||
signalStatus: '信号良好',
|
||||
}
|
||||
|
||||
const workStatus = '作业进行中'
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<view class="card">
|
||||
<view class="card-body">
|
||||
<!-- 左侧:设备作业状态 -->
|
||||
<view class="status-section">
|
||||
<view class="section-header">
|
||||
<view class="icon-box icon-box--blue">
|
||||
<wd-icon name="equipment" size="20px" color="#fff" />
|
||||
</view>
|
||||
<view class="header-info">
|
||||
<text class="title">
|
||||
设备作业状态
|
||||
</text>
|
||||
<text class="subtitle">
|
||||
设备编号 {{ deviceInfo.编号 }}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="status-tags">
|
||||
<view class="tag">
|
||||
<view class="dot dot--green" />
|
||||
<text>{{ deviceInfo.status }}</text>
|
||||
</view>
|
||||
<view class="tag">
|
||||
<view class="dot dot--green" />
|
||||
<text>{{ deviceInfo.connected }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="info-grid">
|
||||
<view class="info-item">
|
||||
<text class="info-label">
|
||||
压实作业
|
||||
</text>
|
||||
<text class="info-value info-value--green">
|
||||
{{ deviceInfo.workStatus }}
|
||||
</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="info-label">
|
||||
设备连接
|
||||
</text>
|
||||
<text class="info-value info-value--green">
|
||||
{{ deviceInfo.signalStatus }}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 分割线 -->
|
||||
<view class="divider" />
|
||||
|
||||
<!-- 右侧:作业控制 -->
|
||||
<view class="control-section">
|
||||
<view class="section-header">
|
||||
<view class="icon-box icon-box--blue">
|
||||
<wd-icon name="user" size="20px" color="#fff" />
|
||||
</view>
|
||||
<view class="header-info">
|
||||
<text class="title">
|
||||
作业控制
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="status-tags">
|
||||
<view class="tag">
|
||||
<view class="dot dot--green" />
|
||||
<text>当前:{{ workStatus }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<wd-button type="warning" block class="pause-btn">
|
||||
暂停作业
|
||||
</wd-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.card {
|
||||
background: #fff;
|
||||
border-radius: 12px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.card-body {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.status-section,
|
||||
.control-section {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.section-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.icon-box {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.icon-box--blue {
|
||||
background: #3b82f6;
|
||||
}
|
||||
|
||||
.header-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.status-tags {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.tag {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 13px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.dot--green {
|
||||
background: #22c55e;
|
||||
}
|
||||
|
||||
.info-grid {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.info-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.info-label {
|
||||
font-size: 13px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.info-value {
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.info-value--green {
|
||||
color: #22c55e;
|
||||
}
|
||||
|
||||
.divider {
|
||||
width: 1px;
|
||||
background: #eee;
|
||||
align-self: stretch;
|
||||
}
|
||||
|
||||
.control-section .status-tags {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.pause-btn {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
30
src/components/work/rtkMonitor.vue
Normal file
30
src/components/work/rtkMonitor.vue
Normal file
@@ -0,0 +1,30 @@
|
||||
<script setup lang="ts">
|
||||
// RTK轨迹实时监测 + 压实热力图组件
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<view class="card">
|
||||
<view class="placeholder">
|
||||
RTK轨迹实时监测 + 压实热力图
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.card {
|
||||
background: #fff;
|
||||
border-radius: 12px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.placeholder {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 120px;
|
||||
color: #999;
|
||||
font-size: 14px;
|
||||
border: 1px dashed #ddd;
|
||||
border-radius: 8px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user