feat 实时数据仪表盘
This commit is contained in:
@@ -121,9 +121,12 @@ const overviewData = [
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 今日作业概览 -->
|
<!-- 今日作业概览 -->
|
||||||
<text class="section-title">
|
<view class="section-title">
|
||||||
|
<text>
|
||||||
今日作业概览
|
今日作业概览
|
||||||
</text>
|
</text>
|
||||||
|
</view>
|
||||||
|
|
||||||
<view class="overview-section">
|
<view class="overview-section">
|
||||||
<view v-for="item in overviewData" :key="item.label" class="overview-item">
|
<view v-for="item in overviewData" :key="item.label" class="overview-item">
|
||||||
<text class="overview-label">
|
<text class="overview-label">
|
||||||
@@ -145,7 +148,7 @@ const overviewData = [
|
|||||||
}
|
}
|
||||||
|
|
||||||
.card-title {
|
.card-title {
|
||||||
font-size: 18px;
|
font-size: 20px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #333;
|
color: #333;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
@@ -162,11 +165,14 @@ const overviewData = [
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
margin-top: 30px;
|
||||||
|
gap: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 左侧仪表项 */
|
/* 左侧仪表项 */
|
||||||
.gauge-item {
|
.gauge-item {
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
|
gap:100px
|
||||||
}
|
}
|
||||||
|
|
||||||
.gauge-header {
|
.gauge-header {
|
||||||
@@ -181,7 +187,7 @@ const overviewData = [
|
|||||||
}
|
}
|
||||||
|
|
||||||
.gauge-label {
|
.gauge-label {
|
||||||
font-size: 14px;
|
font-size: 16px;
|
||||||
color: #666;
|
color: #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -193,6 +199,7 @@ const overviewData = [
|
|||||||
|
|
||||||
/* ===== 压实度圆环 ===== */
|
/* ===== 压实度圆环 ===== */
|
||||||
.ring-wrap {
|
.ring-wrap {
|
||||||
|
margin-top: 20px;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
@@ -204,7 +211,7 @@ const overviewData = [
|
|||||||
}
|
}
|
||||||
|
|
||||||
.freq-label {
|
.freq-label {
|
||||||
font-size: 14px;
|
font-size: 18px;
|
||||||
color: #666;
|
color: #666;
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
@@ -236,10 +243,10 @@ const overviewData = [
|
|||||||
|
|
||||||
/* ===== 今日作业概览 ===== */
|
/* ===== 今日作业概览 ===== */
|
||||||
.section-title {
|
.section-title {
|
||||||
font-size: 18px;
|
font-size: 20px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #333;
|
color: #333;
|
||||||
margin-bottom: 16px;
|
margin: 25px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.overview-section {
|
.overview-section {
|
||||||
@@ -255,7 +262,7 @@ const overviewData = [
|
|||||||
}
|
}
|
||||||
|
|
||||||
.overview-label {
|
.overview-label {
|
||||||
font-size: 13px;
|
font-size: 18px;
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,19 +31,13 @@ const workStatus = '作业进行中'
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="status-tags">
|
<view class="status-columns">
|
||||||
|
<!-- 左列:作业状态 -->
|
||||||
|
<view class="status-col">
|
||||||
<view class="tag">
|
<view class="tag">
|
||||||
<view class="dot dot--green" />
|
<view class="dot dot--green" />
|
||||||
<text>{{ deviceInfo.status }}</text>
|
<text>{{ deviceInfo.status }}</text>
|
||||||
</view>
|
</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 class="info-label">
|
||||||
压实作业
|
压实作业
|
||||||
</text>
|
</text>
|
||||||
@@ -51,7 +45,13 @@ const workStatus = '作业进行中'
|
|||||||
{{ deviceInfo.workStatus }}
|
{{ deviceInfo.workStatus }}
|
||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-item">
|
|
||||||
|
<!-- 右列:连接状态 -->
|
||||||
|
<view class="status-col">
|
||||||
|
<view class="tag">
|
||||||
|
<view class="dot dot--green" />
|
||||||
|
<text>{{ deviceInfo.connected }}</text>
|
||||||
|
</view>
|
||||||
<text class="info-label">
|
<text class="info-label">
|
||||||
设备连接
|
设备连接
|
||||||
</text>
|
</text>
|
||||||
@@ -78,19 +78,28 @@ const workStatus = '作业进行中'
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="status-tags">
|
<view class="control-rows">
|
||||||
|
<!-- 第一行:空(对齐左侧 tag 行) -->
|
||||||
|
<view class="control-row" />
|
||||||
|
|
||||||
|
<!-- 第二行:当前状态(对齐左侧 label 行) -->
|
||||||
|
<view class="control-row">
|
||||||
<view class="tag">
|
<view class="tag">
|
||||||
<view class="dot dot--green" />
|
<view class="dot dot--green" />
|
||||||
<text>当前:{{ workStatus }}</text>
|
<text>当前:{{ workStatus }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<wd-button type="warning" block class="pause-btn">
|
<!-- 第三行:暂停按钮(对齐左侧 value 行) -->
|
||||||
|
<view class="control-row">
|
||||||
|
<wd-button type="warning" class="pause-btn" round>
|
||||||
暂停作业
|
暂停作业
|
||||||
</wd-button>
|
</wd-button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
@@ -114,7 +123,7 @@ const workStatus = '作业进行中'
|
|||||||
.section-header {
|
.section-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
gap: 10rpx;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -137,29 +146,36 @@ const workStatus = '作业进行中'
|
|||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-size: 16px;
|
font-size: 20px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subtitle {
|
.subtitle {
|
||||||
font-size: 12px;
|
font-size: 14px;
|
||||||
color: #999;
|
color: #999;
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-tags {
|
.status-columns {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 16px;
|
gap: 24px;
|
||||||
margin-bottom: 12px;
|
}
|
||||||
|
|
||||||
|
.status-col {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag {
|
.tag {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 6px;
|
gap: 6px;
|
||||||
font-size: 13px;
|
font-size: 14px;
|
||||||
color: #666;
|
color: #666;
|
||||||
|
margin-bottom: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dot {
|
.dot {
|
||||||
@@ -172,21 +188,9 @@ const workStatus = '作业进行中'
|
|||||||
background: #22c55e;
|
background: #22c55e;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-grid {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.info-item {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.info-label {
|
.info-label {
|
||||||
font-size: 13px;
|
font-size: 14px;
|
||||||
color: #999;
|
color: #333333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-value {
|
.info-value {
|
||||||
@@ -204,11 +208,18 @@ const workStatus = '作业进行中'
|
|||||||
align-self: stretch;
|
align-self: stretch;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control-section .status-tags {
|
.control-rows {
|
||||||
margin-bottom: 20px;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 34rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pause-btn {
|
.pause-btn {
|
||||||
width: 100%;
|
width: 80%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user