From abdfb88215533add9ac1794a0069e30d42c85fae Mon Sep 17 00:00:00 2001 From: FCD <2453864257@qq.com> Date: Mon, 11 Aug 2025 10:53:07 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E7=82=B9=E6=A3=80=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=82=B9=E6=A3=80=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/device/spotInspectionOrder/index.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/views/device/spotInspectionOrder/index.vue b/src/views/device/spotInspectionOrder/index.vue index 9334498..6b923f9 100644 --- a/src/views/device/spotInspectionOrder/index.vue +++ b/src/views/device/spotInspectionOrder/index.vue @@ -457,6 +457,12 @@ /> + Date: Mon, 11 Aug 2025 10:54:27 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E7=94=B5=E8=A1=A8=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=EF=BC=8C=E6=96=B0=E5=A2=9E=E9=80=9A=E8=AE=AF?= =?UTF-8?q?=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/energy/WaterManagement/dianMeasurement/index.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/energy/WaterManagement/dianMeasurement/index.vue b/src/views/energy/WaterManagement/dianMeasurement/index.vue index bea449a..a0226fa 100644 --- a/src/views/energy/WaterManagement/dianMeasurement/index.vue +++ b/src/views/energy/WaterManagement/dianMeasurement/index.vue @@ -280,6 +280,9 @@ + + + Date: Mon, 11 Aug 2025 11:00:32 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A3=80=E9=AA=8C?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/quality/qcIncome/index.vue | 14 ++++++++++++++ src/views/quality/qcProduce/index.vue | 14 ++++++++++++++ src/views/quality/qcWarehousing/index.vue | 18 ++++++++++++++++-- 3 files changed, 44 insertions(+), 2 deletions(-) diff --git a/src/views/quality/qcIncome/index.vue b/src/views/quality/qcIncome/index.vue index 9482727..c05ce79 100644 --- a/src/views/quality/qcIncome/index.vue +++ b/src/views/quality/qcIncome/index.vue @@ -75,6 +75,20 @@ @keyup.enter.native="handleQuery" /> + + + + + + + + + + --> - + - + + + + + + 搜索 重置 From d7eb7202e83cd40119403ba6834f1ae81dda248d Mon Sep 17 00:00:00 2001 From: FCD <2453864257@qq.com> Date: Mon, 11 Aug 2025 11:00:48 +0800 Subject: [PATCH 4/8] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=88=90=E5=93=81?= =?UTF-8?q?=E7=95=99=E6=A0=B7=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/quality/sampleCheck/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/quality/sampleCheck/index.vue b/src/views/quality/sampleCheck/index.vue index abbf8e3..8824ca2 100644 --- a/src/views/quality/sampleCheck/index.vue +++ b/src/views/quality/sampleCheck/index.vue @@ -53,7 +53,7 @@ - + @@ -33,6 +37,7 @@ import { getCompletedRate, } from "@/api/kanban/spectaculars"; +import {getFaultRateList, getworkFaultDesc} from "@/api/kanban/equipment"; export default { name: 'Cards', data () { @@ -41,6 +46,12 @@ export default { ], equipmentinfo: {}, + config: { + data: [], + unit:"%", + sort:false, + rowNum: 13 + } } }, methods: { @@ -129,12 +140,31 @@ export default { }, - randomExtend (minNum, maxNum) { - if (arguments.length === 1) { - return parseInt(Math.random() * minNum + 1, 10) - } else { - return parseInt(Math.random() * (maxNum - minNum + 1) + minNum, 10) - } + + async getdatalist() { + getFaultRateList({ poolName: "ds_1000" }).then(res=>{ + if (res.data){ + let processedData = []; + for (const item of res.data){ + processedData.push({ + name: item.lineName || '未知分类', // 处理空名称 + value: Number(item.faultRate).toFixed(2) || 0 // 确保数值类型 + }) + } + const asc = [...processedData].sort((a, b) => b.value - a.value); + this.config = { + ...this.config, // 保留其他配置项 + data: asc + }; + }else { + // 空数据兜底处理 + this.config.data = [{ name: '暂无数据', value: 0 }]; + } + }).catch((error)=>{ + console.error('数据获取失败:', error); + // 错误状态显示(保持数据结构一致) + this.config.data = [{ name: '数据异常', value: 0 }]; + }) } }, mounted () { @@ -142,9 +172,15 @@ export default { createData() + this.getdatalist(); + // 添加定时刷新(可选) + this.timer = setInterval(() => { + this.getdatalist(); + }, 60000); // 60秒刷新 setInterval(this.createData, 30000) - } + }, + } @@ -217,4 +253,27 @@ export default { } } } +#ranking-board { + width: 20%; + height: 100%; + box-shadow: 0 0 3px blue; + display: flex; + flex-direction: column; + background-color: rgba(6, 30, 93, 0.5); + border-top: 2px solid rgba(1, 153, 209, .5); + box-sizing: border-box; + padding: 0px 30px; + + .ranking-board-title { + font-weight: bold; + height: 50px; + display: flex; + align-items: center; + font-size: 20px; + } + + .dv-scroll-ranking-board { + flex: 1; + } +}