From 2de633725d5e5d843853240933f63220dc4e4cb2 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期三, 03 十二月 2025 16:53:57 +0800
Subject: [PATCH] fix: 导体会存在每隔一段距离需要标记的情况,需要通知工人进行标记。
---
src/pages/production/components/ProductionCard.vue | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/src/pages/production/components/ProductionCard.vue b/src/pages/production/components/ProductionCard.vue
index b9e1236..108eae9 100644
--- a/src/pages/production/components/ProductionCard.vue
+++ b/src/pages/production/components/ProductionCard.vue
@@ -1,10 +1,10 @@
<template>
<wd-row>
- <wd-col v-for="(item, index) in data" :key="index" :span="item.span ?? 12" class="my-1">
- <view class="flex justify-between w-full h-[20px]">
- <view class="text-[#646874] pl-1">{{ item.label }}</view>
+ <wd-col v-for="(item, index) in data" :key="index" :span="24" class="my-1">
+ <view class="flex w-full h-[20px]">
+ <view class="text-[#646874] pl-1 mr-3">{{ item.label }}</view>
<view class="font-medium pr-1" :style="{ color: item.color ?? color }">
- {{ item.value }}
+ {{ value[item.prop] }} {{ value[item.unitProp] }} {{ item.unit }}
</view>
</view>
</wd-col>
@@ -19,9 +19,19 @@
return [];
},
},
+ value: {
+ type: Object,
+ default: () => {
+ return {};
+ },
+ },
color: {
type: String,
default: "#333333",
},
+ unit: {
+ type: String,
+ default: "",
+ },
});
</script>
--
Gitblit v1.9.3