From 28189102d735bfc2c41720d1ef292bd9024b49f2 Mon Sep 17 00:00:00 2001 From: zhuzhuanzhuan Date: 星期四, 18 四月 2024 11:21:01 +0800 Subject: [PATCH] 1、首页 (1)设备级看板单击设备效率统计仪表盘图标跳转至统计分析页面并根据唯一编号筛选页面对应数据 (2)设备级看板点击设备班次按钮跳转至工作日历页面并根据设备编号筛选页面对应数据 (3)增加所有层级看板图表数据加载动画 (4)公司级以及分厂级看板利用率胶囊以及上月OEE车间单柱图表轴线刻度最大值采用动态设置方式而非固定100% (5)工段级看板上月OEE单柱图表轴线刻度最大值采用动态设置方式而非固定100% (6)工段级看板单击前7天利用率图表跳转至统计分析页面并根据唯一编号筛选页面对应数据 (7)工段级看板单击上月OEE图表跳转至设备综合效率分析页面并根据唯一编号筛选页面对应数据 2、调整全局导航栏页签间距,以便能在不超出导航栏的情况下同时放置更多页面页签 --- src/views/eam/SpecialtyMaintenanceOrderList.vue | 65 +++++++++++++++++++++++++------- 1 files changed, 51 insertions(+), 14 deletions(-) diff --git a/src/views/eam/SpecialtyMaintenanceOrderList.vue b/src/views/eam/SpecialtyMaintenanceOrderList.vue index cb286e9..acafc95 100644 --- a/src/views/eam/SpecialtyMaintenanceOrderList.vue +++ b/src/views/eam/SpecialtyMaintenanceOrderList.vue @@ -1,7 +1,7 @@ <template> <a-card :bordered="false" - title="涓撲笟淇濆吇宸ュ崟" + title="棰勯槻鎬т繚鍏诲伐鍗�" > <!-- 鏌ヨ鍖哄煙 --> <div class="table-page-search-wrapper"> @@ -126,6 +126,7 @@ :loading="loading" class="j-table-force-nowrap" @change="handleTableChange" + :rowClassName="tableRowClass" > <!-- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" --> <span @@ -199,7 +200,7 @@ v-has="'specialtyMaintenanceOrder:assign'" >娲惧伐</a> <a - v-if="record.status == '2'&& record.assignMode == '3' && record.inspectionUserName != null " + v-if="record.status == '2'&& record.assignMode == '3' && record.maintenanceUserName != null " @click="handleAssignOrder(record)" v-has="'specialtyMaintenanceOrder:assign'" >鏀规淳</a> @@ -327,16 +328,7 @@ return parseInt(index) + 1; } }, - { - title: '鐘舵��', - align: "center", - dataIndex: 'statusName' - }, - { - title: '缁翠繚鏂瑰紡', - align: "center", - dataIndex: 'maintenanceMode' - }, + { title: '淇濆吇宸ュ崟鍙�', align: "center", @@ -344,7 +336,7 @@ scopedSlots: { customRender: 'num' } }, { - title: '瀵硅薄閮ㄩ棬', + title: '浣跨敤閮ㄩ棬', align: "center", dataIndex: 'departName', }, @@ -372,6 +364,16 @@ title: '璐d换鐝粍', align: "center", dataIndex: 'teamName', + }, + { + title: '鐘舵��', + align: "center", + dataIndex: 'statusName' + }, + { + title: '缁翠繚鏂瑰紡', + align: "center", + dataIndex: 'maintenanceMode' }, // { // title: '宸ユ椂瀹氶/姣忓皬鏃�', @@ -573,9 +575,44 @@ // //娓呯┖鍒楄〃閫変腑 // this.onClearSelected() // }, + + //棰勮棰滆壊 + tableRowClass(record, index) { + if ("1" == record.status || "2" == record.status) { + if (record.yellowWarningTime < record.currentDateTime && record.currentDateTime < record.redWarningTime) { + return 'yellow' + } else if (record.redWarningTime < record.currentDateTime && record.currentDateTime < record.planStartTime) { + return 'error' + } else if (record.planStartTime < record.currentDateTime) { + return 'frozenRowClass' + } + } + }, } } </script> -<style scoped> +<style > @import '~@assets/less/common.less'; +.frozenRowClass { + color: #c9c9c9; + font-weight: bold; +} +.success { + color: green; +} +.error { + color: red; + font-weight: bold; +} +.yellow { + color: yellow; + font-weight: bold; +} +.fontweight { + font-weight: bold; +} + +.ant-table-tbody .red { + background-color: red !important; +} </style> \ No newline at end of file -- Gitblit v1.9.3