From a2d75e4084e9011b6637a962f1faabf98f8d1574 Mon Sep 17 00:00:00 2001 From: Yangwl <1726150332@qq.com> Date: Fri, 11 Jul 2025 18:24:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=BE=E5=A4=87=E7=BB=BC?= =?UTF-8?q?=E5=90=88=E7=AE=A1=E7=90=86=E6=95=B0=E6=8D=AE=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Yangwl <1726150332@qq.com> --- src/api/kanban/equipment.js | 8 ++ src/router/index.js | 1 + src/views/cs/index5.vue | 49 +++---- src/views/cs/index5/rankingBoard.vue | 4 +- src/views/cs/index5/roseChart.vue | 132 +++++++++++------- src/views/cs/index5/scrollBoard.vue | 21 ++- .../faultInformation/itemFaultDescription.vue | 8 +- src/views/kanban/Packagingline/index.vue | 26 +++- src/views/wms/team/index.vue | 85 +++++++---- 9 files changed, 206 insertions(+), 128 deletions(-) diff --git a/src/api/kanban/equipment.js b/src/api/kanban/equipment.js index e2d2e4f..924d45e 100644 --- a/src/api/kanban/equipment.js +++ b/src/api/kanban/equipment.js @@ -92,3 +92,11 @@ export function getWave(data) { params: data }); } +// 获取滚动图 +export function getRepairWorkOrderCostTime(data) { + return request({ + url: '/device/deviceInterface/getRepairWorkOrderCostTime', + method: 'get', + params: data, + }); +} diff --git a/src/router/index.js b/src/router/index.js index 3a5d33c..9792a4c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -35,6 +35,7 @@ export const constantRoutes = [ {path: '/cs3', component: () => import('@/views/cs/index3.vue')}, {path: '/cs5', component: () => import('@/views/cs/index5.vue')}, {path: '/cs6', component: () => import('@/views/cs/index4.vue')}, + {path: '/cs7', component: () => import('@/views/cs/index7.vue')}, {path: '/cs3_1', component: () => import('@/views/cs/index3_1.vue')}, { path: '/redirect', diff --git a/src/views/cs/index5.vue b/src/views/cs/index5.vue index 34de877..e327a0a 100644 --- a/src/views/cs/index5.vue +++ b/src/views/cs/index5.vue @@ -8,18 +8,15 @@
+ + + + + -
-
- + - - - -
- - -
+
@@ -80,21 +77,21 @@ export default { margin-top: 20px; } - .block-top-bottom-content { - flex: 1; - display: flex; - flex-direction: column; - box-sizing: border-box; - padding-left: 20px; - width:80%; - } - - .block-top-content { - height: 100%; - display: flex; - flex-grow: 0; - box-sizing: border-box; - padding-bottom: 20px; - } + //.block-top-bottom-content { + // flex: 1; + // display: flex; + // flex-direction: column; + // box-sizing: border-box; + // padding-left: 20px; + // width:80%; + //} + // + //.block-top-content { + // height: 100%; + // display: flex; + // flex-grow: 0; + // box-sizing: border-box; + // padding-bottom: 20px; + //} } diff --git a/src/views/cs/index5/rankingBoard.vue b/src/views/cs/index5/rankingBoard.vue index a70faa4..d9bc223 100644 --- a/src/views/cs/index5/rankingBoard.vue +++ b/src/views/cs/index5/rankingBoard.vue @@ -1,6 +1,6 @@ @@ -15,7 +15,7 @@ export default { return { config: { data: [], - rowNum: 9 + rowNum: 10 } } }, diff --git a/src/views/cs/index5/roseChart.vue b/src/views/cs/index5/roseChart.vue index 4635dad..de107ea 100644 --- a/src/views/cs/index5/roseChart.vue +++ b/src/views/cs/index5/roseChart.vue @@ -1,7 +1,11 @@ @@ -12,31 +16,35 @@ export default { name: 'RoseChart', data () { return { - option: { - series: [ - { - type: 'pie', - radius: '50%', - roseSort: false, - data: [], - insideLabel: { - show: false - }, - outsideLabel: { - formatter: '{name} {percent}%', - labelLineEndLength: 20, - style: { - fill: '#fff' - }, - labelLineStyle: { - stroke: '#fff' - } - }, - roseType: true - } - ], - color: ['#da2f00', '#fa3600', '#ff4411', '#ff724c', '#541200', '#801b00', '#a02200', '#5d1400', '#b72700'] - } + config: { + data: [], + rowNum: 10 + } + // option: { + // series: [ + // { + // type: 'pie', + // radius: '50%', + // roseSort: false, + // data: [], + // insideLabel: { + // show: false + // }, + // outsideLabel: { + // formatter: '{name} {percent}%', + // labelLineEndLength: 20, + // style: { + // fill: '#fff' + // }, + // labelLineStyle: { + // stroke: '#fff' + // } + // }, + // roseType: true + // } + // ], + // color: ['#da2f00', '#fa3600', '#ff4411', '#ff724c', '#541200', '#801b00', '#a02200', '#5d1400', '#b72700'] + // } } }, methods: { @@ -49,29 +57,32 @@ export default { // 步骤1:数据格式转换 const processedData = response.data.map(item => ({ name: item.name || '未知故障', // 处理空名称 - value: Number(item.value) || 0 // 确保数值类型 + value: Number(item.count_num) || 0 // 确保数值类型 })); - - // 步骤2:深度更新配置(关键) - this.option = { - ...this.option, // 保留原有配置 - series: [{ - ...this.option.series, // 继承其他配置 - data: processedData, // 降序排列 - // 保持原有样式配置 - type: 'pie', - radius: '50%', - roseSort: false, - insideLabel: { show: false }, - outsideLabel: { - formatter: '{name} {percent}%', - labelLineEndLength: 20, - style: { fill: '#fff' }, - labelLineStyle: { stroke: '#fff' } - }, - roseType: true - }] + this.config = { + ...this.config, // 保留其他配置项 + data: processedData // 降序排列 }; + // 步骤2:深度更新配置(关键) + // this.option = { + // ...this.option, // 保留原有配置 + // series: [{ + // ...this.option.series, // 继承其他配置 + // data: processedData, // 降序排列 + // // 保持原有样式配置 + // type: 'pie', + // radius: '50%', + // roseSort: false, + // insideLabel: { show: false }, + // outsideLabel: { + // formatter: '{name} {percent}%', + // labelLineEndLength: 20, + // style: { fill: '#fff' }, + // labelLineStyle: { stroke: '#fff' } + // }, + // roseType: true + // }] + // }; // 步骤3:强制刷新图表(如果使用原生 ECharts) // this.myChart.setOption(this.option, true); @@ -114,4 +125,27 @@ export default { height: calc(~"100% - 50px"); } } + +#ranking-board { + width: 20%; + 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; + margin-left: 20px; + .ranking-board-title { + font-weight: bold; + height: 50px; + display: flex; + align-items: center; + font-size: 20px; + } + + .dv-scroll-ranking-board { + flex: 1; + } +} diff --git a/src/views/cs/index5/scrollBoard.vue b/src/views/cs/index5/scrollBoard.vue index abb6cfc..f38da3f 100644 --- a/src/views/cs/index5/scrollBoard.vue +++ b/src/views/cs/index5/scrollBoard.vue @@ -10,7 +10,7 @@